Range Class |
Namespace: Aspose.Words
The Range type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | Bookmarks |
Returns a Bookmarks collection that represents all bookmarks in the range.
|
![]() | Fields |
Returns a Fields collection that represents all fields in the range.
|
![]() ![]() | FormFields |
Returns a FormFields collection that represents all form fields in the range.
|
![]() ![]() | Text |
Gets the text of the range.
|
Name | Description | |
---|---|---|
![]() ![]() | Delete |
Deletes all characters of the range.
|
![]() | Equals | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | NormalizeFieldTypes |
Changes field type values FieldType of FieldStart, FieldSeparator, FieldEnd
in this range so that they correspond to the field types contained in the field codes.
|
![]() ![]() | Replace(String, String) |
Replaces all occurrences of a character pattern specified by a regular expression with another string.
|
![]() ![]() | Replace(Regex, String) |
Replaces all occurrences of a character pattern specified by a regular expression with another string.
|
![]() ![]() | Replace(String, String, FindReplaceOptions) |
Replaces all occurrences of a character pattern specified by a regular expression with another string.
|
![]() ![]() | Replace(Regex, String, FindReplaceOptions) |
Replaces all occurrences of a character pattern specified by a regular expression with another string.
|
![]() | ToDocument |
Constructs a new fully formed document that contains the range.
|
![]() | ToString | (Inherited from Object.) |
![]() ![]() | UnlinkFields |
Unlinks fields in this range.
|
![]() ![]() | UpdateFields |
Updates the values of document fields in this range.
|
The document is represented by a tree of nodes and the nodes provide operations to work with the tree, but some operations are easier to perform if the document is treated as a contiguous sequence of text.
Range is a "facade" interface that provide methods that treat the document or portions of the document as "flat" text regardless of the fact that the document nodes are stored in a tree-like object model.
Range does not contain any text or nodes, it is merely a view or "window" over a fragment of a document.
Document doc = new Document(MyDir + "Document.docx"); string text = doc.Range.Text;