Interface
ITextBlock

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.

Declaration

cs-api-definition
Rectangle ControlBoundingRectangle { get; }

Property Value

Rectangle

DesiredSize

Gets the desired size of the block

Declaration

cs-api-definition
SizeF DesiredSize { get; }

Property Value

SizeF

The size of the desired.

Index

Gets or sets the index of the block

Declaration

cs-api-definition
int Index { get; set; }

Property Value

int

The index.

Length

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

Declaration

cs-api-definition
int Length { get; }

Property Value

int

Offset

Gets or sets the block according to the previous one

Declaration

cs-api-definition
int Offset { get; set; }

Property Value

int

The offset.

Text

Gets or sets the block's text

Declaration

cs-api-definition
string Text { get; set; }

Property Value

string

The text.

Methods

Arrange(RectangleF)

Arranges the textblock final rectangle.

Declaration

cs-api-definition
void Arrange(RectangleF finalRectangle)

Parameters

finalRectangle

RectangleF

The final rectangle.

GetCharacterIndexFromX(float)

Gets the character index at X-position.

Declaration

cs-api-definition
int GetCharacterIndexFromX(float x)

Parameters

x

float

The x.

Returns

int

GetRectangleFromCharacterIndex(int, bool)

Gets a rectangle of character by index.

Declaration

cs-api-definition
RectangleF GetRectangleFromCharacterIndex(int index, bool trailEdge)

Parameters

index

int

The index.

trailEdge

bool

if set to true [trail edge].

Returns

RectangleF

Measure(SizeF)

Measures the textblock available size.

Declaration

cs-api-definition
void Measure(SizeF availableSize)

Parameters

availableSize

SizeF

Size of the available.