StructureTextState
Inheritance: java.lang.Object, com.aspose.pdf.tagged.logicalstructure.elements.StructureTextState
public class StructureTextState extends Object
Represents text state settings for Text Structure Elements and TaggedContent (ITextElement, ITaggedContent)
Constructors
| Constructor | Description |
|---|---|
| StructureTextState | Default constructor |
Methods
| Method | Description |
|---|---|
| createTextState | Create Text State |
| getBackgroundColor | Gets or sets background color of the text. Can be null. Use null to inherit {@code BackgroundColor} property from parent structure element. |
| getCharacterSpacing | Gets or sets character spacing of the text. Can be null. Use null to inherit {@code CharacterSpacing} property from parent structure element. |
| getFont | Gets or sets the font of text. Can be null. Use null to inherit {@code Font} property from parent structure element. |
| getFontSize | Gets or sets font size of the text. Can be null. Use null to inherit {@code FontSize} property from parent structure element. |
| getFontStyle | Gets or sets font style of the text. Can be null. Use null to inherit {@code FontStyle} property from parent structure element. |
| getForegroundColor | Gets or sets foreground color of the text. Can be null. Use null to inherit {@code ForegroundColor} property from parent structure element. |
| getHorizontalAlignment | Gets or sets a horizontal alignment of paragraph |
| getHorizontalScaling | Gets or sets horizontal scaling of the text. Can be null. Use null to inherit {@code HorizontalScaling} property from parent structure element. |
| getLineSpacing | Gets or sets line spacing of the text. Can be null. Use null to inherit {@code LineSpacing} property from parent structure element. |
| getMarginInfo | Gets or sets margin for block structure element. |
| getStrikeOut | Gets or sets strikeout for the text. Can be null. Use null to inherit {@code StrikeOut} property from parent structure element. |
| getSubscript | Gets or sets subscript of the text. Can be null. Use null to inherit {@code Subscript} property from parent structure element. |
| getSuperscript | Gets or sets superscript of the text. Can be null. Use null to inherit {@code Superscript} property from parent structure element. |
| getUnderline | Gets or sets underline for the text. Can be null. Use null to inherit {@code Underline} property from parent structure element. |
| getVerticalAlignment | Gets or sets a vertical alignment of paragraph |
| getWordSpacing | Gets or sets word spacing of the text. Can be null. Use null to inherit {@code WordSpacing} property from parent structure element. |
| isFirstParagraphInColumn | Gets or sets a bool value that indicates whether this paragraph will be at next column. Default is false. |
| isInLineParagraph | Gets or sets a paragraph is inline. Default is false. |
| isInNewPage | Gets or sets a bool value that force this paragraph generates at new page. Default is false. |
| isKeptWithNext | Gets or sets a bool value that indicates whether current paragraph remains in the same page along with next paragraph. Default is false. |
| setBackgroundColor | Gets or sets background color of the text. Can be null. Use null to inherit {@code BackgroundColor} property from parent structure element. |
| setCharacterSpacing | Gets or sets character spacing of the text. |
| setFont | Gets or sets the font of text. Can be null. Use null to inherit {@code Font} property from parent structure element. |
| setFontSize | Gets or sets font size of the text. |
| setFontStyle | Gets or sets font style of the text. |
| setForegroundColor | Gets or sets foreground color of the text. Can be null. Use null to inherit {@code ForegroundColor} property from parent structure element. |
| setHorizontalScaling | Gets or sets horizontal scaling of the text. |
| setLineSpacing | Gets or sets line spacing of the text. |
| setMarginInfo | Gets or sets margin for block structure element. |
| setStrikeOut | Gets or sets strikeout for the text. |
| setSubscript | Gets or sets subscript of the text. |
| setSuperscript | Gets or sets superscript of the text. |
| setUnderline | Gets or sets underline for the text. |
| setWordSpacing | Gets or sets word spacing of the text. |
| update | Update elements |
StructureTextState
public StructureTextState()
Default constructor
createTextState
public final TextState createTextState()
Create Text State
Returns: TextState instance
getBackgroundColor
public final Color getBackgroundColor()
Gets or sets background color of the text. Can be null. Use null to inherit {@code BackgroundColor} property from parent structure element.
Returns: Color instance
getCharacterSpacing
public final com.aspose.ms.System.Nullable< Float > getCharacterSpacing()
Gets or sets character spacing of the text. Can be null. Use null to inherit {@code CharacterSpacing} property from parent structure element.
Returns: Float array
getFont
public final Font getFont()
Gets or sets the font of text. Can be null. Use null to inherit {@code Font} property from parent structure element.
Returns: Font instance
getFontSize
public final com.aspose.ms.System.Nullable< Float > getFontSize()
Gets or sets font size of the text. Can be null. Use null to inherit {@code FontSize} property from parent structure element.
Returns: Float array
getFontStyle
public final com.aspose.ms.System.Nullable< Integer > getFontStyle()
Gets or sets font style of the text. Can be null. Use null to inherit {@code FontStyle} property from parent structure element.
Returns: Integer array
getForegroundColor
public final Color getForegroundColor()
Gets or sets foreground color of the text. Can be null. Use null to inherit {@code ForegroundColor} property from parent structure element.
Returns: Color instance
getHorizontalAlignment
public final com.aspose.ms.System.Nullable< HorizontalAlignment > getHorizontalAlignment()
Gets or sets a horizontal alignment of paragraph
Returns: HorizontalAlignment element
getHorizontalScaling
public final com.aspose.ms.System.Nullable< Float > getHorizontalScaling()
Gets or sets horizontal scaling of the text. Can be null. Use null to inherit {@code HorizontalScaling} property from parent structure element.
Returns: Float array
getLineSpacing
public final com.aspose.ms.System.Nullable< Float > getLineSpacing()
Gets or sets line spacing of the text. Can be null. Use null to inherit {@code LineSpacing} property from parent structure element.
Returns: Float array
getMarginInfo
@Deprecated public final MarginInfo getMarginInfo()
Gets or sets margin for block structure element.
Returns: MarginInfo instance @deprecated Use IAdjustPosition.AdjustPosition(PositionSettings positionSettings) method to set position settings
getStrikeOut
public final com.aspose.ms.System.Nullable< Boolean > getStrikeOut()
Gets or sets strikeout for the text. Can be null. Use null to inherit {@code StrikeOut} property from parent structure element.
Returns: Boolean array
getSubscript
public final com.aspose.ms.System.Nullable< Boolean > getSubscript()
Gets or sets subscript of the text. Can be null. Use null to inherit {@code Subscript} property from parent structure element.
Returns: Boolean array
getSuperscript
public final com.aspose.ms.System.Nullable< Boolean > getSuperscript()
Gets or sets superscript of the text. Can be null. Use null to inherit {@code Superscript} property from parent structure element.
Returns: Boolean array
getUnderline
public final com.aspose.ms.System.Nullable< Boolean > getUnderline()
Gets or sets underline for the text. Can be null. Use null to inherit {@code Underline} property from parent structure element.
Returns: Boolean array
getVerticalAlignment
public final com.aspose.ms.System.Nullable< VerticalAlignment > getVerticalAlignment()
Gets or sets a vertical alignment of paragraph
Returns: VerticalAlignment element
getWordSpacing
public final com.aspose.ms.System.Nullable< Float > getWordSpacing()
Gets or sets word spacing of the text. Can be null. Use null to inherit {@code WordSpacing} property from parent structure element.
Returns: Float array
isFirstParagraphInColumn
public final com.aspose.ms.System.Nullable< Boolean > isFirstParagraphInColumn()
Gets or sets a bool value that indicates whether this paragraph will be at next column. Default is false.
Returns: Boolean value
isInLineParagraph
public final com.aspose.ms.System.Nullable< Boolean > isInLineParagraph()
Gets or sets a paragraph is inline. Default is false.
Returns: Boolean value
isInNewPage
public final com.aspose.ms.System.Nullable< Boolean > isInNewPage()
Gets or sets a bool value that force this paragraph generates at new page. Default is false.
Returns: Boolean value
isKeptWithNext
public final com.aspose.ms.System.Nullable< Boolean > isKeptWithNext()
Gets or sets a bool value that indicates whether current paragraph remains in the same page along with next paragraph. Default is false.
Returns: Boolean value
setBackgroundColor
Gets or sets background color of the text. Can be null. Use null to inherit {@code BackgroundColor} property from parent structure element.
setCharacterSpacing
Gets or sets character spacing of the text.
setFont
Gets or sets the font of text. Can be null. Use null to inherit {@code Font} property from parent structure element.
setFontSize
Gets or sets font size of the text.
setFontStyle
Gets or sets font style of the text.
setForegroundColor
Gets or sets foreground color of the text. Can be null. Use null to inherit {@code ForegroundColor} property from parent structure element.
setHorizontalScaling
Gets or sets horizontal scaling of the text.
setLineSpacing
Gets or sets line spacing of the text.
setMarginInfo
Gets or sets margin for block structure element.
setStrikeOut
Gets or sets strikeout for the text.
setSubscript
Gets or sets subscript of the text.
setSuperscript
Gets or sets superscript of the text.
setUnderline
Gets or sets underline for the text.
setWordSpacing
Gets or sets word spacing of the text.
update
Update elements