Table of Contents

Class XStringFormat

Namespace
PdfSharp.Drawing
Assembly
PdfSharp.dll

Represents the text layout information.

public class XStringFormat
Inheritance
XStringFormat
Inherited Members

Constructors

XStringFormat()

Initializes a new instance of the XStringFormat class.

public XStringFormat()

Properties

Alignment

Gets or sets horizontal text alignment information.

public XStringAlignment Alignment { get; set; }

Property Value

XStringAlignment

BottomCenter

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

[Obsolete("Use XStringFormats.BottomCenter. (Note plural in class name.)")]
public static XStringFormat BottomCenter { get; }

Property Value

XStringFormat

Center

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

[Obsolete("Use XStringFormats.Center. (Note plural in class name.)")]
public static XStringFormat Center { get; }

Property Value

XStringFormat

Default

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

[Obsolete("Use XStringFormats.Default. (Note plural in class name.)")]
public static XStringFormat Default { get; }

Property Value

XStringFormat

LineAlignment

Gets or sets the line alignment.

public XLineAlignment LineAlignment { get; set; }

Property Value

XLineAlignment

TopCenter

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

[Obsolete("Use XStringFormats.TopCenter. (Note plural in class name.)")]
public static XStringFormat TopCenter { get; }

Property Value

XStringFormat

TopLeft

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

[Obsolete("Use XStringFormats.Default. (Note plural in class name.)")]
public static XStringFormat TopLeft { get; }

Property Value

XStringFormat