'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.