Back to Devexpress

PdfStringFormat.GenericTypographic Property

officefileapi-devexpress-dot-pdf-dot-pdfstringformat-667e797f.md

latest2.8 KB
Original Source

PdfStringFormat.GenericTypographic Property

Gets a generic typographic PdfStringFormat object.

Namespace : DevExpress.Pdf

Assembly : DevExpress.Pdf.v25.2.Core.dll

NuGet Package : DevExpress.Pdf.Core

Declaration

csharp
public static PdfStringFormat GenericTypographic { get; }
vb
Public Shared ReadOnly Property GenericTypographic As PdfStringFormat

Property Value

TypeDescription
PdfStringFormat

A generic typographic PdfStringFormat object.

|

Remarks

The following table shows initial property values for a generic default instance of the GenericTypographic class.

PropertyInitial Value
FormatFlagsLineLimit, NoClip
AlignmentNear
LineAlignmentNear
TrimmingNone
HotkeyPrefixNone
LeadingMarginFactor0
TrailingMarginFactor0

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GenericTypographic property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

pdf-document-api-generate-document-layout/CS/DocumentCreationAPI/Program.cs#L49

csharp
int fontSize = 12;
PdfStringFormat stringFormat = PdfStringFormat.GenericTypographic;
stringFormat.Alignment = PdfStringAlignment.Center;

pdf-document-api-generate-document-layout/VB/DocumentCreationAPI/Program.vb#L50

vb
Dim fontSize As Integer = 12
Dim stringFormat As PdfStringFormat = PdfStringFormat.GenericTypographic
stringFormat.Alignment = PdfStringAlignment.Center

See Also

PdfStringFormat Class

PdfStringFormat Members

DevExpress.Pdf Namespace