Back to Devexpress

DocumentRange.End Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-documentrange-3573276c.md

latest6.5 KB
Original Source

DocumentRange.End Property

Gets the end position of the DocumentRange.

Namespace : DevExpress.XtraRichEdit.API.Native

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
DocumentPosition End { get; }
vb
ReadOnly Property [End] As DocumentPosition

Property Value

TypeDescription
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

csharp
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

csharp
// 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");

wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/DocumentPropertiesActions.cs#L23

csharp
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

csharp
{
    document.Fields.Create(document.Range.End, "DOCVARIABLE rssFeed");
}

winforms-richeditcontrol-common-api/CS/RichEditAPISample/CodeExamples/RichEditControlActions.cs#L100

csharp
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

vb
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

vb
' 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")

wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/DocumentPropertiesActions.vb#L20

vb
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

vb
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

vb
richEdit.LoadDocument("Documents\MultiPageDocument.docx", DevExpress.XtraRichEdit.DocumentFormat.OpenXml)
richEdit.Document.CaretPosition = richEdit.Document.Range.End
richEdit.ScrollToCaret()

See Also

Start

DocumentRange Interface

DocumentRange Members

DevExpress.XtraRichEdit.API.Native Namespace