Back to Devexpress

NumberingListCollection.Add(Int32) Method

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-numberinglistcollection-dot-add-x28-system-dot-int32-x29.md

latest4.5 KB
Original Source

NumberingListCollection.Add(Int32) Method

Creates and adds a new numbering list to the collection, which is based on an abstract numbering list specified by its index.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
NumberingList Add(
    int abstractNumberingListIndex
)
vb
Function Add(
    abstractNumberingListIndex As Integer
) As NumberingList

Parameters

NameTypeDescription
abstractNumberingListIndexInt32

An integer that is the index of the abstract numbering list in the document.

|

Returns

TypeDescription
NumberingList

A NumberingList interface specifying the numbering list in the document.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the Add(Int32) method.

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#L32

csharp
//Create a new list based on the specific pattern
NumberingList bulletedList = document.NumberingLists.Add(0);

wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/ListActions.cs#L32

csharp
//Create a new list based on the given pattern
NumberingList bulletedList = document.NumberingLists.Add(0);

word-document-api-examples/CS/CodeExamples/ListsActions.cs#L46

csharp
// Create a new list based on the specified pattern.
NumberingList bulletedList = document.NumberingLists.Add(0);

winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/List.vb#L27

vb
'Create a new list based on the specific pattern
Dim bulletedList As DevExpress.XtraRichEdit.API.Native.NumberingList = document.NumberingLists.Add(0)
' Add paragraphs to the list

wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/ListActions.vb#L29

vb
'Create a new list based on the given pattern
Dim bulletedList As NumberingList = document.NumberingLists.Add(0)

word-document-api-examples/VB/CodeExamples/ListsActions.vb#L40

vb
' Create a new list based on the specified pattern.
Dim bulletedList As DevExpress.XtraRichEdit.API.Native.NumberingList = document.NumberingLists.Add(0)
' Access the collection of paragraphs.

See Also

NumberingListCollection Interface

NumberingListCollection Members

DevExpress.XtraRichEdit.API.Native Namespace