Class
RadTextBlock

Provides methods and properties for using RadTextBlock.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Controls

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

cs-api-definition
public class RadTextBlock : ContentControl

Inheritance: objectRadTextBlock

Constructors

RadTextBlock()

Initializes a new instance of the RadTextBlock class.

Declaration

cs-api-definition
public RadTextBlock()

Properties

ActualHeight

Gets the actual height.

Declaration

cs-api-definition
public double ActualHeight { get; }

Property Value

double

The actual height.

ActualWidth

Gets the actual width.

Declaration

cs-api-definition
public double ActualWidth { get; }

Property Value

double

The actual width.

BaselineOffset

Gets the baseline offset.

Declaration

cs-api-definition
public double BaselineOffset { get; }

Property Value

double

The baseline offset.

Clip

Gets or sets the clip.

Declaration

cs-api-definition
public Rect Clip { get; set; }

Property Value

Rect

The value of the clip.

FontFamily

Gets or sets the font family.

Declaration

cs-api-definition
public FontFamily FontFamily { get; set; }

Property Value

FontFamily

The font family.

FontSize

Gets or sets the size of the font.

Declaration

cs-api-definition
public double FontSize { get; set; }

Property Value

double

The size of the font.

FontStyle

Gets or sets the font style.

Declaration

cs-api-definition
public FontStyle FontStyle { get; set; }

Property Value

FontStyle

The font style.

FontWeight

Gets or sets the font weight.

Declaration

cs-api-definition
public FontWeight FontWeight { get; set; }

Property Value

FontWeight

The font weight.

Foreground

Gets or sets the foreground.

Declaration

cs-api-definition
public Color Foreground { get; set; }

Property Value

Color

The foreground.

Inlines

Gets the inlines of RadTextBlock.

Declaration

cs-api-definition
public RadInlineCollection Inlines { get; }

Property Value

RadInlineCollection

The collection of inlines.

Left

Gets or sets the left of RadTextBlock.

Declaration

cs-api-definition
public double Left { get; set; }

Property Value

double

The left value.

MaxWidth

Gets or sets the max width.

Declaration

cs-api-definition
public double MaxWidth { get; set; }

Property Value

double

The maximum width of RadTextBlock.

Padding

Gets or sets the padding.

Declaration

cs-api-definition
public Thickness Padding { get; set; }

Property Value

Thickness

The padding.

Text

Gets or sets the text of RadTextBlock.

Declaration

cs-api-definition
public string Text { get; set; }

Property Value

string

The value of the text.

TextAlignment

Gets or sets the text alignment.

Declaration

cs-api-definition
public TextAlignment TextAlignment { get; set; }

Property Value

TextAlignment

The text alignment.

TextDecorations

Gets or sets the text decorations.

Declaration

cs-api-definition
public TextDecorationCollection TextDecorations { get; set; }

Property Value

TextDecorationCollection

The text decorations.

TextWrapping

Gets or sets the text wrapping.

Declaration

cs-api-definition
public TextWrapping TextWrapping { get; set; }

Property Value

TextWrapping

The text wrapping.

Top

Gets or sets the top value of RadTextBlock.

Declaration

cs-api-definition
public double Top { get; set; }

Property Value

double

The top value.

Visibility

Gets or sets the visibility.

Declaration

cs-api-definition
public Visibility Visibility { get; set; }

Property Value

Visibility

The visibility.

Width

Gets or sets the width.

Declaration

cs-api-definition
public double Width { get; set; }

Property Value

double

The width.

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

cs-api-definition
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.