'Deklaration
Public ReadOnly Property OutputFormatter As PropertyOutputFormatterBase
public PropertyOutputFormatterBase OutputFormatter {get;}
public: property PropertyOutputFormatterBase^ OutputFormatter { PropertyOutputFormatterBase^ get(); }
Hierüber lassen sich diverse Formatierungen für die Darstellung des Textes einstellen. Folgende Klassen stehen Ihnen für die Formartierung zur Verfügung:
PropertyOutputFormatterCurrency
PropertyOutputFormatterDateTime
'Deklaration
Public ReadOnly Property OutputFormatter As PropertyOutputFormatterBase
public PropertyOutputFormatterBase OutputFormatter {get;}
public: property PropertyOutputFormatterBase^ OutputFormatter { PropertyOutputFormatterBase^ get(); }
// add a paragraph Paragraph llobjParagraph = new Paragraph(llobjText.Paragraphs); llobjParagraph.Contents = "1324.4567"; PropertyOutputFormatterCurrency formatter = new PropertyOutputFormatterCurrency(llobjParagraph.OutputFormatter); //format to just two decimals formatter.CountOfDecimals = "2";
Plattformen: Windows 10 (Version 21H2 - 22H2), Windows 11 (21H2 - 23H2), Windows Server 2016 - 2022
.NET: .NET Framework 4.8, .NET 6, .NET 7, .NET 8