Class TextBlock
Provides a lightweight control for displaying small amounts of text.
Inheritance
System.Object
TextBlock
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: OpenSilver.dll
Syntax
public class TextBlock : Control
Examples
TextBlockName.Text = "Some text.";
Constructors
|
Improve this Doc
View Source
TextBlock()
Declaration
Fields
|
Improve this Doc
View Source
CharacterSpacingProperty
Declaration
[NotImplemented]
public static readonly DependencyProperty CharacterSpacingProperty
Field Value
|
Improve this Doc
View Source
LineHeightProperty
Identifies the LineHeight dependency property.
Declaration
public static readonly DependencyProperty LineHeightProperty
Field Value
|
Improve this Doc
View Source
LineStackingStrategyProperty
Declaration
[NotImplemented]
public static readonly DependencyProperty LineStackingStrategyProperty
Field Value
|
Improve this Doc
View Source
TextAlignmentProperty
Identifies the TextAlignment dependency property.
Declaration
public static readonly DependencyProperty TextAlignmentProperty
Field Value
|
Improve this Doc
View Source
TextProperty
Identifies the Text dependency property.
Declaration
public static readonly DependencyProperty TextProperty
Field Value
|
Improve this Doc
View Source
TextTrimmingProperty
Declaration
public static readonly DependencyProperty TextTrimmingProperty
Field Value
|
Improve this Doc
View Source
TextWrappingProperty
Identifies the TextWrapping dependency property.
Declaration
public static readonly DependencyProperty TextWrappingProperty
Field Value
Properties
|
Improve this Doc
View Source
BaselineOffset
Declaration
[NotImplemented]
public double BaselineOffset { get; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
CharacterSpacing
Declaration
[NotImplemented]
public int CharacterSpacing { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
FontSource
Declaration
[NotImplemented]
public FontSource FontSource { get; set; }
Property Value
|
Improve this Doc
View Source
Inlines
Declaration
public InlineCollection Inlines { get; }
Property Value
|
Improve this Doc
View Source
LineHeight
Gets or sets the height of each line of content.
Declaration
public double LineHeight { get; set; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
LineStackingStrategy
Gets or sets a value that indicates how a line box is determined for each line
of text in the TextBlock.
Declaration
[NotImplemented]
public LineStackingStrategy LineStackingStrategy { get; set; }
Property Value
|
Improve this Doc
View Source
Text
Get or Set the Text property
Declaration
public string Text { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
TextAlignment
Gets or sets how the text should be aligned in the TextBlock.
Declaration
public TextAlignment TextAlignment { get; set; }
Property Value
|
Improve this Doc
View Source
TextTrimming
Gets or sets how the TextBlock trims text.
Declaration
public TextTrimming TextTrimming { get; set; }
Property Value
|
Improve this Doc
View Source
TextWrapping
Gets or sets how the TextBlock wraps text.
Declaration
public TextWrapping TextWrapping { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
ArrangeOverride(Size)
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
Type |
Name |
Description |
Size |
finalSize |
|
Returns
Overrides
|
Improve this Doc
View Source
CreateDomElement(Object, out Object)
Declaration
public override object CreateDomElement(object parentRef, out object domElementWhereToPlaceChildren)
Parameters
Type |
Name |
Description |
System.Object |
parentRef |
|
System.Object |
domElementWhereToPlaceChildren |
|
Returns
Type |
Description |
System.Object |
|
Overrides
|
Improve this Doc
View Source
INTERNAL_OnAttachedToVisualTree()
Declaration
protected override void INTERNAL_OnAttachedToVisualTree()
Overrides
|
Improve this Doc
View Source
MeasureOverride(Size)
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type |
Name |
Description |
Size |
availableSize |
|
Returns
Overrides
Extension Methods