TextState Class

Represents a text state of a text
Inheritance Hierarchy

Namespace:  Aspose.Pdf.Text
Assembly:  Aspose.PDF (in Aspose.PDF.dll) Version: 22.1.0
Syntax
public class TextState

The TextState type exposes the following members.

Constructors
  NameDescription
Public methodTextState
Creates text state object.
Public methodTextState(Color)
Creates text state object with foreground color specification.
Public methodTextState(Double)
Creates text state object with font size specification.
Public methodTextState(String)
Creates text state object with font family specification.
Public methodTextState(Color, Double)
Creates text state object with foreground color and font size specification.
Public methodTextState(String, Double)
Creates text state object with font family and font size specification.
Public methodTextState(String, Boolean, Boolean)
Creates text state object with font family and font style specification.
Properties
  NameDescription
Public propertyBackgroundColor
Sets background color of the text.
Public propertyCharacterSpacing
Gets or sets character spacing of the text.
Public propertyFont
Gets or sets font of the text.
Public propertyFontSize
Gets or sets font size of the text.
Public propertyFontStyle
Sets font style of the text.
Public propertyForegroundColor
Gets or sets foreground color of the text.
Public propertyHorizontalAlignment
Gets or sets horizontal alignment for the text.
Public propertyHorizontalScaling
Gets or sets horizontal scaling of the text.
Public propertyInvisible
Gets or sets the invisibility of text. This basically reflects the RenderingMode state, except for some special cases (like clipping).
Public propertyLineSpacing
Gets or sets line spacing of the text.
Public propertyRenderingMode
Gets or sets rendering mode of text.
Public propertyStrikeOut
Sets strikeout for the text, represented by the TextFragment object
Public propertyStrokingColor
Gets or sets foreground color of the text.
Public propertySubscript
Gets or sets subscript of the text.
Public propertySuperscript
Gets or sets superscript of the text.
Public propertyUnderline
Gets or sets underline for the text, represented by the TextFragment object
Public propertyWordSpacing
Gets or sets word spacing of the text.
Methods
  NameDescription
Public methodApplyChangesFrom
Applies settings from another textState.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodMeasureString
Measures the string.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Fields
  NameDescription
Public fieldTabstopDefaultValue
Default value of tabulation in widths of space character of default font.
Public fieldTabTag
You can place this tag in text to declare tabulation.
See Also