Interface ITextBlock
Represents a single word in TextBoxWrapPanel
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.Drawing.Rectangle
|
DesiredSize
Gets the desired size of the block
Declaration
SizeF DesiredSize { get; }
Property Value
System.Drawing.SizeF
The size of the desired. |
Index
Gets or sets the index of the block
Declaration
int Index { get; set; }
Property Value
System.Int32
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.Int32
|
Offset
Gets or sets the block according to the previous one
Declaration
int Offset { get; set; }
Property Value
System.Int32
The offset. |
Text
Gets or sets the block's text
Declaration
string Text { get; set; }
Property Value
System.String
The text. |
Methods
Arrange(RectangleF)
Arranges the textblock final rectangle.
Declaration
void Arrange(RectangleF finalRectangle)
Parameters
System.Drawing.RectangleF
finalRectangle
The final rectangle. |
GetCharacterIndexFromX(Single)
Gets the character index at X-position.
Declaration
int GetCharacterIndexFromX(float x)
Parameters
System.Single
x
The x. |
Returns
System.Int32
|
GetRectangleFromCharacterIndex(Int32, Boolean)
Gets a rectangle of character by index.
Declaration
RectangleF GetRectangleFromCharacterIndex(int index, bool trailEdge)
Parameters
System.Int32
index
The index. |
System.Boolean
trailEdge
if set to |
Returns
System.Drawing.RectangleF
|
Measure(SizeF)
Measures the textblock available size.
Declaration
void Measure(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
Size of the available. |