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
Called when the DPI scale factor changes. Updates the scale factor and notifies child elements.
public override void DpiScaleChanged(SizeF scaleFactor)
The new DPI scale factor.
Overrides:
Initializes member fields to their default values. This method is called prior the CreateChildItems one and allows for initialization of members on which child elements depend.
protected override void InitializeFields()
Overrides:
Measures the space required by the RadElement
Used by the layout system.
protected override SizeF MeasureOverride(SizeF availableSize)
The size that is available to the RadElement. The available size can be infinity (to take the full size of the element)
Returns:The minimum size required by the element to be completely visible. Cannot be infinity.
Overrides:
In this method call to the Measure method of each child must be made.
Called when a property value has changed, allowing for custom response to property changes.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
The property changed event arguments.
Overrides:
Paints the element's background and calls the base implementation to paint child elements.
Resets the core layout properties and removes this element from layout queues.
protected override void ResetLayoutCore()
Overrides: