Click or drag to resize

Body Class

Represents a container.
Inheritance Hierarchy

Namespace: Spire.Doc
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public class Body : DocumentContainer, IBody, ICompositeObject, 
	IDocumentObject

The Body type exposes the following members.

Properties
Name Description
Public property ChildObjects
Gets the child entities.
(Overrides DocumentObject ChildObjects .)
Public property Count
Gets count of child object.
(Inherited from DocumentContainer .)
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 FirstParagraph
Gets the First paragraph.
Public property FormFields
Gets the form fields.
Public property IsComposite
Indicating whether this instance is composite.
(Inherited from DocumentObject .)
Public property LastChild
Gets the last child of the Element.
(Inherited from DocumentObject .)
Public property LastParagraph
Gets the last paragraph.
Public property NextSibling
Gets the next sibling.
(Inherited from DocumentObject .)
Public property Owner
Gets the owner of this entity.
(Inherited from DocumentObject .)
Public property Paragraphs
Gets inner paragraphs
Public property PreviousSibling
Gets the previous sibling.
(Inherited from DocumentObject .)
Public property Tables
Gets inner tables
Protected property WidgetCollection (Overrides DocumentContainer WidgetCollection .)
Protected property XDLSHolder (Inherited from DocumentSerializable .)
Top
Methods
Name Description
Public method AddParagraph
Adds paragraph at end of section.
Public method AddTable
Adds the table.
Public method AddTable(Boolean)
Adds the table.
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 EnsureMinimum
If the text body has no paragraphs, creates and appends one Paragraph.
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 GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetIndex
Returns the zero-based index of the specified entity.
(Inherited from DocumentContainer .)
Public method GetNextWidgetSibling
Gets the next sibling.
(Inherited from DocumentObject .)
Public method GetPreviousWidgetSibling
Gets the previous widget sibling.
(Inherited from DocumentObject .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Protected method InitXDLSHolder (Overrides DocumentSerializable InitXDLSHolder .)
Public method InsertXHTML(String)
Inserts html at end of text body.
Public method InsertXHTML(String, Int32)
Inserts html. Inserting begins from paragraph specified by paragraphIndex
Public method InsertXHTML(String, Int32, Int32)
Inserts html. Inserting begins from paragraph specified by paragraphIndex, and paragraph item specified by paragraphItemIndex
Public method IsValidXHTML(String, XHTMLValidationType)
Validates the XHTML.
Public method IsValidXHTML(String, XHTMLValidationType, String )
Validates the XHTML.
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 .)
Protected method RestoreReference (Inherited from DocumentSerializable .)
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 .)
Protected method WriteXmlAttributes (Inherited from DocumentSerializable .)
Protected method WriteXmlContent (Inherited from DocumentSerializable .)
Top
Fields
Name Description
Protected field m_bodyItems
Protected field m_doc (Inherited from OwnerHolder .)
Top
See Also