TextBlock
Class
Definition
Namespace:Telerik.WinControls.RichTextEditor.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
C#
public class TextBlock : FrameworkElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElementTextBlock...
Implements:
Inherited Members
Constructors
C#
public TextBlock()
Fields
C#
public static readonly RadProperty FontFamilyProperty
C#
public static readonly RadProperty FontSizeProperty
C#
public static readonly RadProperty FontStyleProperty
C#
public static readonly RadProperty FontWeightProperty
C#
public static RadProperty LineHeightProperty
C#
public static RadProperty LineStackingStrategyProperty
Properties
C#
public double BaselineOffset { get; set; }
C#
public FlowDirection FlowDirection { get; set; }
C#
public FontFamily FontFamily { get; set; }
C#
public FontWeight FontWeight { get; set; }
C#
public Brush Foreground { get; set; }
C#
public ItemNotifyCollection<Run> Inlines { get; }
C#
public double LineHeight { get; set; }
C#
public LineStackingStrategy LineStackingStrategy { get; set; }
C#
public TextAlignment TextAlignment { get; set; }
Methods
Measures the space required by the RadElement
Used by the layout system.
C#
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:
Remarks:
In this method call to the Measure method of each child must be made.
Paints the element's background and calls the base implementation to paint child elements.