FormattedText
Revisió
FormattedText És una classe en Aspose.PDF FOSS per a .NET.
Representen el text formatat utilitzat en operacions de stamp i mend.
Aquesta classe proporciona 26 mètodes per treballar amb els objectes FormattedText en programes .NET. Els mètodes disponibles inclouen: AddNewLineText, FormattedText, IsCjk, SetCjkFontStyle. Tots els membres públics estan accessibles a qualsevol aplicació .NET després d’instal·lar el Aspose.PDF FOSS per al paquet .Net. Propietats : BackgroundColor, CustomFontFile, FontName, FontSize, ForegroundColor, IsEmbedded,I tres més.
Propietats
| Nom | Tipus | Access | Descripció |
|---|---|---|---|
Text | string | Llegir | El primer text de la línia. |
FontSize | double | Llegir / Escriure | Fonts en punts. |
FontName | string | Llegir / Escriure | Nom de font (nom de base PDF). |
ForegroundColor | Color | Llegir / Escriure | El color del text (foreground). |
BackgroundColor | Color | Llegir / Escriure | color de fons. |
IsEmbedded | bool | Llegir / Escriure | Si el text està embeddat (per a fonts no estàndards). |
CustomFontFile | string? | Llegir / Escriure | Puta de fitxer de font personalitzada (per a la incorporació de lletres TrueType). |
TextWidth | float | Llegir | Avançar l’amplada del text a la font i mida actual, en punts. |
TextHeight | float | Llegir | Alçada total del bloc de text format (suma d’alçades de línia). |
Mètodes
| Signature | Descripció |
|---|---|
FormattedText() | Crea un nou FormattedText amb text buit. |
FormattedText(text: string) | Crea un nou FormattedText amb el text especificat. |
FormattedText(text: string, foregroundColor: Color, backgroundColor: Color) | Crea un FormattedText amb text i colors de fons/prefons. |
FormattedText(text: string, foregroundColor: FontColor) | Crea un FormattedText amb text i FontColor avant/desenvolupament. |
FormattedText(text: string, foregroundColor: FontColor, backgroundColor: FontColor) | Crea un FormattedText amb text i FontColor avant/desenvolupament. |
FormattedText(text: string, fontColor: FontColor, fontStyle: FontStyle, encodingType: EncodingType, embedded: bool, textSize: float) | Crea un FormattedText amb formatatge complet utilitzant FontColor. |
FormattedText(text: string, textColor: FontColor, backColor: FontColor, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float) | Crea un FormattedText amb formatatge complet utilitzant FontColor i amb avantguarda i fons. |
FormattedText(text: string, fontColor: FontColor, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float) | Crea un FormattedText amb formatatge complet utilitzant FontColor, amb l’espai de línia. |
FormattedText(text: string, textColor: Color, backColor: Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float) | Crea un FormattedText amb els ajustos de font i background. |
FormattedText(text: string, textColor: Color, backColor: Color, textFont: FontStyle, encoding: EncodingType, embedded: bool, textSize: float) | Crea un FormattedText amb System.Drawing.Color avant/desençà i FontStyle. |
FormattedText(text: string, textColor: Color, backColor: Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float) | Coneix FormattedText(text, textColor, backColore, TextFont, tekstEncodificació, embedded, texSize, lineSpacing) en aquest instància FormattedText. |
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float) | Coneix FormattedText(text, textColor, backColore, TextFont, tekstEncodificació, embedded, texSize, lineSpacing) en aquest instància FormattedText. |
FormattedText(text: string, textColor: FontColor, backColor: FontColor, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float) | Coneix FormattedText(text, textColor, backColore, TextFont, tekstEncodificació, embedded, texSize, lineSpacing) en aquest instància FormattedText. |
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color) | System.Drawing.Color avant + avant / darrere parell. |
FormattedText(text: string, color: System.Drawing.Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float) | System.Drawing.Color avant + FontStyle + EncodingType, no hi ha cap líniaSpacing. |
FormattedText(text: string, textColor: System.Drawing.Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float) | System.Drawing.Color avant + FontStyle + EncodingType+ lineSpacing. |
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color, textFont: FontStyle, encoding: EncodingType, embedded: bool, textSize: float) | ↑ «Platzell» / «Tartzeller» + «Muntzells». |
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float) | System.Drawing.Color avant / darrere + font-nom string. |
FormattedText(text: string, textColor: System.Drawing.Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float) | Crea un FormattedText amb l’avantguarda de System.Drawing.Color i un nom de font o arxiu de lletra TrueType. |
FormattedText(text: string, textColor: Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float) | Crea un FormattedText amb l’avantguarda de Aspose.Pdf.Color i un nom de font o arxiu de lletra TrueType. |
FormattedText(text: string, color: Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float) | Crea un FormattedText amb FontStyle (enum) i System.Drawing.Color. |
FormattedText(text: string, textColor: Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float) | Crea un FormattedText amb Aspose.Pdf.Color avant/desençà i una línia d’espai. |
AddNewLineText(newLineText: string) | Afegeix una nova línia de text. |
AddNewLineText(newLineText: string, lineSpacing: float) | Afegeix una nova línia de text amb l’espai d’una línia personalitzada. |
IsCjk() | Verifiqueu si el text conté caràcters CJK. |
SetCjkFontStyle() | Estableix la tipografia a una tipografia compatible amb CJK (equivalent a MS Gothic). |