officefileapi-devexpress-dot-pdf-dot-pdfstringformat-667e797f.md
Gets a generic typographic PdfStringFormat object.
Namespace : DevExpress.Pdf
Assembly : DevExpress.Pdf.v25.2.Core.dll
NuGet Package : DevExpress.Pdf.Core
public static PdfStringFormat GenericTypographic { get; }
Public Shared ReadOnly Property GenericTypographic As PdfStringFormat
| Type | Description |
|---|---|
| PdfStringFormat |
A generic typographic PdfStringFormat object.
|
The following table shows initial property values for a generic default instance of the GenericTypographic class.
| Property | Initial Value |
|---|---|
| FormatFlags | LineLimit, NoClip |
| Alignment | Near |
| LineAlignment | Near |
| Trimming | None |
| HotkeyPrefix | None |
| LeadingMarginFactor | 0 |
| TrailingMarginFactor | 0 |
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
int fontSize = 12;
PdfStringFormat stringFormat = PdfStringFormat.GenericTypographic;
stringFormat.Alignment = PdfStringAlignment.Center;
pdf-document-api-generate-document-layout/VB/DocumentCreationAPI/Program.vb#L50
Dim fontSize As Integer = 12
Dim stringFormat As PdfStringFormat = PdfStringFormat.GenericTypographic
stringFormat.Alignment = PdfStringAlignment.Center
See Also