Back to Devexpress

NumberingListCollection.CreateNew(Int32) Method

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

latest3.0 KB
Original Source

NumberingListCollection.CreateNew(Int32) Method

Creates a new numbering list which is based on the 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 CreateNew(
    int abstractNumberingListIndex
)
vb
Function CreateNew(
    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.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CreateNew(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.

word-document-api-insert-dynamic-content/CS/Program.cs#L50

csharp
AbstractNumberingList abstractNumberingList = document.AbstractNumberingLists.BulletedListTemplate.CreateNew();
document.NumberingLists.CreateNew(abstractNumberingList.Index);

word-document-api-insert-dynamic-content/VB/Module1.vb#L42

vb
Dim abstractNumberingList As AbstractNumberingList = document.AbstractNumberingLists.BulletedListTemplate.CreateNew()
document.NumberingLists.CreateNew(abstractNumberingList.Index)

See Also

NumberingListCollection Interface

NumberingListCollection Members

DevExpress.XtraRichEdit.API.Native Namespace