BaselineAlignment Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Describes how the baseline for a text-based element is positioned on the vertical axis, relative to the established baseline for text.
public enum class BaselineAlignment
public enum BaselineAlignment
type BaselineAlignment =
Public Enum BaselineAlignment
- Inheritance
Fields
| Name | Value | Description |
|---|---|---|
| Top | 0 | A baseline that is aligned to the upper edge of the containing box. |
| Center | 1 | A baseline that is aligned to the center of the containing box. |
| Bottom | 2 | A baseline that is aligned at the lower edge of the containing box. |
| Baseline | 3 | A baseline that is aligned at the actual baseline of the containing box. |
| TextTop | 4 | A baseline that is aligned at the upper edge of the text baseline. |
| TextBottom | 5 | A baseline that is aligned at the lower edge of the text baseline. |
| Subscript | 6 | A baseline that is aligned at the subscript position of the containing box. |
| Superscript | 7 | A baseline that is aligned at the superscript position of the containing box. |
Examples
The following example shows how to use the BaselineAlignment property to align text within a containing box (in this case, a Paragraph).
Baseline:
Baseline
Top
Bottom
Center
Baseline:
Subscript
Baseline
Superscript
Baseline:
Top
TextTop
Bottom
TextBottom
The following illustration shows the result of the code above.
