Click or drag to resize

Paragraph Class

Represents a paragraph of text.
Inheritance Hierarchy

Namespace: Spire.Doc.Documents
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public class Paragraph : BodyRegion, IParagraph, 
	IBodyRegion, IDocumentObject, IStyleHolder, ICompositeObject

The Paragraph type exposes the following members.

Constructors
Name Description
Public method Paragraph
Initializes a new instance of the Paragraph class.
Top
Properties
Name Description
Public property BreakCharacterFormat
Gets character format for the break symbol.
Public property CharCount
Gets the char count,whtout spaces.
Public property CharCountIncludeSpace
Gets the char count of the include spaces.
Public property ChildObjects
Gets the child objects.
(Overrides DocumentObject ChildObjects .)
Public property DeleteRevision
Gets the delete revision for this objects. Note this can be null. If null does not have delete revision.
(Inherited from BodyRegion .)
Public property Document
Gets the document.
(Inherited from OwnerHolder .)
Public property DocumentObjectType
Gets the type of the document object.
(Overrides DocumentObject DocumentObjectType .)
Public property FirstChild
Gets the first child of the Element.
(Inherited from DocumentObject .)
Public property Format
Gets paragraph format.
Public property Frame
Gets frame format of the paragraph.
Public property InsertRevision
Gets the insert revision for this objects. Note this can be null. If null does not have insert revision.
(Inherited from BodyRegion .)
Public property IsComposite
Indicating whether this instance is composite.
(Inherited from DocumentObject .)
Public property IsDeleteRevision
Gets a value indicating whether this item was deleted from the document.
(Inherited from BodyRegion .)
Public property IsEndOfDocument
Gets a value indicating whether this paragraph is end of document.
Public property IsEndOfHeaderFooter
True if this paragraph is the last paragraph in the HeaderFooter (main text story) of a Section ; false otherwise.
Public property IsEndOfSection
Gets a value indicating whether this paragraph is end of section.
Public property IsInCell
Gets a value indicating whether this paragraph is in cell.
Public property IsInsertRevision
Gets a value indicating whether this item was inserted to the document.
(Inherited from BodyRegion .)
Public property Item
Gets paragraph item by index.
Public property Items
Gets paragraph items.
Public property LastChild
Gets the last child of the Element.
(Inherited from DocumentObject .)
Public property ListFormat
Gets list format of the paragraph.
Public property ListText
Gets the list text. The value of the list number is obtained by dynamic calculation. The value of the list number of the paragraph directly may be incorrect. To obtain the correct value, you need to traverse all paragraphs in the document.
Public property NextSibling
Gets the next sibling.
(Inherited from DocumentObject .)
Public property Owner
Gets the owner of this entity.
(Inherited from DocumentObject .)
Public property OwnerTextBody
Gets the owner text body.
(Inherited from BodyRegion .)
Public property ParentSection
Gets the parent section of the current paragraph.
Public property PreviousSibling
Gets the previous sibling.
(Inherited from DocumentObject .)
Public property StyleName
Gets paragraph style name.
Public property Text
Returns or sets paragraph text.
Public property WordCount
Gets the word count.
Protected property XDLSHolder (Inherited from DocumentSerializable .)
Top
Methods
Name Description
Public method AppendBookmarkEnd
Appends end of the bookmark with specified name into paragraph.
Public method AppendBookmarkStart
Appends start of the bookmark with specified name into paragraph.
Public method AppendBreak
Appends break to end of paragraph.
Public method AppendChart(ChartType, Single, Single)
Append an chart object into the document and scales it to the specified size.
Public method AppendChart(ChartType, HorizontalOrigin, Single, VerticalOrigin, Single, Single, Single, TextWrappingStyle)
Append an chart object into the document and scales it to the specified size.
Public method AppendCheckBox
Appends the check box form field.
Public method AppendCheckBox(String, Boolean)
Appends the check box.
Public method AppendComment
Appends the comment.
Public method AppendCommentMark
Appends the comment mark.
Public method AppendDropDownFormField
Appends the drop down form field.
Public method AppendDropDownFormField(String)
Appends the drop down form field.
Public method AppendField
Appends the field.
Public method AppendFieldMark
Appends the field mark.
Public method AppendFootnote(FootnoteType)
Appends the footnote.
Public method AppendFootnote(FootnoteType, Boolean)
Appends the footnote.
Public method AppendHorizonalLine
Append Horizonal Line to the end of the paragraph.
Public method AppendHTML
Appends the HTML.
Public method AppendHyperlink(String, DocPicture, HyperlinkType)
Appends the hyperlink.
Public method AppendHyperlink(String, String, HyperlinkType)
Appends the hyperlink.
Public method AppendOleObject(String, DocPicture)
Appends the OLE object.
Public method AppendOleObject( Byte , DocPicture, OleLinkType)
Appends the OLE object.
Public method AppendOleObject( Byte , DocPicture, OleObjectType)
Appends the OLE object into paragraph.
Public method AppendOleObject( Byte , DocPicture, String)
Appends the package OLE object (ole object without specified type).
Public method AppendOleObject(Stream, DocPicture, OleLinkType)
Appends the OLE object into paragraph.
Public method AppendOleObject(Stream, DocPicture, OleObjectType)
Appends the OLE object.
Public method AppendOleObject(Stream, DocPicture, String)
Appends the package OLE object (ole object without specified type).
Public method AppendOleObject(String, DocPicture, OleLinkType)
Appends the OLE object.
Public method AppendOleObject(String, DocPicture, OleObjectType)
Appends the OLE object into paragraph.
Public method AppendOleObject(String, String, Byte , DocPicture)
Appends the OLE object into paragraph.
Public method AppendPermEnd
Appends end of the permission with specified id into paragraph.
Public method AppendPermStart
Appends start of the permission with specified id into paragraph.
Public method AppendPicture( Byte )
Appends image to end of paragraph.
Public method AppendPicture(Image)
Appends a picture to the document.
Public method AppendPicture(Stream)
Appends the picture.
Public method AppendPicture(String)
Appends the picture.
Public method AppendRTF(String)
Appends the RTF.
Public method AppendRTF(String, Boolean)
Appends the RTF.
Public method AppendShape
Append Shape to the end of the paragraph.
Public method AppendShapeGroup
Append shape Group to the end of the paragraph.
Public method AppendSymbol
Appends special symbol to end of paragraph.
Public method AppendText
Appends text to end of document.
Public method AppendTextBox
Append Textbox to the end of the paragraph
Public method AppendTextFormField(String)
Appends the text form field.
Public method AppendTextFormField(String, String)
Appends the text form field.
Public method AppendTOC
Appends the table of content.
Public method ApplyStyle(String)
Applies the specified style.
Public method ApplyStyle(BuiltinStyle)
Applies the built-in style.
Public method ApplyStyle(IParagraphStyle)
Applies the specified style.
Public method Clone
Creates a duplicate of the document object.
(Inherited from DocumentObject .)
Protected method CloneImpl (Overrides DocumentSerializable CloneImpl .)
Protected method CreateLayoutInfo (Overrides DocumentBase CreateLayoutInfo .)
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from 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 Find(Regex)
Returns first entry of matchString regex.
(Overrides BodyRegion Find(Regex) .)
Public method Find(String, Boolean, Boolean)
Returns first entry of matchString string, taking into consideration caseSensitive and wholeWord options.
Public method FindAllPattern
Finds all occurrences of the specified regex pattern in the text and returns them as an array of TextSelection.
Public method FindAllString
Finds all occurrences of a specified string within the text, with options for case sensitivity and whole word matching.
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetIndex
Returns the zero-based index of the specified entity.
Public method GetListFormatForApplyStyle
Gets the list format for apply style.
Protected method GetNextInSection (Inherited from BodyRegion .)
Public method GetNextWidgetSibling
Gets the next sibling.
(Inherited from DocumentObject .)
Public method GetPreviousWidgetSibling
Gets the previous widget sibling.
(Inherited from DocumentObject .)
Public method GetStyle
Gets related style.
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Protected method InitXDLSHolder (Overrides DocumentSerializable InitXDLSHolder .)
Public method InsertSectionBreak
Inserts the section break.
Public method InsertSectionBreak(SectionBreakType)
Inserts the section break.
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Protected method ReadXmlAttributes (Inherited from DocumentSerializable .)
Protected method ReadXmlContent (Inherited from DocumentSerializable .)
Public method RemoveAbsPosition
Public method RemoveFrame
Remove a frame.
Public method Replace(Regex, TextSelection) (Overrides BodyRegion Replace(Regex, TextSelection) .)
Public method Replace(Regex, String) (Overrides BodyRegion Replace(Regex, String) .)
Public method Replace(Regex, TextSelection, Boolean) (Overrides BodyRegion Replace(Regex, TextSelection, Boolean) .)
Public method Replace(String, TextSelection, Boolean, Boolean)
Public method Replace(String, String, Boolean, Boolean) (Overrides BodyRegion Replace(String, String, Boolean, Boolean) .)
Public method Replace(String, TextSelection, Boolean, Boolean, Boolean)
Protected method RestoreReference (Overrides DocumentSerializable RestoreReference(String, Int32) .)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Public method ToString(String)
Exports the name and index in container of the object into a string in the specified seperator.
(Inherited from DocumentObject .)
Public method UpdateListValue
Updates the list value. The value of the list number is obtained by dynamic calculation. The value of the list number of the paragraph directly may be incorrect. To obtain the correct value, you need to traverse all paragraphs in the document.
Public method UpdateWordCount
Calculate word count and character count of the paragraph.
Protected method WriteXmlAttributes (Overrides DocumentSerializable WriteXmlAttributes(IXDLSAttributeWriter) .)
Protected method WriteXmlContent (Inherited from DocumentSerializable .)
Top
Fields
Name Description
Protected field m_doc (Inherited from OwnerHolder .)
Protected field m_pItemColl
Protected field m_style
Top
See Also