officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-documentrange-3573276c.md
Gets the end position of the DocumentRange.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
DocumentPosition End { get; }
ReadOnly Property [End] As DocumentPosition
| Type | Description |
|---|---|
| DocumentPosition |
A DocumentPosition object representing the end of the text range.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the End property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/DocumentProperties.cs#L20
document.Fields.Create(document.AppendText("\nAUTHOR: ").End, "AUTHOR");
document.Fields.Create(document.AppendText("\nTITLE: ").End, "TITLE");
word-document-api-examples/CS/CodeExamples/DocumentPropertiesActions.cs#L32
// Display the specified built-in properties in the document.
document.Fields.Create(document.AppendText("\nAUTHOR: ").End, "AUTHOR");
document.Fields.Create(document.AppendText("\nTITLE: ").End, "TITLE");
document.Fields.Create(document.AppendText("\nAUTHOR: ").End, "AUTHOR");
document.Fields.Create(document.AppendText("\nTITLE: ").End, "TITLE");
word-document-api-insert-dynamic-content/CS/Program.cs#L42
{
document.Fields.Create(document.Range.End, "DOCVARIABLE rssFeed");
}
winforms-richeditcontrol-common-api/CS/RichEditAPISample/CodeExamples/RichEditControlActions.cs#L100
richEdit.LoadDocument("Documents\\MultiPageDocument.docx", DevExpress.XtraRichEdit.DocumentFormat.OpenXml);
richEdit.Document.CaretPosition = richEdit.Document.Range.End;
richEdit.ScrollToCaret();
winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/DocumentProperties.vb#L19
document.DocumentProperties.Description = "This code demonstrates API to modify and display standard document properties."
document.Fields.Create(document.AppendText(CStr((Global.Microsoft.VisualBasic.Constants.vbLf & "AUTHOR: "))).[End], "AUTHOR")
document.Fields.Create(document.AppendText(CStr((Global.Microsoft.VisualBasic.Constants.vbLf & "TITLE: "))).[End], "TITLE")
word-document-api-examples/VB/CodeExamples/DocumentPropertiesActions.vb#L29
' Display the specified built-in properties in the document.
document.Fields.Create(document.AppendText(CStr((Global.Microsoft.VisualBasic.Constants.vbLf & "AUTHOR: "))).[End], "AUTHOR")
document.Fields.Create(document.AppendText(CStr((Global.Microsoft.VisualBasic.Constants.vbLf & "TITLE: "))).[End], "TITLE")
document.Fields.Create(document.AppendText(vbLf & "AUTHOR: ").End, "AUTHOR")
document.Fields.Create(document.AppendText(vbLf & "TITLE: ").End, "TITLE")
word-document-api-insert-dynamic-content/VB/Module1.vb#L35
Private Sub InsertDocVariableField(ByVal document As Document)
document.Fields.Create(document.Range.End, "DOCVARIABLE rssFeed")
End Sub
winforms-richeditcontrol-common-api/VB/RichEditAPISample/CodeExamples/RichEditControlActions.vb#L105
richEdit.LoadDocument("Documents\MultiPageDocument.docx", DevExpress.XtraRichEdit.DocumentFormat.OpenXml)
richEdit.Document.CaretPosition = richEdit.Document.Range.End
richEdit.ScrollToCaret()
See Also