Skip to main content

StringAlignment Enum

NuGet: GHIElectronics.TinyCLR.Drawing
Assembly: GHIElectronics.TinyCLR.Drawing
Namespace: System.Drawing

Specifies how text is aligned within its layout rectangle.

public enum StringAlignment

Fields

NameValueDescription
Near0Text is aligned near the layout origin (left or top).
Center1Text is centered within the layout rectangle.
Far2Text is aligned far from the layout origin (right or bottom).