officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-subdocument-c07274a8.md
Provides access to a collection of paragraphs.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
ParagraphCollection Paragraphs { get; }
ReadOnly Property Paragraphs As ParagraphCollection
| Type | Description |
|---|---|
| ParagraphCollection |
A ParagraphCollection interface defining a list of paragraphs.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the Paragraphs 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/List.cs#L35
// Add paragraphs to the list
ParagraphCollection paragraphs = document.Paragraphs;
paragraphs.AddParagraphsToList(document.Range, bulletedList, 0);
wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/ListActions.cs#L35
// Add paragraphs to the list
ParagraphCollection paragraphs = document.Paragraphs;
paragraphs.AddParagraphsToList(document.Range, bulletedList, 0);
word-document-api-examples/CS/CodeExamples/ListsActions.cs#L49
// Access the collection of paragraphs.
ParagraphCollection paragraphs = document.Paragraphs;
return null;
int paragraphStart = DocumentHelper.GetParagraphStart(syntaxEditor.Document.Paragraphs[token.Range.Start.Line - 1]);
int tokenStart = paragraphStart + token.Range.Start.Offset - 1;
return null;
int paragraphStart = DocumentHelper.GetParagraphStart(syntaxEditor.Document.Paragraphs[token.Range.Start.Line - 1]);
int tokenStart = paragraphStart + token.Range.Start.Offset - 1;
winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/List.vb#L29
' Add paragraphs to the list
Dim paragraphs As DevExpress.XtraRichEdit.API.Native.ParagraphCollection = document.Paragraphs
paragraphs.AddParagraphsToList(document.Range, bulletedList, 0)
wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/ListActions.vb#L32
' Add paragraphs to the list
Dim paragraphs As ParagraphCollection = document.Paragraphs
paragraphs.AddParagraphsToList(document.Range, bulletedList, 0)
word-document-api-examples/VB/CodeExamples/ListsActions.vb#L42
' Access the collection of paragraphs.
Dim paragraphs As DevExpress.XtraRichEdit.API.Native.ParagraphCollection = document.Paragraphs
' Apply the numbering list format to the document paragraphs.
If syntaxEditor.Document.Paragraphs.Count < token.Range.Start.Line Then Return Nothing
Dim paragraphStart As Integer = DocumentHelper.GetParagraphStart(syntaxEditor.Document.Paragraphs(token.Range.Start.Line - 1))
Dim tokenStart As Integer = paragraphStart + token.Range.Start.Offset - 1
If syntaxEditor.Document.Paragraphs.Count < token.Range.Start.Line Then Return Nothing
Dim paragraphStart As Integer = DocumentHelper.GetParagraphStart(syntaxEditor.Document.Paragraphs(token.Range.Start.Line - 1))
Dim tokenStart As Integer = paragraphStart + token.Range.Start.Offset - 1
See Also