Skip to main content

StringFormat Class

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

Encapsulates text layout information such as alignment, trimming, and format flags.

public sealed class StringFormat

Properties

Alignment

public StringAlignment Alignment { get; set; }

Gets or sets the horizontal alignment of the text.

Trimming

public StringTrimming Trimming { get; set; }

Gets or sets how text is trimmed when it does not fit.

FormatFlags

public StringFormatFlags FormatFlags { get; set; }

Gets or sets the flags that control text layout and rendering.