TextBlock
Definition
Namespace:Telerik.WinControls.SyntaxEditor.UI
Assembly:Telerik.WinControls.SyntaxEditor.dll
Syntax:
public class TextBlock : FrameworkElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElementTextBlock...
Implements:
Inherited Members
Constructors
public TextBlock()
Fields
public static readonly RadProperty FontFamilyProperty
public static readonly RadProperty FontSizeProperty
public static readonly RadProperty FontStyleProperty
public static readonly RadProperty FontWeightProperty
public static RadProperty LineHeightProperty
public static RadProperty LineStackingStrategyProperty
Properties
public double BaselineOffset { get; set; }
Gets or sets the direction of flow of the elements.
public override FlowDirection FlowDirection { get; set; }
Overrides:
public FontFamily FontFamily { get; set; }
public FontWeight FontWeight { get; set; }
public Brush Foreground { get; set; }
public ItemNotifyCollection<Run> Inlines { get; }
public double LineHeight { get; set; }
public LineStackingStrategy LineStackingStrategy { get; set; }
public TextAlignment TextAlignment { get; set; }
Methods
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.
Paints the element's background and calls the base implementation to paint child elements.
Returns the element's name and type, or its type name when it has no name.
public override string ToString()
A diagnostic string in the form Name[Type], or just Type when the name is empty.
Overrides: