FormattedText

FormattedText

Přehled

FormattedText je třída v Aspose.PDF FOSS pro .NET.

Representuje formátovaný text používaný při operacích stamp a mend.

Tato třída poskytuje 26 metod pro práci s objekty FormattedText v programech .NET. Dostupné metody zahrnují: AddNewLineText, FormattedText, IsCjk, SetCjkFontStyle. Všichni veřejní členové jsou přístupní jakékoli aplikaci .NET po instalaci balíčku Aspose.PDF FOSS pro .NET. Vlastnosti: BackgroundColor, CustomFontFile, FontName, FontSize, ForegroundColor, IsEmbedded a 3 další.

Vlastnosti

Název:Typ:PřístupPopis:
TextstringČteníObsah textu první řádky.
FontSizedoubleČtení/zápisVelikost písma v bodech.
FontNamestringČtení/zápisNázev písma (název základního písma PDF).
ForegroundColorColorČtení/zápisBarva popředí (textu).
BackgroundColorColorČtení/zápisBarva pozadí.
IsEmbeddedboolČtení/zápisZda je text vložen (pro nestandardní písma).
CustomFontFilestring?Čtení/zápisVlastní cesta k souboru písma (pro vkládání písma TrueType).
TextWidthfloatČteníPosuvná šířka textu při aktuálním písmu a velikosti, v bodech.
TextHeightfloatČteníVýška formátovaného textu, v bodech.

Metody

Podpis:Popis:
FormattedText()Vytvořte nový FormattedText s prázdným textem.
FormattedText(text: string)Vytvořte nový FormattedText se zadaným textem.
FormattedText(text: string, foregroundColor: Color, backgroundColor: Color)Vytvořte FormattedText s textem a barvami popředí/pozadí.
FormattedText(text: string, foregroundColor: FontColor)Vytvořte FormattedText s textem a FontColor popředím/pozadím.
FormattedText(text: string, foregroundColor: FontColor, backgroundColor: FontColor)Vytvořte FormattedText s textem a FontColor popředím/pozadím.
FormattedText(text: string, fontColor: FontColor, fontStyle: FontStyle, encodingType: EncodingType, embedded: bool, textSize: float)Vytvořte FormattedText s plným formátováním pomocí FontColor.
FormattedText(text: string, textColor: FontColor, backColor: FontColor, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float)Vytvořte FormattedText s plným formátováním pomocí FontColor s popředím a pozadím.
FormattedText(text: string, fontColor: FontColor, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)Vytvořte FormattedText s plným formátováním pomocí FontColor, s řádkováním.
FormattedText(text: string, textColor: Color, backColor: Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float)Vytvořte FormattedText s System.Drawing.Color popředím/pozadím a nastavením písma.
FormattedText(text: string, textColor: Color, backColor: Color, textFont: FontStyle, encoding: EncodingType, embedded: bool, textSize: float)Vytvořte FormattedText s System.Drawing.Color popředím/pozadím a FontStyle.
FormattedText(text: string, textColor: Color, backColor: Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)Volá FormattedText(text, textColor, backColor, textFont, textEncoding, embedded, textSize, lineSpacing) na této FormattedText instanci.
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)Volá FormattedText(text, textColor, backColor, textFont, textEncoding, embedded, textSize, lineSpacing) na této FormattedText instanci.
FormattedText(text: string, textColor: FontColor, backColor: FontColor, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)Volá FormattedText(text, textColor, backColor, textFont, textEncoding, embedded, textSize, lineSpacing) na této FormattedText instanci.
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color)System.Drawing.Color popředí + pár popředí/pozadí.
FormattedText(text: string, color: System.Drawing.Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float)System.Drawing.Color popředí + FontStyle + EncodingType, bez řádkování.
FormattedText(text: string, textColor: System.Drawing.Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)System.Drawing.Color popředí + FontStyle + EncodingType + řádkování.
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color, textFont: FontStyle, encoding: EncodingType, embedded: bool, textSize: float)System.Drawing.Color popředí/pozadí + FontStyle.
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float)System.Drawing.Color popředí/pozadí + řetězec názvu písma.
FormattedText(text: string, textColor: System.Drawing.Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float)Vytvořte FormattedText s System.Drawing.Color popředím a názvem písma nebo TrueType souborem písma.
FormattedText(text: string, textColor: Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float)Vytvořte FormattedText s Aspose.Pdf.Color popředím a názvem písma nebo TrueType souborem písma.
FormattedText(text: string, color: Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float)Vytvořte FormattedText s FontStyle (enum) a System.Drawing.Color.
FormattedText(text: string, textColor: Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)Vytvořte FormattedText s Aspose.Pdf.Color popředím/pozadím a řádkováním.
AddNewLineText(newLineText: string)Přidejte nový řádek textu.
AddNewLineText(newLineText: string, lineSpacing: float)Přidejte nový řádek textu s vlastním řádkováním.
IsCjk()Zkontrolujte, zda text obsahuje znaky CJK.
SetCjkFontStyle()Nastavte písmo na písmo podporující CJK (ekvivalent MS Gothic).

Viz také:

 Čeština