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

ITextProvider

Interface

Supplies the text content, layout settings, and visual options used by a text primitive.

Definition

Namespace:Telerik.WinControls.Primitives

Assembly:Telerik.WinControls.dll

Syntax:

C#
public interface ITextProvider

Properties

Gets or sets whether overflowing text is shortened with an ellipsis.

C#
bool AutoEllipsis { get; set; }

Gets or sets whether compatible text rendering flips the text.

C#
bool FlipText { get; set; }

Gets or sets the font used to measure and render the text.

C#
Font Font { get; set; }

Gets or sets whether compatible-text-rendering measurement includes trailing spaces.

C#
bool MeasureTrailingSpaces { get; set; }

Gets or sets the shadow effect applied by compatible text rendering.

C#
ShadowSettings Shadow { get; set; }

Gets or sets whether mnemonic underlines are displayed when mnemonics are enabled.

C#
bool ShowKeyboardCues { get; set; }

Gets or sets the text content to render.

C#
string Text { get; set; }

Gets or sets the alignment of the text within its face rectangle.

C#
ContentAlignment TextAlignment { get; set; }

Gets or sets whether text is laid out horizontally or vertically.

C#
Orientation TextOrientation { get; set; }

Gets or sets whether text can wrap within the face rectangle.

C#
bool TextWrap { get; set; }

Gets or sets whether mnemonic markers in the text are interpreted.

C#
bool UseMnemonic { get; set; }

Methods

Gets the content rectangle inside the provider's bounds after padding is removed.

C#
RectangleF GetFaceRectangle()
Returns:

RectangleF