TextState Class
Represents a text state of a text
Inheritance Hierarchy
SystemObject
  Aspose.Pdf.TextTextState
    Aspose.Pdf.TextTextFragmentState

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

The TextState type exposes the following members.

Constructors
  NameDescription
Public methodTextState
Creates text state object.
Public methodTextState(Double)
Creates text state object with font size specification.
Public methodTextState(Color)
Creates text state object with foreground color 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 invisibility of the text. Obsolete. Please use RenderingMode instead.
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 (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodMeasureString
Measures the string.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (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