New to Telerik UI for WPFStart a free 30-day trial

Provides methods and properties for using RadTextBlock.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Controls

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

C#
public class RadTextBlock : ContentControl

Inheritance: objectRadTextBlock

Constructors

Initializes a new instance of the RadTextBlock class.

C#
public RadTextBlock()

Properties

Gets the actual height.

C#
public double ActualHeight { get; }
Property Value:

The actual height.

Gets the actual width.

C#
public double ActualWidth { get; }
Property Value:

The actual width.

Gets the baseline offset.

C#
public double BaselineOffset { get; }
Property Value:

The baseline offset.

Clip

Rect

Gets or sets the clip.

C#
public Rect Clip { get; set; }
Property Value:

The value of the clip.

FontFamily

FontFamily

Gets or sets the font family.

C#
public FontFamily FontFamily { get; set; }
Property Value:

The font family.

Gets or sets the size of the font.

C#
public double FontSize { get; set; }
Property Value:

The size of the font.

FontStyle

FontStyle

Gets or sets the font style.

C#
public FontStyle FontStyle { get; set; }
Property Value:

The font style.

FontWeight

FontWeight

Gets or sets the font weight.

C#
public FontWeight FontWeight { get; set; }
Property Value:

The font weight.

Gets or sets the foreground.

C#
public Color Foreground { get; set; }
Property Value:

The foreground.

Gets the inlines of RadTextBlock.

C#
public RadInlineCollection Inlines { get; }
Property Value:

The collection of inlines.

Gets or sets the left of RadTextBlock.

C#
public double Left { get; set; }
Property Value:

The left value.

Gets or sets the max width.

C#
public double MaxWidth { get; set; }
Property Value:

The maximum width of RadTextBlock.

Padding

Thickness

Gets or sets the padding.

C#
public Thickness Padding { get; set; }
Property Value:

The padding.

Gets or sets the text of RadTextBlock.

C#
public string Text { get; set; }
Property Value:

The value of the text.

TextAlignment

TextAlignment

Gets or sets the text alignment.

C#
public TextAlignment TextAlignment { get; set; }
Property Value:

The text alignment.

TextDecorations

TextDecorationCollection

Gets or sets the text decorations.

C#
public TextDecorationCollection TextDecorations { get; set; }
Property Value:

The text decorations.

TextWrapping

TextWrapping

Gets or sets the text wrapping.

C#
public TextWrapping TextWrapping { get; set; }
Property Value:

The text wrapping.

Gets or sets the top value of RadTextBlock.

C#
public double Top { get; set; }
Property Value:

The top value.

VerticalTextAlignment

VerticalTextAlignment

Gets or sets the vertical text alignment (baseline, superscript, or subscript).

C#
public VerticalTextAlignment VerticalTextAlignment { get; set; }
Property Value:

The vertical text alignment.

Visibility

Visibility

Gets or sets the visibility.

C#
public Visibility Visibility { get; set; }
Property Value:

The visibility.

Gets or sets the width.

C#
public double Width { get; set; }
Property Value:

The width.

Methods

Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior.

C#
protected override Size MeasureOverride(Size availableSize)
Parameters:availableSizeSize

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.