InterfaceITextBlock
Interface
Represents a single word in TextBoxWrapPanel
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
cs-api-definition
public interface ITextBlock
Properties
ControlBoundingRectangle
Gets the control bounding rectangle.
DesiredSize
Gets the desired size of the block
Declaration
cs-api-definition
SizeF DesiredSize { get; }
Property Value
The size of the desired.
Index
Gets or sets the index of the block
Length
Gets the length of the word. It can be different than the exact text length.
Offset
Gets or sets the block according to the previous one
Methods
Arrange(RectangleF)
Arranges the textblock final rectangle.
Declaration
cs-api-definition
void Arrange(RectangleF finalRectangle)
Parameters
finalRectangle
The final rectangle.
GetCharacterIndexFromX(float)
Gets the character index at X-position.
GetRectangleFromCharacterIndex(int, bool)
Gets a rectangle of character by index.
Declaration
cs-api-definition
RectangleF GetRectangleFromCharacterIndex(int index, bool trailEdge)
Parameters
index
The index.
trailEdge
if set to true [trail edge].
Returns
Measure(SizeF)
Measures the textblock available size.
Declaration
cs-api-definition
void Measure(SizeF availableSize)
Parameters
availableSize
Size of the available.