RadTextBlock
Provides methods and properties for using RadTextBlock.
Definition
Namespace:Telerik.Windows.Controls.Spreadsheet.Controls
Assembly:Telerik.Windows.Controls.Spreadsheet.dll
Syntax:
public class RadTextBlock : ContentControl
Inheritance: objectRadTextBlock
Constructors
Initializes a new instance of the RadTextBlock class.
public RadTextBlock()
Properties
Gets the actual height.
public double ActualHeight { get; }
The actual height.
Gets the actual width.
public double ActualWidth { get; }
The actual width.
Gets the baseline offset.
public double BaselineOffset { get; }
The baseline offset.
Clip
Rect
Gets or sets the clip.
public Rect Clip { get; set; }
The value of the clip.
FontFamily
FontFamily
Gets or sets the font family.
public FontFamily FontFamily { get; set; }
The font family.
Gets or sets the size of the font.
public double FontSize { get; set; }
The size of the font.
FontStyle
FontStyle
Gets or sets the font style.
public FontStyle FontStyle { get; set; }
The font style.
FontWeight
FontWeight
Gets or sets the font weight.
public FontWeight FontWeight { get; set; }
The font weight.
Foreground
Color
Gets or sets the foreground.
public Color Foreground { get; set; }
The foreground.
Gets the inlines of RadTextBlock.
public RadInlineCollection Inlines { get; }
The collection of inlines.
Gets or sets the left of RadTextBlock.
public double Left { get; set; }
The left value.
Gets or sets the max width.
public double MaxWidth { get; set; }
The maximum width of RadTextBlock.
Padding
Thickness
Gets or sets the padding.
public Thickness Padding { get; set; }
The padding.
Gets or sets the text of RadTextBlock.
public string Text { get; set; }
The value of the text.
TextAlignment
TextAlignment
Gets or sets the text alignment.
public TextAlignment TextAlignment { get; set; }
The text alignment.
TextDecorations
TextDecorationCollection
Gets or sets the text decorations.
public TextDecorationCollection TextDecorations { get; set; }
The text decorations.
TextWrapping
TextWrapping
Gets or sets the text wrapping.
public TextWrapping TextWrapping { get; set; }
The text wrapping.
Gets or sets the top value of RadTextBlock.
public double Top { get; set; }
The top value.
VerticalTextAlignment
VerticalTextAlignment
Gets or sets the vertical text alignment (baseline, superscript, or subscript).
public VerticalTextAlignment VerticalTextAlignment { get; set; }
The vertical text alignment.
Visibility
Visibility
Gets or sets the visibility.
public Visibility Visibility { get; set; }
The visibility.
Methods
Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior.
protected override Size MeasureOverride(Size availableSize)
The available size that this object can give to child objects. Infinity (PositiveInfinity) can be specified as a value to indicate that the object will size to whatever content is available.
Returns:Size
The size that this object determines it needs during layout, based on its calculations of the allocated sizes for child objects; or based on other considerations, such as a fixed container size.