Xceed Words for .NET v5.0 Documentation
Xceed.Document.NET Assembly / Xceed.Document.NET Namespace / List Class / InsertListItem Method
The text that will be added to the List.
The level at which the text will be added.
By default, the value is 0, which corresponds to the List's first level.
The Formatting that will be applied to the text.
If the value of this parameter is null, no particular Formatting is used.
The index corresponding to the text's insertion point.
If the value of this parameter is null, the text is added at the end of the specified level.


In This Topic
    InsertListItem Method
    In This Topic
    Inserts text in the List.
    Syntax
    'Declaration
     
    Public Function InsertListItem( _
       ByVal listText As String, _
       Optional ByVal level As Integer, _
       Optional ByVal formatting As Formatting, _
       Optional ByVal index As Nullable(Of Integer) _
    ) As List
    'Usage
     
    Dim instance As List
    Dim listText As String
    Dim level As Integer
    Dim formatting As Formatting
    Dim index As Nullable(Of Integer)
    Dim value As List
     
    value = instance.InsertListItem(listText, level, formatting, index)
    public List InsertListItem( 
       string listText,
       int level,
       Formatting formatting,
       Nullable<int> index
    )

    Parameters

    listText
    The text that will be added to the List.
    level
    The level at which the text will be added.
    By default, the value is 0, which corresponds to the List's first level.
    formatting
    The Formatting that will be applied to the text.
    If the value of this parameter is null, no particular Formatting is used.
    index
    The index corresponding to the text's insertion point.
    If the value of this parameter is null, the text is added at the end of the specified level.

    Return Value

    Returns an instance of the List with the added text.
    Remarks
    The inserted text can be formatted as needed.
    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