Click or drag to resize
CanvasTextLayoutOpticalAlignment Property
Specifies the optical margin aligment for the text layout.

Namespace:  Microsoft.Graphics.Canvas.Text
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version:
public CanvasOpticalAlignment OpticalAlignment { get; set; }

Property Value

Type: CanvasOpticalAlignment

By default, glyphs are aligned to the margin by the default origin and side-bearings of the glyph. If you specify CanvasOpticalAlignment.None, then the alignment uses the side bearings to offset the glyph from the aligned edge, to ensure the ink of the glyphs are aligned.

See Also