Click or drag to resize

ParagraphFormat Class

Inheritance Hierarchy
System Object
Spire.Doc OwnerHolder
Spire.Doc.Formatting WordAttributeBase
Spire.Doc.Formatting ParagraphFormat

Namespace: Spire.Doc.Formatting
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public class ParagraphFormat : WordAttributeBase

The ParagraphFormat type exposes the following members.

Constructors
Name Description
Public method ParagraphFormat
Initializes a new instance of the ParagraphFormat class.
Public method ParagraphFormat(IDocument)
Initializes a new instance of the ParagraphFormat class.
Top
Properties
Name Description
Public property AfterAutoSpacing
Gets or sets a value indicating whether spacing after is automatic.
Public property AfterSpacing
Returns or sets the spacing (in points) after the paragraph.
Public property AfterSpacingLines
Gets or sets a value specifies the spacing that should be added after the last line in this paragraph in the document in line units.
Public property AutoSpaceDE
Gets or sets the value that determines whether the space is automatically adjusted between Asian and Latin text.
Public property AutoSpaceDN
Gets or sets the value that determines whether the space is automatically adjusted between Asian text and numbers.
Public property BackColor
Gets or sets background color of the paragraph
Public property BeforeAutoSpacing
Gets or sets a value indicating whether spacing before is automatic.
Public property BeforeSpacing
Returns or sets the spacing (in points) before the paragraph.
Public property BeforeSpacingLines
Gets or sets a value specifies the spacing that should be added before the first line in this paragraph in the document in line units.
Public property Borders
Gets the borders of the paragraph.
Public property Document
Gets the document.
(Inherited from OwnerHolder .)
Public property FirstLineIndent
Gets or sets the value(in points) for first line or hanging indent.Positive value represents first-line indent, and Negative value represents hanging indent.
Public property FirstLineIndentChars
Gets or sets the value that represents the paragraph first line indent in character units.
Public property Frame Obsolete.
Gets the frame format.
Public property HorizontalAlignment
Returns or sets horizontal alignment for the paragraph.
Public property IsBidi
Returns or sets right-to-left property of the paragraph.
Public property IsColumnBreakAfter
Public property IsFrame Obsolete.
Gets a value indicating whether the current object has frame format.
Public property IsKinSoku
Get or Set a value that determines whether use Asian rules for controlling first and last characters.
Public property IsWidowControl
True if the first and last lines in the paragraph are to remain on the same page as the rest of the paragraph.
Public property KeepFollow
True if the paragraph is to remains on the same page as the paragraph that follows it.
Public property KeepLines
True if all lines in the paragraph are to remain on the same page.
Public property LeftIndent
Returns or set sthe value that represents the left indent for paragraph.
Public property LeftIndentChars
Gets or sets the value that represents the paragraph left indent in character units.
Public property LineSpacing
Returns or sets line spacing property of the paragraph.
Public property LineSpacingRule
Returns or sets line spacing rule property of the paragraph.
Public property MirrorIndents
Gets a value indicating whether indentation type is mirror indents.
Public property OutlineLevel
Gets or sets the outline level.
Public property OverflowPunc
Gets or set allow punctuation to extend past text extents.
Public property PageBreakAfter
True if a page break is forced after the paragraph
Public property PageBreakBefore
True if a page break is forced before the paragraph
Public property RightIndent
Returns or sets the value that represents the right indent for paragraph.
Public property RightIndentChars
Gets or sets the value that represents the paragraph right indent in character units.
Public property Shading
Gets or sets the shading of the paragraph.
Public property SnapToGrid
Gets or sets a value specifies whether the current paragraph snaps to grid when document grid is defined.
Public property Style
Gets or sets the paragraph style associated with paragraph.
Public property StyleName
Gets or sets the name of the current style.
Public property SuppressAutoHyphens
Indicates whether to suppress automatic hyphenation for the paragraph.
Public property Tabs
Gets the tabs info.
Public property TextAlignment
Gets or sets the style of textalignment
Public property WordWrap
Gets or sets a value that determines whether allow Latin text to wrap in the middle of a word.
Top
Methods
Name Description
Public method ClearBackground
Clears paragraph background.
Public method ClearFormatting
Clears the formatting.
Public method Equals (Overrides Object Equals(Object) .)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object .)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Public method HasKey
Determines if the property with the given key exists.
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Public method SetFirstLineIndent
Sets the value that represents the first line indent for paragraph.
Public method SetFirstLineIndentChars
Sets the value that represents the first line indent chars for paragraph.
Public method SetLeftIndent
Sets the value that represents the left indent for paragraph.
Public method SetRightIndent
Sets the value that represents the right indent for paragraph.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Top
Fields
Name Description
Protected field m_doc (Inherited from OwnerHolder .)
Top
See Also