[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.ContentRange

Class ContentRange

Namespace
GrapeCity.Documents.Word
Assembly
GcDocs.Word.dll

Abstract base class representing content with floating start and end marks. This allows the range to start inside one ContentObject and end in another, which is useful for bookmarks, comments etc.

Derived classes include Section Comment, Bookmark, ComplexField and EditableRange.

public abstract class ContentRange
Inheritance
object
ContentRange
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Properties

Children

Gets the child ContentObjects in this content range.

public IEnumerable<ContentObject> Children { get; }

Property Value

System.Collections.Generic.IEnumerable<T><ContentObject>

Document

Gets the DocumentBase that contains this content.

public DocumentBase Document { get; }

Property Value

DocumentBase

End

Gets the end mark of this content.

public ContentMark End { get; }

Property Value

ContentMark

ParentBody

Gets the parent Body of this content.

public Body ParentBody { get; }

Property Value

Body

Start

Gets the start mark of this content.

public ContentMark Start { get; }

Property Value

ContentMark

Methods

Delete()

Deletes this content from the parent Body.

public virtual void Delete()

GetRange()

Creates and returns a Range object representing this content in the body.

public virtual Range GetRange()

Returns

Range

A Range object representing this content.

ToString()

Gets string representation of the content.

public override string ToString()

Returns

string

String representation of the content.