Skip to end of metadata
Go to start of metadata

An abstract class that provides a base for all inline flow content elements.

Working with BaselineAlignment Property

You can specify the baseline alignment of inline elements using BaselineAlignment property. The available baseline alignment options are Top, Center, Bottom, Subscript, Superscript, Baseline, TextTop, and TextBottom. The default value is Baseline. See the following screenshot to see the difference.

Note that BaselineAlignment only set the baseline alignment of the Inline element. If you use Subscript or Superscript options, it is recommended that you use smaller font size.

Definition

public abstract class Inline : TextElement

Summary

The following table summarizes the members exposed in this class.

Protected Constructors

Public Properties

BaselineAlignmentGets or sets the baseline alignment for the Inline element.
TextDecorationsGets a TextDecorationCollection that contains text decorations to apply to this element.

Fields

BaselineAlignmentPropertyIdentifies the BaselineAlignment dependency property.
TextDecorationsPropertyIdentifies the TextDecorations dependency property.

Protected Constructors

protected Inline()

 

Public Properties

public BaselineAlignment BaselineAlignment { get; set; }

Gets or sets the baseline alignment for the Inline element.

public TextDecorationCollection TextDecorations { get; set; }

Gets a TextDecorationCollection that contains text decorations to apply to this element.

Fields

public static readonly DependencyProperty BaselineAlignmentProperty

Identifies the BaselineAlignment dependency property.

public static readonly DependencyProperty TextDecorationsProperty

Identifies the TextDecorations dependency property.

  • No labels