ClassTextBlock
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
TextBlock()
Declaration
public TextBlock()
Fields
FontFamilyProperty
Declaration
public static readonly RadProperty FontFamilyProperty
Field Value
FontSizeProperty
Declaration
public static readonly RadProperty FontSizeProperty
Field Value
FontStyleProperty
Declaration
public static readonly RadProperty FontStyleProperty
Field Value
FontWeightProperty
Declaration
public static readonly RadProperty FontWeightProperty
Field Value
LineStackingStrategyProperty
Declaration
public static RadProperty LineStackingStrategyProperty
Field Value
Properties
FlowDirection
Gets or sets the direction of flow of the elements.
Declaration
public override FlowDirection FlowDirection { get; set; }
Property Value
Overrides
Inlines
Declaration
public ItemNotifyCollection<Run> Inlines { get; }
Property Value
LineStackingStrategy
Declaration
public LineStackingStrategy LineStackingStrategy { get; set; }
Property Value
Text
Declaration
public override string Text { get; set; }
Property Value
Overrides
TextAlignment
Declaration
public TextAlignment TextAlignment { get; set; }
Property Value
Methods
MeasureOverride(SizeF)
Measures the space required by the RadElement
Used by the layout system.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
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.
PaintElement(IGraphics, float, SizeF)
Paints the element's background and calls the base implementation to paint child elements.
Declaration
protected override void PaintElement(IGraphics graphics, float angle, SizeF scale)
Parameters
graphics
The graphics object used for painting.
angle
The rotation angle to apply during painting.
scale
The scale factor to apply during painting.
Overrides