TextBlock
Definition
Namespace:Telerik.WinControls.Spreadsheet.UI
Assembly:Telerik.WinControls.RadSpreadsheet.dll
Syntax:
public class TextBlock : FrameworkElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, IShortcutProvider, IStylableElement, IStylableNode, ISupportDrop
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIElementFrameworkElementTextBlock...
Implements:
Inherited Members
Constructors
public TextBlock()
Fields
public static RadProperty LineHeightProperty
public static RadProperty LineStackingStrategyProperty
Properties
public double BaselineOffset { get; set; }
public FlowDirection FlowDirection { get; set; }
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; }
Gets or sets the padding sizes of the element. The paddings are included into the element's bounding rectangle.
public override Padding Padding { get; set; }
Overrides:
public TextAlignment TextAlignment { get; set; }
public TextWrapping TextWrapping { 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 a string representation of the RadComponentElement, including its site name if available.
public override string ToString()
A string containing the site name and type name if the element has a site; otherwise, just the type name.
Overrides: