Skip to main content

Document Members

An interface that defines the RTF document.

#Properties
Show Inherited Hide Inherited

Name Description
AbstractNumberingLists Provides access to a collection of abstract numbering lists in the document.
Bookmarks Provides access to the collection of document bookmarks. Inherited from SubDocument.
CaretPosition Gets or sets the position of the caret within the document.
CharacterStyles Provides access to a collection of character styles in the current document.
Comments Inherited from SubDocument.
CustomMarks Provides access to a collection of custom marks. Inherited from SubDocument.
DefaultCharacterProperties Provides access to default character formatting for the current document.
DefaultParagraphProperties Provides access to default paragraph formatting for the current document.
DefaultTableProperties Provides access to default properties for document tables.
DifferentOddAndEvenPages Gets or sets whether the document has different odd and even pages.
Fields Provides access to the collection of fields in the current document. Inherited from SubDocument.
HtmlText Gets or sets the document content as HTML text.
Hyperlinks Provides access to a collection of hyperlinks in the document. Inherited from SubDocument.
Images Inherited from SubDocument.
IsDocumentProtected Gets whether document protection is enabled.
IsEmpty Indicates whether the document is empty, i.e. contains only default content.
Length Gets the character length of the document. Inherited from SubDocument.
MhtText Gets or sets the document content as MHT text.
NumberingLists Provides access to a collection of definitions for numbering lists instantiated in the document.
OpenDocumentBytes Gets or sets the document content as an array of bytes in Open Office Text (.odt) format.
OpenXmlBytes Gets or sets the document content as an array of bytes in Office Open XML (Docx) format.
PageBackColor Gets the background color of the page. Inherited from SubDocument.
Paragraphs Provides access to a collection of paragraphs. Inherited from SubDocument.
ParagraphStyles Provides access to a collection of paragraph styles in the current document.
Range Gets the range for the current document. Inherited from SubDocument.
RequiredExportCapabilities Obtains information on the formatting capabilities required to export the current document correctly.
RtfText Gets or sets the formatted text content of the document.
Sections Provides access to a collection of sections.
Selection Gets or sets the selected range in the document.
Shapes Inherited from SubDocument.
ShowPageBackground Gets whether the page background color is shown. Inherited from SubDocument.
Tables Provides access to a collection of tables contained in the current document. Inherited from SubDocument.
TableStyles Provides access to a collection of styles defined for tables in the document.
Text Gets or sets the document's text (plain text).
Unit Gets or sets a unit of measure used within the document.
Variables Provides access to the collection of document variables.
WordMLText Gets or sets the document content as the text in WordProcessingML (Microsoft Office Word 2003 XML) format.

#Methods
Show Inherited Hide Inherited

Name Description
AddParagraphsToList(DocumentRange, NumberingList, Int32) Obsolete. Apply the numbering list format specified by the NumberingList object to the paragraphs in the specified range. Inherited from SubDocument.
AddParagraphToList(Paragraph, NumberingList, Int32) Obsolete. This API is obsolete now. Inherited from SubDocument.
AddParagraphToList(Paragraph, Int32, Int32) Obsolete. This API is obsolete now. Inherited from SubDocument.
AppendDocumentContent(DocumentRange) Appends content from the specified range to the end of the current document. Inherited from SubDocument.
AppendDocumentContent(DocumentRange, InsertOptions) Appends content from the specified range to the end of the current document. Inherited from SubDocument.
AppendDocumentContent(Stream, DocumentFormat) Appends content from the stream to the end of the current document. Inherited from SubDocument.
AppendDocumentContent(Stream, DocumentFormat, String) Appends content from the stream to the end of the current document. Inherited from SubDocument.
AppendDocumentContent(Stream, DocumentFormat, String, InsertOptions) Appends content from the stream to the end of the current document. Inherited from SubDocument.
AppendDocumentContent(String, DocumentFormat) Appends content from the stream to the end of the current document. Inherited from SubDocument.
AppendDocumentContent(String, DocumentFormat, String) Appends content from the file to the end of the current document. Inherited from SubDocument.
AppendDocumentContent(String, DocumentFormat, String, InsertOptions) Appends content from the file to the end of the current document. Inherited from SubDocument.
AppendHtmlText(String) Appends HTML formatted text to the end of the document. Inherited from SubDocument.
AppendHtmlText(String, InsertOptions) Appends HTML formatted text to the end of the document. Inherited from SubDocument.
AppendImage(DocumentImageSource) Obsolete. Appends a specified image to the end of the document. Inherited from SubDocument.
AppendImage(Image) Obsolete. This API is obsolete now. Inherited from SubDocument.
AppendParagraph() Obsolete. Appends an empty paragraph to the end of the document. Inherited from SubDocument.
AppendRtfText(String) Appends formatted text to the end of the document. Inherited from SubDocument.
AppendRtfText(String, InsertOptions) Appends formatted text to the end of the document. Inherited from SubDocument.
AppendSection() Appends a new empty section to the end of the document.
AppendSingleLineText(String) Appends a single line of text to the end of the current document. Inherited from SubDocument.
AppendText(String) Appends the specified text to the end of the document. Inherited from SubDocument.
ApplySyntaxHighlight(List<SyntaxHighlightToken>) Performs a batch update of text formatting for document ranges corresponding to specified tokens. Inherited from SubDocument.
BeginUpdate() Locks the SubDocument object by preventing visual updates until the EndUpdate method is called. Inherited from SubDocument.
BeginUpdateCharacters(DocumentPosition, Int32) Starts modifying properties of the specified number of characters starting at the specified document position. Inherited from SubDocument.
BeginUpdateCharacters(DocumentRange) Starts modifying properties of characters that fall within a specified document range. Inherited from SubDocument.
BeginUpdateCharacters(Int32, Int32) Starts modifying properties of the specified number of characters starting at the specified document position. Inherited from SubDocument.
BeginUpdateParagraphs(DocumentRange) Starts modifying properties of the paragraphs that fall within a specified document range. Inherited from SubDocument.
BeginUpdateRangePermissions() Gets the collection of all range permissions in the current document. Inherited from SubDocument.
CancelUpdateRangePermissions(RangePermissionCollection) Finalizes the update process, leaving range permissions intact. Inherited from SubDocument.
ChangeActiveDocument(SubDocument) Enables you to operate on selections in documents other than the main document, such as headers and footers.
Copy() Copies the currently selected text to the clipboard.
Copy(DocumentRange) Copies the specified range of text to the clipboard.
CreateBookmark(DocumentPosition, Int32, String) Obsolete. Creates a bookmark with the specified name for the range that starts at the specified position and has a specified length. Then, adds it to the SubDocument.Bookmarks collection. Inherited from SubDocument.
CreateBookmark(DocumentRange, String) Obsolete. Creates a bookmark for the specified range with the specified name and adds it to the SubDocument.Bookmarks collection. Inherited from SubDocument.
CreateCustomMark(DocumentPosition, Object) Obsolete. Creates a custom mark at the specified position and associates specified data with it. Inherited from SubDocument.
CreateHyperlink(DocumentPosition, Int32) Obsolete. Creates a hyperlink for the document range, starting at the specified position, and extending through a specified length. Inherited from SubDocument.
CreateHyperlink(DocumentRange) Obsolete. Creates a hyperlink for the specified document range. Inherited from SubDocument.
CreateMailMergeOptions() Creates an object for specifying the options used in mail merge operations.
CreatePosition(Int32) Creates a new position in the current document. Inherited from SubDocument.
CreateRange(DocumentPosition, Int32) Creates a new document range using the specified start position and range length. Inherited from SubDocument.
CreateRange(Int32, Int32) Creates a new document range using the specified start position and range length. Inherited from SubDocument.
Cut() Removes the currently selected text and copies it to the clipboard.
Cut(DocumentRange) Removes the specified range of text and copies it to the clipboard.
Delete(DocumentRange) Removes the specified range of text from the document. Inherited from SubDocument.
DeleteCustomMark(CustomMark) Obsolete. Delete specified custom mark from the document's collection. Inherited from SubDocument.
EndUpdate() Unlocks the SubDocument object after a call to the BeginUpdate method and causes an immediate visual update. Inherited from SubDocument.
EndUpdateCharacters(CharacterProperties) Finalizes the modification of character formatting after calling the SubDocument.BeginUpdateCharacters method. Inherited from SubDocument.
EndUpdateParagraphs(ParagraphProperties) Finalizes the modification of paragraph formatting after calling the SubDocument.BeginUpdateParagraphs method. Inherited from SubDocument.
EndUpdateRangePermissions(RangePermissionCollection) Finalizes the update and applies the changes to range permissions. Inherited from SubDocument.
FindAll(String, SearchOptions) Finds all text ranges that match the specified string in the current document. Inherited from SubDocument.
FindAll(String, SearchOptions, DocumentRange) Finds all text ranges that match the specified string in the current document. Inherited from SubDocument.
FindAll(Regex) Finds all occurrences of a character pattern specified by the regular expression. Inherited from SubDocument.
FindAll(Regex, DocumentRange) Finds all occurrences of a character pattern specified by the regular expression. Inherited from SubDocument.
GetAuthors()
GetCustomMarkByVisualInfo(CustomMarkVisualInfo) Obsolete. Provides access to a custom mark in the RichEditControl.CustomMarkDraw event handler. Inherited from SubDocument.
GetHtmlText(DocumentRange, IUriProvider) Gets the text contained in the specified range in HTML format. Inherited from SubDocument.
GetHtmlText(DocumentRange, IUriProvider, HtmlDocumentExporterOptions) Gets the text contained in the specified range in HTML format. Inherited from SubDocument.
GetImages(DocumentRange) Obsolete. Gets all inline images in the specified document range. Inherited from SubDocument.
GetMhtText(DocumentRange) Gets the content of the specified document range in MHT format. Inherited from SubDocument.
GetMhtText(DocumentRange, MhtDocumentExporterOptions) Gets the content of the specified document range in MHT format. Inherited from SubDocument.
GetOpenXmlBytes(DocumentRange) Gets the content of the specified document range in Office Open XML (Docx) format. Inherited from SubDocument.
GetOpenXmlBytes(DocumentRange, OpenXmlDocumentExporterOptions) Gets the content of the specified document range in Office Open XML (Docx) format. Inherited from SubDocument.
GetParagraph(DocumentPosition) Obsolete. Gets the paragraph encompassing the specified position. Inherited from SubDocument.
GetParagraphs(DocumentRange) Obsolete. Provides access to paragraphs to which the specified range belongs. Inherited from SubDocument.
GetRtfText(DocumentRange) Gets the formatted string of the text contained in the specified range. Inherited from SubDocument.
GetRtfText(DocumentRange, RtfDocumentExporterOptions) Gets the formatted string of the text contained in the specified range. Inherited from SubDocument.
GetSection(DocumentPosition) Gets the section encompassing the specified position.
GetShapes(DocumentRange) Obsolete. Get a collection of Shape objects contained in the specified document range. Inherited from SubDocument.
GetSubDocumentType() Inherited from SubDocument.
GetTableCell(DocumentPosition) Obsolete. Gets a table cell in which the specified position is located. Inherited from SubDocument.
GetText(DocumentRange) Returns the plain text of the specified document range. Inherited from SubDocument.
GetText(DocumentRange, TextFragmentOptions) Returns the plain text of the specified document range. Inherited from SubDocument.
GetText(DocumentRange, PlainTextDocumentExporterOptions) Returns the plain text of the specified document range. Inherited from SubDocument.
GetText(DocumentRange, PlainTextDocumentExporterOptions, TextFragmentOptions) Returns the plain text of the specified document range. Inherited from SubDocument.
GetWordMLText(DocumentRange) Gets the text contained in the specified range in WordML format. Inherited from SubDocument.
GetWordMLText(DocumentRange, WordMLDocumentExporterOptions) Gets the text contained in the specified range in WordML format. Inherited from SubDocument.
InsertDocumentContent(DocumentPosition, DocumentRange) Inserts content from the specified range to the current document at the specified position. Inherited from SubDocument.
InsertDocumentContent(DocumentPosition, DocumentRange, InsertOptions) Inserts content from the specified range to the current document at the specified position. Inherited from SubDocument.
InsertDocumentContent(DocumentPosition, Stream, DocumentFormat) Inserts content from the stream to the current document at the specified position. Inherited from SubDocument.
InsertDocumentContent(DocumentPosition, Stream, DocumentFormat, InsertOptions) Inserts content from the specified stream in the specified format, at the specified postion, in the current document. Inherited from SubDocument.
InsertDocumentContent(DocumentPosition, Stream, DocumentFormat, String) Insert content from the stream to the current document at the specified position. Inherited from SubDocument.
InsertDocumentContent(DocumentPosition, Stream, DocumentFormat, String, InsertOptions) Inserts content from the specified stream in the specified format, at the specified position, in the current document. Inherited from SubDocument.
InsertDocumentContent(DocumentPosition, String, DocumentFormat) Inserts content from the file to the current document at the specified position. Inherited from SubDocument.
InsertDocumentContent(DocumentPosition, String, DocumentFormat, InsertOptions) Inserts content from the file to the current document at the specified position. Inherited from SubDocument.
InsertDocumentContent(DocumentPosition, String, DocumentFormat, String) Inserts content from the file to the current document at the specified position. Inherited from SubDocument.
InsertDocumentContent(DocumentPosition, String, DocumentFormat, String, InsertOptions) Inserts content from the file to the current document at the specified position. Inherited from SubDocument.
InsertHtmlText(DocumentPosition, String) Inserts the specified HTML text into the specified position. Inherited from SubDocument.
InsertHtmlText(DocumentPosition, String, InsertOptions) Inserts the specified HTML text into the specified position. Inherited from SubDocument.
InsertImage(DocumentPosition, DocumentImageSource) Obsolete. Inserts an image into the specified position in the document. Inherited from SubDocument.
InsertImage(DocumentPosition, Image) Obsolete. This API is obsolete now. Inherited from SubDocument.
InsertParagraph(DocumentPosition) Obsolete. Inserts a new paragraph into the document's SubDocument.Paragraphs collection at a specified position. Inherited from SubDocument.
InsertParagraph(DocumentPosition, InsertOptions) Obsolete. Inserts a new paragraph into the document at a specified position. Inherited from SubDocument.
InsertPicture(DocumentPosition, DocumentImageSource) Obsolete. Inserts a picture as a floating object. Inherited from SubDocument.
InsertPicture(DocumentPosition, Image) Obsolete. This API is obsolete now. Inherited from SubDocument.
InsertRtfText(DocumentPosition, String) Inserts formatted text into the document at the specified position. Inherited from SubDocument.
InsertRtfText(DocumentPosition, String, InsertOptions) Inserts the specified formatted text into the specified position. Inherited from SubDocument.
InsertSection(DocumentPosition) Inserts a new section into the document's Document.Sections collection at a specified position.
InsertSingleLineText(DocumentPosition, String) Inserts a single line of text (text without line breaks) at the specified position. Inherited from SubDocument.
InsertTable(DocumentPosition, Int32, Int32) Obsolete. Inserts a blank table with the specified number of rows and columns at the specified position. Inherited from SubDocument.
InsertTable(DocumentPosition, Int32, Int32, AutoFitBehaviorType) Obsolete. Inserts a blank table with the specified number of rows and columns at the specified position. Inherited from SubDocument.
InsertTable(DocumentPosition, Int32, Int32, AutoFitBehaviorType, Int32) Obsolete. Inserts a blank table with the specified number of rows and columns at the specified position. Inherited from SubDocument.
InsertText(DocumentPosition, String) Inserts the specified text into the specified position. Inherited from SubDocument.
InsertTextBox(DocumentPosition) Obsolete. Inserts a floating text box. Inherited from SubDocument.
LoadDocument(Stream, DocumentFormat) Loads a document from a stream, specifying the document's format.
LoadDocument(Stream, DocumentFormat, String) Loads a document from the stream in the specified format. External content is retrieved using the specified source (base) URI.
LoadDocument(String, DocumentFormat) Loads a document from the specified file in the specified format. External content is retrieved using the specified source (base) URI.
LoadDocument(String, DocumentFormat, String) Loads a document from the specified file in the specified format. External content is retrieved using the specified source (base) URI.
MailMerge(Document) Merges the current document and sends the result to the specified Document.
MailMerge(MailMergeOptions, Document) Merges the current document using the specified options, and sends the result to the specified Document.
MailMerge(MailMergeOptions, Stream, DocumentFormat) Merges the current document using the specified options and sends the result to the specified stream in a specified format.
MailMerge(MailMergeOptions, String, DocumentFormat) Merges the current document using the specified options and sends the result to the specified file in a specified format.
MailMerge(Stream, DocumentFormat) Merges the current document and sends the result to the specified stream in a specified format.
MailMerge(String, DocumentFormat) Merges the current document and sends the result to the specified file in a specified format.
MakeAllTablesWordCompatible() Merges all columns with indexes greater than 63 into a single column for all tables in a document.
Paste() Insert a text from the clipboard into the current Document.CaretPosition.
Paste(DocumentFormat) Inserts the contents of the clipboard in the specified format at the caret position.
Protect(String) Enforces document protection and sets the specified password.
RemoveBookmark(Bookmark) Obsolete. Removes the specified bookmark from the bookmark collection of the document. Inherited from SubDocument.
RemoveHyperlink(Hyperlink) Obsolete. Deletes a specified hyperlink. Inherited from SubDocument.
RemoveNumberingFromParagraph(Paragraph) Obsolete. This API is obsolete now. Inherited from SubDocument.
RemoveNumberingFromParagraphs(DocumentRange) Obsolete. Remove the numbering or bullet from all paragraphs intersecting the specified range. Inherited from SubDocument.
Replace(DocumentRange, String) Replaces the specified document range with the specified text string. Inherited from SubDocument.
ReplaceAll(String, String, SearchOptions) Replaces all occurrences of a character pattern defined by a regular expression with a specified replacement string. Inherited from SubDocument.
ReplaceAll(String, String, SearchOptions, DocumentRange) Finds all occurrences of the search string in the specified range, and replaces them with the replacement string. Inherited from SubDocument.
ReplaceAll(Regex, String) Replaces all occurrences of a character pattern defined by a regular expression with a specified replacement string. Inherited from SubDocument.
ReplaceAll(Regex, String, DocumentRange) Replaces all occurrences of a character pattern defined by a regular expression with a specified replacement string. Inherited from SubDocument.
SaveDocument(Stream, DocumentFormat) Saves the document to a stream, specifying the document's format.
SaveDocument(String, DocumentFormat) Saves the document to a file, specifying the document's format.
SelectAll() Selects all the content in the document. Inherited from SubDocument.
SelectBookmark(Bookmark) Obsolete. Selects a range associated with the specified bookmark. Inherited from SubDocument.
SetPageBackground(Boolean) Shows the background color of the page. Inherited from SubDocument.
SetPageBackground(Color) Inherited from SubDocument.
SetPageBackground(Color, Boolean) Inherited from SubDocument.
StartSearch(String) Provides a search interface with default parameters. Inherited from SubDocument.
StartSearch(String, SearchOptions, SearchDirection) Provides a search interface for a search in the current document in the specified direction, using the specified options. Inherited from SubDocument.
StartSearch(String, SearchOptions, SearchDirection, DocumentRange) Provides a search interface for a search in the specified range in the specified direction, using the specified options. Inherited from SubDocument.
StartSearch(Regex) Provides a search interface for a search in the document, using a regular expression pattern. Inherited from SubDocument.
StartSearch(Regex, DocumentRange) Provides a search interface for a search in the specified range using a regular expression pattern. Inherited from SubDocument.
Unprotect() Removes document protection.

#Events

Name Description
CalculateDocumentVariable Fires when the DOCVARIABLE field is updated.
ContentChanged Occurs when the document content was changed.
ModifiedChanged Occurs when the document content has been modified since it was last saved.
See Also