TextBlockElement
Represents a single word in TextBoxWrapPanel
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class TextBlockElement : VisualElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ITextBlock
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementTextBlockElement...
Implements:
Inherited Members
Constructors
Initializes a new instance of the TextBlockElement class.
public TextBlockElement()
Initializes a new instance of the TextBlockElement class.
Properties
Gets or sets a value indicating whether the word's background can be painted.
public bool DrawFill { get; set; }
true if paint the background; otherwise, false.
Gets or sets the index of the word
public int Index { get; set; }
The index.
Implements:
Gets the length of the word. It can be different than the exact text length.
public virtual int Length { get; }
Implements:
Gets or sets the word according to the previous one
public int Offset { get; set; }
The offset.
Implements:
Methods
Invalidates text measurements after the DPI scale changes so the font is measured at its new scale.
public override void DpiScaleChanged(SizeF scaleFactor)
The new DPI scale factor.
Overrides:
Configures the block to paint its own text, avoid horizontal stretching, and initialize its measurement caches.
protected override void InitializeFields()
Overrides:
Measures the displayed text, preserving text height while reporting zero width for an empty block.
Invalidates cached text measurement when the block's font changes.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
The property-change notification.
Overrides:
Paints the optional fill and text, omitting whitespace-only text when the parent view does not use system password masking.
Resets the base layout state and invalidates cached text measurements.
protected override void ResetLayoutCore()
Overrides:
Returns a diagnostic string containing the block text, offset, logical length, and child index.
public override string ToString()
A formatted description of this text block.
Overrides: