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

ConstructorDescription
StructureTextStateDefault constructor

Methods

MethodDescription
createTextStateCreate Text State
getBackgroundColorGets or sets background color of the text. Can be null. Use null to inherit {@code BackgroundColor} property from parent structure element.
getCharacterSpacingGets or sets character spacing of the text. Can be null. Use null to inherit {@code CharacterSpacing} property from parent structure element.
getFontGets or sets the font of text. Can be null. Use null to inherit {@code Font} property from parent structure element.
getFontSizeGets or sets font size of the text. Can be null. Use null to inherit {@code FontSize} property from parent structure element.
getFontStyleGets or sets font style of the text. Can be null. Use null to inherit {@code FontStyle} property from parent structure element.
getForegroundColorGets or sets foreground color of the text. Can be null. Use null to inherit {@code ForegroundColor} property from parent structure element.
getHorizontalAlignmentGets or sets a horizontal alignment of paragraph
getHorizontalScalingGets or sets horizontal scaling of the text. Can be null. Use null to inherit {@code HorizontalScaling} property from parent structure element.
getLineSpacingGets or sets line spacing of the text. Can be null. Use null to inherit {@code LineSpacing} property from parent structure element.
getMarginInfoGets or sets margin for block structure element.
getStrikeOutGets or sets strikeout for the text. Can be null. Use null to inherit {@code StrikeOut} property from parent structure element.
getSubscriptGets or sets subscript of the text. Can be null. Use null to inherit {@code Subscript} property from parent structure element.
getSuperscriptGets or sets superscript of the text. Can be null. Use null to inherit {@code Superscript} property from parent structure element.
getUnderlineGets or sets underline for the text. Can be null. Use null to inherit {@code Underline} property from parent structure element.
getVerticalAlignmentGets or sets a vertical alignment of paragraph
getWordSpacingGets or sets word spacing of the text. Can be null. Use null to inherit {@code WordSpacing} property from parent structure element.
isFirstParagraphInColumnGets or sets a bool value that indicates whether this paragraph will be at next column. Default is false.
isInLineParagraphGets or sets a paragraph is inline. Default is false.
isInNewPageGets or sets a bool value that force this paragraph generates at new page. Default is false.
isKeptWithNextGets or sets a bool value that indicates whether current paragraph remains in the same page along with next paragraph. Default is false.
setBackgroundColorGets or sets background color of the text. Can be null. Use null to inherit {@code BackgroundColor} property from parent structure element.
setCharacterSpacingGets or sets character spacing of the text.
setFontGets or sets the font of text. Can be null. Use null to inherit {@code Font} property from parent structure element.
setFontSizeGets or sets font size of the text.
setFontStyleGets or sets font style of the text.
setForegroundColorGets or sets foreground color of the text. Can be null. Use null to inherit {@code ForegroundColor} property from parent structure element.
setHorizontalScalingGets or sets horizontal scaling of the text.
setLineSpacingGets or sets line spacing of the text.
setMarginInfoGets or sets margin for block structure element.
setStrikeOutGets or sets strikeout for the text.
setSubscriptGets or sets subscript of the text.
setSuperscriptGets or sets superscript of the text.
setUnderlineGets or sets underline for the text.
setWordSpacingGets or sets word spacing of the text.
updateUpdate 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