TextParams
Carries text, bounds, formatting, and rendering options from a text primitive to its renderer.
Definition
Namespace:Telerik.WinControls.Primitives
Assembly:Telerik.WinControls.dll
Syntax:
public class TextParams
Inheritance: objectTextParams
Constructors
public TextParams()
Fields
The text alignment used for drawing and measurement.
public ContentAlignment alignment
Requests end ellipsis when text does not fit its drawing area.
public bool autoEllipsis
The background color used by the disabled or forced-background drawing path.
public Color backColor
Controls whether the HTML-capable and compatible-rendering paths clip text to the drawing area.
public bool ClipText
Indicates whether the source element is enabled, which affects disabled-state drawing.
public bool enabled
Forces the GDI text path that draws against backColor, even when enabled.
public bool forceBackColor
The background color filled behind the character ranges specified by highlightRanges.
public Color highlightColor
Character ranges in text whose measured bounds are filled with highlightColor before drawing the text.
public CharacterRange[] highlightRanges
Includes trailing spaces in compatible-rendering measurement.
public bool measureTrailingSpaces
The rectangle available for drawing text.
public RectangleF paintingRectangle
Enables right-to-left text direction and alignment.
public bool rightToLeft
The shadow settings passed to the compatible text-rendering path.
public ShadowSettings shadow
Controls whether mnemonic underlines are shown when mnemonics are enabled.
public bool showKeyboardCues
Carries the source element's horizontal-stretch setting; built-in text renderers do not consume it.
public bool stretchHorizontally
The horizontal or vertical text orientation.
public Orientation textOrientation
The rendering hint applied to the graphics context.
public TextRenderingHint textRenderingHint
Selects compatible GDI+ text rendering instead of the WinForms text renderer.
public bool useCompatibleTextRendering
Controls whether ampersands introduce mnemonic markers.
public bool useMnemonic
Methods
Creates a StringFormat from this instance's alignment, direction, ellipsis, line-limit, mnemonic, trailing-space, wrapping, and clipping settings.
public virtual StringFormat CreateStringFormat()
A new format object; the caller is responsible for disposing it.