Class ParagraphStyle


public class ParagraphStyle extends BaseStyle
Represents a style for paragraph.
  • Constructor Details

    • ParagraphStyle

      public ParagraphStyle()
      Initializes a new instance of the ParagraphStyle class.
    • ParagraphStyle

      public ParagraphStyle(String name)
      Initializes a new instance of the ParagraphStyle class.
      Parameters:
      name - the name
  • Method Details

    • clone

      public ParagraphStyle clone()
      Creates a new object that is a deep copy of the current instance.
      Specified by:
      clone in class BaseStyle
      Returns:
      A new object that is a copy of this instance.
    • toString

      public String toString()
      Converts the value of the current ParagraphStyle object to its equivalent string representation.
      Overrides:
      toString in class BaseStyle
      Returns:
      the string
    • getTextProperties

      public TextProperties getTextProperties()
      Specifies formatting properties for text.
      Returns:
      the text properties
    • getParagraphProperties

      public ParagraphProperties getParagraphProperties()
      Specifies formatting properties for paragraph.
      Returns:
      the paragraph properties