Xceed Words for .NET v5.0 Documentation
Xceed.Document.NET Assembly / Xceed.Document.NET Namespace / List Class / InsertItem Method
The Paragraph that will be inserted in the List.
The level at which the Paragraph will be added.
Note that levels usually start at 0.
The index corresponding to the Paragraph's insertion point.
If this parameter is null, the Paragraph will be added at the end of the specified level.


In This Topic
    InsertItem Method
    In This Topic
    Inserts a Paragraph in the List.
    Syntax
    'Declaration
     
    Public Sub InsertItem( _
       ByVal paragraph As Paragraph, _
       ByVal level As Integer, _
       Optional ByVal index As Nullable(Of Integer) _
    ) 
    'Usage
     
    Dim instance As List
    Dim paragraph As Paragraph
    Dim level As Integer
    Dim index As Nullable(Of Integer)
     
    instance.InsertItem(paragraph, level, index)
    public void InsertItem( 
       Paragraph paragraph,
       int level,
       Nullable<int> index
    )

    Parameters

    paragraph
    The Paragraph that will be inserted in the List.
    level
    The level at which the Paragraph will be added.
    Note that levels usually start at 0.
    index
    The index corresponding to the Paragraph's insertion point.
    If this parameter is null, the Paragraph will be added at the end of the specified level.
    Exceptions
    ExceptionDescription
    New items cannot be added to the List if they have the same numId as other items. This exception will be raised when it occurs.
    Remarks
    The Paragraph will be added at a specific index in the List's given level.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows, 11, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also