New to Telerik UI for WinFormsStart a free 30-day trial

ITextBlock

Interface

Represents a single word in TextBoxWrapPanel

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public interface ITextBlock

Derived Classes: TextBlockElementTokenizedTextBlockElement

Properties

Gets the control bounding rectangle.

C#
Rectangle ControlBoundingRectangle { get; }

Gets the desired size of the block

C#
SizeF DesiredSize { get; }
Property Value:

The size of the desired.

Gets or sets the index of the block

C#
int Index { get; set; }
Property Value:

The index.

Gets the length of the word. It can be different than the exact text length.

C#
int Length { get; }

Gets or sets the block according to the previous one

C#
int Offset { get; set; }
Property Value:

The offset.

Gets or sets the block's text

C#
string Text { get; set; }
Property Value:

The text.

Methods

Arranges the textblock final rectangle.

C#
void Arrange(RectangleF finalRectangle)
Parameters:finalRectangleRectangleF

The final rectangle.

Gets the character index at X-position.

C#
int GetCharacterIndexFromX(float x)
Parameters:xfloat

The x.

Returns:

int

Gets a rectangle of character by index.

C#
RectangleF GetRectangleFromCharacterIndex(int index, bool trailEdge)
Parameters:indexint

The index.

trailEdgebool

if set to true [trail edge].

Returns:

RectangleF

Measures the textblock available size.

C#
void Measure(SizeF availableSize)
Parameters:availableSizeSizeF

Size of the available.