Skip to main content

SubDocument Members

A sub-document in a document.

Properties

Name Description
Bookmarks Provides access to sub-document bookmarks.
Fields Provides access to sub-document fields.
Hyperlinks Provides access to sub-document hyperlinks.
Images Provides access to the sub-document’s images.
InlineImages Provides access to the sub-document’s inline images.
Paragraphs Provides access to the sub-document’s paragraphs.
Tables Provides access to sub-document tables.
Type Returns the sub-document type.

Methods

Name Description
AddRtfAsync(Int32, String, CancellationToken) Inserts text in Rich Text Format (RTF) into the sub-document at the specified position.
AddRtfAsync(String, CancellationToken) Inserts text in Rich Text Format (RTF) at the end of a sub-document.
AddTextAsync(Int32, String, CancellationToken) Inserts the text at the specified position.
AddTextAsync(String, CancellationToken) Appends the specified text to the sub-document.
ClearFormattingAsync(Interval, CancellationToken) Resets character formatting in the sub-document’s interval to the default settings.
ClearFormattingAsync(CancellationToken) Resets character formatting in the sub-document to the default settings.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
FindAllAsync(String, Boolean, CancellationToken) Finds all matches of the specified text in the sub-document.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetIntervalAsync(CancellationToken) Returns a sub-document’s interval.
GetRtfAsync(Interval, CancellationToken) Returns the specified interval’s content in Rich Text Format (RTF).
GetRtfAsync(Int32, Int32, CancellationToken) Returns the interval content in Rich Text Format (RTF). The startPosition and length parameters define the interval.
GetTextSpanAsync(Interval, CancellationToken) Gets the text span placed within the specified interval.
GetTextSpanAsync(Int32, Int32, CancellationToken) Gets the text span at the specified position.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
RemoveAsync(Interval, CancellationToken) Removes the specified text interval.
RemoveAsync(Int32, Int32, CancellationToken) Removes the specified text interval.
ReplaceAllAsync(String, String, Boolean, CancellationToken) Finds all matches of the specified string in the sub-document and replaces them with a specific string.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also