ClassRadTextBlock
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
RadTextBlock()
Initializes a new instance of the RadTextBlock class.
Declaration
public RadTextBlock()
Properties
ActualHeight
Gets the actual height.
Declaration
public double ActualHeight { get; }
Property Value
The actual height.
ActualWidth
Gets the actual width.
Declaration
public double ActualWidth { get; }
Property Value
The actual width.
BaselineOffset
Gets the baseline offset.
Declaration
public double BaselineOffset { get; }
Property Value
The baseline offset.
Clip
Gets or sets the clip.
Declaration
public Rect Clip { get; set; }
Property Value
Rect
The value of the clip.
FontFamily
Gets or sets the font family.
Declaration
public FontFamily FontFamily { get; set; }
Property Value
FontFamily
The font family.
FontSize
Gets or sets the size of the font.
Declaration
public double FontSize { get; set; }
Property Value
The size of the font.
FontStyle
Gets or sets the font style.
Declaration
public FontStyle FontStyle { get; set; }
Property Value
FontStyle
The font style.
FontWeight
Gets or sets the font weight.
Declaration
public FontWeight FontWeight { get; set; }
Property Value
FontWeight
The font weight.
Foreground
Gets or sets the foreground.
Declaration
public Color Foreground { get; set; }
Property Value
Color
The foreground.
Inlines
Gets the inlines of RadTextBlock.
Declaration
public RadInlineCollection Inlines { get; }
Property Value
The collection of inlines.
Left
Gets or sets the left of RadTextBlock.
Declaration
public double Left { get; set; }
Property Value
The left value.
MaxWidth
Gets or sets the max width.
Declaration
public double MaxWidth { get; set; }
Property Value
The maximum width of RadTextBlock.
Padding
Gets or sets the padding.
Declaration
public Thickness Padding { get; set; }
Property Value
Thickness
The padding.
Text
Gets or sets the text of RadTextBlock.
Declaration
public string Text { get; set; }
Property Value
The value of the text.
TextAlignment
Gets or sets the text alignment.
Declaration
public TextAlignment TextAlignment { get; set; }
Property Value
TextAlignment
The text alignment.
TextDecorations
Gets or sets the text decorations.
Declaration
public TextDecorationCollection TextDecorations { get; set; }
Property Value
TextDecorationCollection
The text decorations.
TextWrapping
Gets or sets the text wrapping.
Declaration
public TextWrapping TextWrapping { get; set; }
Property Value
TextWrapping
The text wrapping.
Top
Gets or sets the top value of RadTextBlock.
Visibility
Gets or sets the visibility.
Declaration
public Visibility Visibility { get; set; }
Property Value
Visibility
The visibility.
Methods
MeasureOverride(Size)
Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
availableSize
Size
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.