Namespace: PdfSharp.Drawing
Represents the text layout information.
public class XStringFormat
Inheritance Object → XStringFormat
Gets or sets horizontal text alignment information.
public XStringAlignment Alignment { get; set; }
Gets or sets the line alignment.
public XLineAlignment LineAlignment { get; set; }
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; }
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; }
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; }
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; }
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; }
Initializes a new instance of the XStringFormat class.
public XStringFormat()