Back to Devexpress

DocumentRange.Start Property

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

latest6.1 KB
Original Source

DocumentRange.Start Property

Gets the start position of the DocumentRange.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
DocumentPosition Start { get; }
vb
ReadOnly Property Start As DocumentPosition

Property Value

TypeDescription
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

csharp
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

csharp
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

csharp
// Access the start position of the document range.
DocumentPosition currentPosition = wordProcessor.Document.Range.Start;

winforms-richedit-tables-simple-example/CS/TablesSimpleExample/Form1.cs#L106

csharp
// 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

csharp
//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

vb
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

vb
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

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

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

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

End

DocumentRange Interface

DocumentRange Members

DevExpress.XtraRichEdit.API.Native Namespace