PDFsharp-net6

XStringFormat

Namespace: PdfSharp.Drawing

Represents the text layout information.

public class XStringFormat

Inheritance ObjectXStringFormat

Properties

Alignment

Gets or sets horizontal text alignment information.

public XStringAlignment Alignment { get; set; }

Property Value

XStringAlignment

LineAlignment

Gets or sets the line alignment.

public XLineAlignment LineAlignment { get; set; }

Property Value

XLineAlignment

Default

Caution

Use XStringFormats.Default. (Note plural in class name.)


Gets a new XStringFormat object that aligns the text left on the base line.

public static XStringFormat Default { get; }

Property Value

XStringFormat

TopLeft

Caution

Use XStringFormats.Default. (Note plural in class name.)


Gets a new XStringFormat object that aligns the text top left of the layout rectangle.

public static XStringFormat TopLeft { get; }

Property Value

XStringFormat

Center

Caution

Use XStringFormats.Center. (Note plural in class name.)


Gets a new XStringFormat object that centers the text in the middle of the layout rectangle.

public static XStringFormat Center { get; }

Property Value

XStringFormat

TopCenter

Caution

Use XStringFormats.TopCenter. (Note plural in class name.)


Gets a new XStringFormat object that centers the text at the top of the layout rectangle.

public static XStringFormat TopCenter { get; }

Property Value

XStringFormat

BottomCenter

Caution

Use XStringFormats.BottomCenter. (Note plural in class name.)


Gets a new XStringFormat object that centers the text at the bottom of the layout rectangle.

public static XStringFormat BottomCenter { get; }

Property Value

XStringFormat

Constructors

XStringFormat()

Initializes a new instance of the XStringFormat class.

public XStringFormat()