FormattedText

FormattedText

Overzicht

FormattedText is een klasse in Aspose.PDF FOSS voor .NET.

Stelt opgemaakte tekst voor die wordt gebruikt bij stempel- en herstelbewerkingen.

Deze klasse biedt 26 methoden voor het werken met FormattedText objecten in .NET programma’s. Beschikbare methoden zijn: AddNewLineText, FormattedText, IsCjk, SetCjkFontStyle. Alle openbare leden zijn toegankelijk voor elke .NET applicatie na het installeren van het Aspose.PDF FOSS voor .NET pakket. Eigenschappen: BackgroundColor, CustomFontFile, FontName, FontSize, ForegroundColor, IsEmbedded, en nog 3.

Eigenschappen

NaamTypeToegangBeschrijving
TextstringLezenDe tekstinhoud van de eerste regel.
FontSizedoubleLezen/schrijvenLettergrootte in punten.
FontNamestringLezen/schrijvenLettertype naam (PDF basislettertype naam).
ForegroundColorColorLezen/schrijvenVoorgrond (tekst) kleur.
BackgroundColorColorLezen/schrijvenAchtergrondkleur.
IsEmbeddedboolLezen/schrijvenOf de tekst is ingesloten (voor niet-standaardlettertypen).
CustomFontFilestring?Lezen/schrijvenAangepast lettertypebestandspad (voor TrueType lettertype-inbedding).
TextWidthfloatLezenVoorwaartse breedte van de tekst bij het huidige lettertype en de huidige grootte, in punten.
TextHeightfloatLezenHoogte van de opgemaakte tekst, in punten.

Methoden

HandtekeningBeschrijving
FormattedText()Maak een nieuwe FormattedText met lege tekst.
FormattedText(text: string)Maak een nieuwe FormattedText met de opgegeven tekst.
FormattedText(text: string, foregroundColor: Color, backgroundColor: Color)Maak een FormattedText met tekst en voor- en achtergrondkleuren.
FormattedText(text: string, foregroundColor: FontColor)Maak een FormattedText met tekst en FontColor voor- en achtergrond.
FormattedText(text: string, foregroundColor: FontColor, backgroundColor: FontColor)Maak een FormattedText met tekst en FontColor voor- en achtergrond.
FormattedText(text: string, fontColor: FontColor, fontStyle: FontStyle, encodingType: EncodingType, embedded: bool, textSize: float)Maak een FormattedText met volledige opmaak met behulp van FontColor.
FormattedText(text: string, textColor: FontColor, backColor: FontColor, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float)Maak een FormattedText met volledige opmaak met behulp van FontColor met voorgrond en achtergrond.
FormattedText(text: string, fontColor: FontColor, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)Maak een FormattedText met volledige opmaak met behulp van FontColor, met regelafstand.
FormattedText(text: string, textColor: Color, backColor: Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float)Maak een FormattedText met System.Drawing.Color voorgrond/achtergrond en lettertype-instellingen.
FormattedText(text: string, textColor: Color, backColor: Color, textFont: FontStyle, encoding: EncodingType, embedded: bool, textSize: float)Maak een FormattedText met System.Drawing.Color voorgrond/achtergrond en FontStyle.
FormattedText(text: string, textColor: Color, backColor: Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)Roept FormattedText(text, textColor, backColor, textFont, textEncoding, embedded, textSize, lineSpacing) aan op deze FormattedText instantie.
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)Roept FormattedText(text, textColor, backColor, textFont, textEncoding, embedded, textSize, lineSpacing) aan op deze FormattedText instantie.
FormattedText(text: string, textColor: FontColor, backColor: FontColor, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)Roept FormattedText(text, textColor, backColor, textFont, textEncoding, embedded, textSize, lineSpacing) aan op deze FormattedText instantie.
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color)System.Drawing.Color voorgrond + voorgrond/achtergrond paar.
FormattedText(text: string, color: System.Drawing.Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float)System.Drawing.Color voorgrond + FontStyle + EncodingType, geen regelafstand.
FormattedText(text: string, textColor: System.Drawing.Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)System.Drawing.Color voorgrond + FontStyle + EncodingType + regelafstand.
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color, textFont: FontStyle, encoding: EncodingType, embedded: bool, textSize: float)System.Drawing.Color voorgrond/achtergrond + FontStyle.
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float)System.Drawing.Color voorgrond/achtergrond + lettertype-naam string.
FormattedText(text: string, textColor: System.Drawing.Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float)Maak een FormattedText met System.Drawing.Color voorgrond en een lettertype-naam of TrueType lettertype-bestand.
FormattedText(text: string, textColor: Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float)Maak een FormattedText met Aspose.Pdf.Color voorgrond en een lettertype-naam of TrueType lettertype-bestand.
FormattedText(text: string, color: Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float)Maak een FormattedText met FontStyle (enum) en System.Drawing.Color.
FormattedText(text: string, textColor: Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)Maak een FormattedText met Aspose.Pdf.Color voorgrond/achtergrond en een regelafstand.
AddNewLineText(newLineText: string)Voeg een nieuwe regel tekst toe.
AddNewLineText(newLineText: string, lineSpacing: float)Voeg een nieuwe regel tekst toe met aangepaste regelafstand.
IsCjk()Controleer of de tekst CJK-tekens bevat.
SetCjkFontStyle()Stel het lettertype in op een CJK-ondersteunend lettertype (MS Gothic-equivalent).

Zie ook

 Nederlands