officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-documentrange.md
Gets the start position of the DocumentRange.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
DocumentPosition Start { get; }
ReadOnly Property Start As DocumentPosition
| Type | Description |
|---|---|
| DocumentPosition |
A DocumentPosition object representing the start of the text range.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the Start 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/SearchAndReplace.cs#L13
document.LoadDocument("Documents//Grimm.docx", DevExpress.XtraRichEdit.DocumentFormat.OpenXml);
document.InsertSection(document.Range.Start);
// Specify a regular expression that will find all six letter words.
wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/SearchAndReplaceActions.cs#L13
document.LoadDocument("Documents//Grimm.docx", DevExpress.XtraRichEdit.DocumentFormat.OpenXml);
document.InsertSection(document.Range.Start);
// Specify a regular expression that will find all six letter words.
word-document-api-examples/CS/CodeExamples/FormFieldsActions.cs#L19
// Access the start position of the document range.
DocumentPosition currentPosition = wordProcessor.Document.Range.Start;
winforms-richedit-tables-simple-example/CS/TablesSimpleExample/Form1.cs#L106
// Insert header data
document.InsertSingleLineText(table.Rows[0].Cells[2].Range.Start, "Active Customers");
document.InsertSingleLineText(table[2, 1].Range.Start, "Photo");
word-document-api-table-examples/CS/Program.cs#L40
//Create a new table and specify its layout type
Table table = document.Tables.Create(document.Range.Start, 2, 2);
winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/SearchAndReplace.vb#L12
document.LoadDocument("Documents//Grimm.docx", DevExpress.XtraRichEdit.DocumentFormat.OpenXml)
document.InsertSection(document.Range.Start)
' Specify a regular expression that will find all six letter words.
wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/SearchAndReplaceActions.vb#L10
document.LoadDocument("Documents//Grimm.docx", DevExpress.XtraRichEdit.DocumentFormat.OpenXml)
document.InsertSection(document.Range.Start)
' Specify a regular expression that will find all six letter words.
word-document-api-examples/VB/CodeExamples/FormFieldsActions.vb#L18
' Access the start position of the document range.
Dim currentPosition As DevExpress.XtraRichEdit.API.Native.DocumentPosition = wordProcessor.Document.Range.Start
' Insert a checkbox at the specified position.
winforms-richedit-tables-simple-example/VB/TablesSimpleExample/Form1.vb#L86
' Insert header data
document.InsertSingleLineText(table.Rows(0).Cells(2).Range.Start, "Active Customers")
document.InsertSingleLineText(table(2, 1).Range.Start, "Photo")
word-document-api-table-examples/VB/Program.vb#L32
'Create a new table and specify its layout type
Dim table As Table = document.Tables.Create(document.Range.Start, 2, 2)
'Add new rows to the table
See Also