Interface ITextBlock
Represents a single word in Text
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public interface ITextBlock
Properties
ControlBoundingRectangle
Gets the control bounding rectangle.
Declaration
Rectangle ControlBoundingRectangle { get; }
Property Value
System.
|
DesiredSize
Gets the desired size of the block
Declaration
SizeF DesiredSize { get; }
Property Value
System. The size of the desired. |
Index
Gets or sets the index of the block
Declaration
int Index { get; set; }
Property Value
System. The index. |
Length
Gets the length of the word. It can be different than the exact text length.
Declaration
int Length { get; }
Property Value
System.
|
Offset
Gets or sets the block according to the previous one
Declaration
int Offset { get; set; }
Property Value
System. The offset. |
Text
Gets or sets the block's text
Declaration
string Text { get; set; }
Property Value
System. The text. |
Methods
Arrange(RectangleF)
Arranges the textblock final rectangle.
Declaration
void Arrange(RectangleF finalRectangle)
Parameters
System. The final rectangle. |
GetCharacterIndexFromX(Single)
Gets the character index at X-position.
Declaration
int GetCharacterIndexFromX(float x)
Parameters
System. The x. |
Returns
System.
|
GetRectangleFromCharacterIndex(Int32, Boolean)
Gets a rectangle of character by index.
Declaration
RectangleF GetRectangleFromCharacterIndex(int index, bool trailEdge)
Parameters
System. The index. |
System. if set to |
Returns
System.
|
Measure(SizeF)
Measures the textblock available size.
Declaration
void Measure(SizeF availableSize)
Parameters
System. Size of the available. |