StructureTextState
Vue de l’ensemble
StructureTextState C’est une classe dans Aspose.PDF FOSS pour Java.
Représente les paramètres d’état du texte pour un élément de structure dans un PDF étiqueté (ISO 32000-1:2008, §14.8.2.4).
Cette classe fournit 29 méthodes pour travailler avec des objets StructureTextState dans les programmes Java. Les méthodes disponibles comprennent : StructureTextState, getBackgroundColor, getCharacterSpacing, getFont, getFontSize, getFontStyle, getForegroundColor, getHorizontalScaling, getLineSpacing, getMarginInfo, getWordSpacing, isStrikeOut,17 méthodes supplémentaires. Tous les membres publics sont accessibles à toute application Java après l’installation de la Aspose.PDF FOSS pour le package Java. Propriétés : backgroundColor, characterSpacing, font, fontSize, fontStyle, foregroundColor,Et 8 autres.
Propriétés
| Nom de | Type | Accès | Description |
|---|---|---|---|
font | Font | Lire | Retourner le font. |
fontSize | Float | Lire | Retourner la taille de la lettre. |
fontStyle | int | Lire | Retourner les drapeaux de style font. |
foregroundColor | Color | Lire | Retourner la couleur avant (texte). |
backgroundColor | Color | Lire | Retourner la couleur de fond. |
characterSpacing | Float | Lire | Retourner le personnage spacing. |
wordSpacing | Float | Lire | Retourner le mot spacing. |
lineSpacing | Float | Lire | Retourner la ligne spacing. |
horizontalScaling | Float | Lire | Retourner le facteur d’escalade horizontal. |
strikeOut | boolean | Lire | Remboursez si le strikeout est activé. |
underline | boolean | Lire | Retourner si la sous-line est activée. |
subscript | boolean | Lire | Retourner si le sous-scriptif est activé. |
superscript | boolean | Lire | Retourner si le surcryptage est activé. |
marginInfo | MarginInfo | Lire | Retourner l’information de marge pour positionnement. |
méthodes
| Signature | Description |
|---|---|
StructureTextState() | Créer un nouveau StructureTextState avec des valeurs par défaut. |
getFont() → Font | Retourner le font. |
setFont(font: Font) | Mettez le font. |
getFontSize() → Float | Retourner la taille de la lettre. |
setFontSize(fontSize: float) | Déterminer la taille du font. |
getFontStyle() → int | Retourner les drapeaux de style font. |
setFontStyle(fontStyle: int) | Mettez les drapeaux de style font. |
getForegroundColor() → Color | Retourner la couleur avant (texte). |
setForegroundColor(foregroundColor: Color) | Il est à l’origine de la couleur (text). |
getBackgroundColor() → Color | Retourner la couleur de fond. |
setBackgroundColor(backgroundColor: Color) | Définir la couleur de fond. |
getCharacterSpacing() → Float | Retourner le personnage spacing. |
setCharacterSpacing(characterSpacing: float) | Il y a un caractère spacing. |
getWordSpacing() → Float | Retourner le mot spacing. |
setWordSpacing(wordSpacing: float) | Mettez le mot spacing. |
getLineSpacing() → Float | Retourner la ligne spacing. |
setLineSpacing(lineSpacing: float) | Mettez la ligne de spacing. |
getHorizontalScaling() → Float | Retourner le facteur d’escalade horizontal. |
setHorizontalScaling(horizontalScaling: float) | Il s’agit du facteur d’escalade horizontal. |
isStrikeOut() → boolean | Remboursez si le strikeout est activé. |
setStrikeOut(strikeOut: boolean) | Il a fait la drapeau de Strikeout. |
isUnderline() → boolean | Retourner si la sous-line est activée. |
setUnderline(underline: boolean) | Il met la drapeau sous-line. |
isSubscript() → boolean | Retourner si le sous-scriptif est activé. |
setSubscript(subscript: boolean) | Il est à la signature de la drapeau. |
isSuperscript() → boolean | Retourner si le surcryptage est activé. |
setSuperscript(superscript: boolean) | Il a mis la drapeau sur scripts. |
getMarginInfo() → MarginInfo | Retourner l’information de marge pour positionnement. |
setMarginInfo(marginInfo: MarginInfo) | Définir l’information de marge pour positionner. |