Table of Contents

Enum TextBaseline

Namespace
Xui.Core.Canvas
Assembly
Core.dll

Specifies the vertical alignment of text relative to the drawing position. Mirrors the textBaseline property in the HTML5 Canvas 2D API.

public enum TextBaseline

Fields

Alphabetic = 3

The alphabetic baseline (default for Latin scripts) is aligned with the drawing position.

Bottom = 5

The bottom of the em box is aligned with the drawing position.

Hanging = 1

The hanging baseline is aligned with the drawing position (used in some scripts like Devanagari).

Ideographic = 4

The ideographic baseline is aligned with the drawing position (used in scripts like Chinese or Japanese).

Middle = 2

The middle of the text (roughly half the em height) is aligned with the drawing position.

Top = 0

The top of the em box is aligned with the drawing position.