[]
        
(Showing Draft Content)

C1.Win.Tile.TextElement

TextElement Class

The element drawing some text.

Inheritance
TextElement
Implements
Namespace: C1.Win.Tile
Assembly: C1.Win.TileControl.8.dll
Syntax
public class TextElement : BaseElement, IDisposable, ICloneable

Constructors

Name Description
TextElement()

Initializes a new instance of a TextElement.

Properties

Name Description
BackColor

Gets or sets the text background color.

BackColorSelector

Gets or sets a value indicating which property of a Tile object behaves as the source of background color for this element.

DirectionVertical

Gets or sets whether the text is vertically aligned (if so the background color is not used).

Font

Gets or sets the font for the text element.

FontBold

Gets or sets a value that indicates whether the element shows bold text.

FontItalic

Gets or sets a value that indicates whether the element shows italic text.

FontPadding

Gets or sets whether the text bounding rectangle should include padding (only if the text has background).

FontSize

Gets or sets the font size for the text element.

FontStrikeout

Gets or sets a value that indicates whether the element shows text with a line through the middle.

FontUnderline

Gets or sets a value that indicates whether the element shows underlined text.

ForeColor

Gets or sets the foreground color of the text element.

ForeColorSelector

Gets or sets a value indicating which property of a Tile object behaves as the source of foreground color for this element.

MeasureTrailingSpaces

Gets or sets whether the text bounding rectangle includes the trailing space at the end of each line (only if the text has no background).

RightToLeft

Gets or sets whether the text should be displayed from right to left.

SingleLine

Gets or sets whether text should be displayed in a single line.

Text

Gets or sets the text displayed in unbound mode.

TextSelector

Gets or sets a value indicating which property of a Tile object behaves as the source of text that will be displayed by this element.

TextTrimming

Gets or sets how to trim characters that do not fit in the space available.

Methods

Name Description
CopySettingsFrom(BaseElement)

Copies settings from the given element.

CreateInstance()

Creates an instance of the TextElement element copy.

Dispose(bool)

Clean up any resources being used.

ResetBackColor()

Resets the value of the BackColor property.

ResetForeColor()

Resets the value of the ForeColor property.