Back to Devexpress

TreeList.AppendNode(Object, Int32, Int32, Int32, Int32, CheckState, NodeCheckBoxStyle, Object) Method

windowsforms-devexpress-dot-xtratreelist-dot-treelist-dot-appendnode-x28-object-int32-int32-int32-int32-checkstate-nodecheckboxstyle-object-x29.md

latest3.8 KB
Original Source

TreeList.AppendNode(Object, Int32, Int32, Int32, Int32, CheckState, NodeCheckBoxStyle, Object) Method

Adds a TreeListNode that contains the specified values to the XtraTreeList.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
public virtual TreeListNode AppendNode(
    object nodeData,
    int parentNodeId,
    int imageIndex,
    int selectImageIndex,
    int stateImageIndex,
    CheckState checkState,
    NodeCheckBoxStyle childrenCheckBoxStyle,
    object tag
)
vb
Public Overridable Function AppendNode(
    nodeData As Object,
    parentNodeId As Integer,
    imageIndex As Integer,
    selectImageIndex As Integer,
    stateImageIndex As Integer,
    checkState As CheckState,
    childrenCheckBoxStyle As NodeCheckBoxStyle,
    tag As Object
) As TreeListNode

Parameters

NameTypeDescription
nodeDataObject

An array of values or a DataRow object, used to initialize the created node’s cells.

| | parentNodeId | Int32 |

An integer value specifying the identifier of the parent node.

| | imageIndex | Int32 |

A zero-based index of the image displayed within the node.

| | selectImageIndex | Int32 |

A zero-based index of the image displayed within the node when it is focused or selected.

| | stateImageIndex | Int32 |

An integer value that specifies the index of the node’s state image.

| | checkState | CheckState |

The node’s check state.

| | childrenCheckBoxStyle | DevExpress.XtraTreeList.NodeCheckBoxStyle |

A NodeCheckBoxStyle enumeration value that specifies whether all child nodes owned by the created node should display check boxes, radio buttons, or neither. This value is assigned to the TreeListNode.ChildrenCheckBoxStyle property.

| | tag | Object |

An object that contains information associated with the Tree List node. This value is assigned to the TreeListNode.Tag property.

|

Returns

TypeDescription
TreeListNode

A TreeListNode object or descendant representing the added node.

|

See Also

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace