Back to Devexpress

TreeListHitInfo.Column Property

windowsforms-devexpress-dot-xtratreelist-dot-treelisthitinfo.md

latest2.9 KB
Original Source

TreeListHitInfo.Column Property

Gets the column located under the test point.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
public TreeListColumn Column { get; }
vb
Public ReadOnly Property Column As TreeListColumn

Property Value

TypeDescription
TreeListColumn

The TreeListColumn object representing the column that contains the test point.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Column property.

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.

winforms-treelist-customize-cell-tooltip/CS/Form1.cs#L26

csharp
if(hit.HitInfoType == HitInfoType.Cell) {
    object cellInfo = new TreeListCellToolTipInfo(hit.Node, hit.Column, null);
    string toolTip = string.Format("{0} (Column: {1}, Node ID: {2})", hit.Node[hit.Column], hit.Column.FieldName, hit.Node.Id);

winforms-treelist-customize-cell-tooltip/VB/Form1.vb#L26

vb
If hit.HitInfoType = HitInfoType.Cell Then
    Dim cellInfo As Object = New TreeListCellToolTipInfo(hit.Node, hit.Column, Nothing)
    Dim toolTip As String = String.Format("{0} (Column: {1}, Node ID: {2})", hit.Node(hit.Column), hit.Column.FieldName, hit.Node.Id)

See Also

HitInfoType

Node

TreeListHitInfo Class

TreeListHitInfo Members

DevExpress.XtraTreeList Namespace