Class Block
An abstract class that provides a base for all block-level content elements.
Inheritance
System.Object
Block
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()
Namespace: System.Windows.Documents
Assembly: OpenSilver.dll
Syntax
[NotImplemented]
public abstract class Block : TextElement
Constructors
| Improve this Doc View SourceBlock()
Initializes a new instance of the Block class.
Declaration
[NotImplemented]
protected Block()
Fields
| Improve this Doc View SourceLineHeightProperty
Identifies the LineHeight dependency property.
Declaration
public static readonly DependencyProperty LineHeightProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
LineStackingStrategyProperty
Identifies the LineStackingStrategy dependency property.
Declaration
[NotImplemented]
public static readonly DependencyProperty LineStackingStrategyProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
TextAlignmentProperty
Identifies the TextAlignment dependency property.
Declaration
[NotImplemented]
public static readonly DependencyProperty TextAlignmentProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceLineHeight
Gets or sets the height of each line of content.
Declaration
[NotImplemented]
public double LineHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The height of each line in pixels. A value of 0 indicates that the line height is determined automatically from the current font characteristics. The default is 0. |
LineStackingStrategy
Gets or sets a value that indicates how a line box is determined for each line of text in a Block. The default is MaxHeight.
Declaration
[NotImplemented]
public LineStackingStrategy LineStackingStrategy { get; set; }
Property Value
Type | Description |
---|---|
LineStackingStrategy |
TextAlignment
Gets or sets the horizontal alignment of the text content. The default is Left.
Declaration
[NotImplemented]
public TextAlignment TextAlignment { get; set; }
Property Value
Type | Description |
---|---|
TextAlignment |