New to Telerik UI for WinForms? Start a free 30-day trial

Stores the formatted segments and measured layout data for one rendered text line.

Definition

Namespace:Telerik.WinControls.TextPrimitiveUtils

Assembly:Telerik.WinControls.dll

Syntax:

C#
public class TextLine

Inheritance: objectTextLine

Constructors

Creates an empty line with an empty segment list and zero measured size.

C#
public TextLine()

Properties

BaseLine Property

C#
public float BaseLine { get; set; }

Gets or sets the measured width and height assigned to this line.

C#
public SizeF LineSize { get; set; }

Gets or replaces the mutable formatted segments in this line.

C#
public List<FormattedText> List { get; set; }

Methods

Gets the alignment of the first segment, or MiddleLeft when the line is empty.

C#
public ContentAlignment GetLineAligment()
Returns:

ContentAlignment

Gets the offset of the first segment, or zero when the line is empty.

C#
public float GetLineOffset()
Returns:

float