FormattedText

FormattedText

Vue d’ensemble

FormattedText Il s’agit d’une classe dans Aspose.PDF FOSS pour .NET.

Il représente le texte formaté utilisé dans les opérations de stamp et mend.

Cette classe fournit 26 méthodes pour travailler avec des objets FormattedText dans les programmes .NET. Les méthodes disponibles comprennent : AddNewLineText, FormattedText, IsCjk, SetCjkFontStyle. Tous les membres publics sont accessibles à n’importe quelle application .NET après l’installation de la Aspose.PDF FOSS pour le package .Net. Propriétés : BackgroundColor, CustomFontFile, FontName, FontSize, ForegroundColor, IsEmbedded,Et 3 autres.

Propriétés

Nom deTypeAccessDescription
TextstringLireLe premier contenu de la ligne.
FontSizedoubleLire / ÉcrireLa taille de la lettre en points.
FontNamestringLire / ÉcrireNom de la lettre (PDF base).
ForegroundColorColorLire / ÉcrireLa couleur de l’écriture (text).
BackgroundColorColorLire / Écrirecouleur de fond.
IsEmbeddedboolLire / ÉcrireQue le texte soit intégré (pour les phontres non standard).
CustomFontFilestring?Lire / ÉcrirePathage de fichier d’écran personnalisé (pour l’insertion des fonctions TrueType).
TextWidthfloatLireAvancer la largeur du texte à la phonture et la taille actuelles, en points.
TextHeightfloatLireL’altitude totale du bloc de texte formé (suma des hauteurs de ligne).

méthodes

SignatureDescription
FormattedText()Créer un nouveau FormattedText avec texte vide.
FormattedText(text: string)Créer un nouveau FormattedText avec le texte spécifié.
FormattedText(text: string, foregroundColor: Color, backgroundColor: Color)Créez un FormattedText avec des couleurs de texte et d’avant-garde/d’arrière-plan.
FormattedText(text: string, foregroundColor: FontColor)Créez un FormattedText avec texte et FontColor avant/arrière-plan.
FormattedText(text: string, foregroundColor: FontColor, backgroundColor: FontColor)Créez un FormattedText avec texte et FontColor avant/arrière-plan.
FormattedText(text: string, fontColor: FontColor, fontStyle: FontStyle, encodingType: EncodingType, embedded: bool, textSize: float)Créez un FormattedText avec le format complet en utilisant FontColor.
FormattedText(text: string, textColor: FontColor, backColor: FontColor, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float)Créez un FormattedText avec formatage complet en utilisant FontColor à l’avant-garde et au fond.
FormattedText(text: string, fontColor: FontColor, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)Créez un FormattedText avec formatage complet en utilisant FontColor, avec espace de ligne.
FormattedText(text: string, textColor: Color, backColor: Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float)Créez un FormattedText avec les paramètres de front/background et font.
FormattedText(text: string, textColor: Color, backColor: Color, textFont: FontStyle, encoding: EncodingType, embedded: bool, textSize: float)Créez un FormattedText avec System.Drawing.Color avant/arrière et FontStyle.
FormattedText(text: string, textColor: Color, backColor: Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)Appelez FormattedText(text, textColor, backColore, texFont, texteEncodage, intégré, taille du texte, ligneSpacing) sur cette instance FormattedText.
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)Appelez FormattedText(text, textColor, backColore, texFont, texteEncodage, intégré, taille du texte, ligneSpacing) sur cette instance FormattedText.
FormattedText(text: string, textColor: FontColor, backColor: FontColor, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)Appelez FormattedText(text, textColor, backColore, texFont, texteEncodage, intégré, taille du texte, ligneSpacing) sur cette instance FormattedText.
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color)System.Drawing.Color avant + avant / arrière couple.
FormattedText(text: string, color: System.Drawing.Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float)System.Drawing.Color avant + FontStyle +EncodingType, pas de ligneSpacing.
FormattedText(text: string, textColor: System.Drawing.Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)System.Drawing.Color avant + FontStyle + [Plattse Holds_2} plus ligneSpacing.
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color, textFont: FontStyle, encoding: EncodingType, embedded: bool, textSize: float)System.Drawing.Color avant/arrière + FontStyle.
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float)System.Drawing.Color avant/arrière + string de nom de caractère.
FormattedText(text: string, textColor: System.Drawing.Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float)Créez un FormattedText avec le front et un nom de caractère ou un fichier de texte TrueType.
FormattedText(text: string, textColor: Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float)Créez un FormattedText avec le front et un nom de caractère ou un fichier de texte TrueType.
FormattedText(text: string, color: Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float)Créez un FormattedText avec FontStyle (enum) et System.Drawing.Color.
FormattedText(text: string, textColor: Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)Créez un FormattedText avec Aspose.Pdf.Color avant/arrière et une ligne d’espace.
AddNewLineText(newLineText: string)Ajoutez une nouvelle ligne de texte.
AddNewLineText(newLineText: string, lineSpacing: float)Ajouter une nouvelle ligne de texte avec espace de ligne personnalisée.
IsCjk()Vérifiez si le texte contient des caractères CJK.
SetCjkFontStyle()Définissez la police sur une police compatible CJK (équivalent de MS Gothic).

Voir aussi

 Français