Back to Devexpress

TreeList.ViewInfo Property

windowsforms-devexpress-dot-xtratreelist-dot-treelist-bd43b242.md

latest2.9 KB
Original Source

TreeList.ViewInfo Property

Gets the control’s view/display information.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
[Browsable(false)]
public virtual TreeListViewInfo ViewInfo { get; }
vb
<Browsable(False)>
Public Overridable ReadOnly Property ViewInfo As TreeListViewInfo

Property Value

TypeDescription
DevExpress.XtraTreeList.ViewInfo.TreeListViewInfo

A TreeListViewInfo object providing view information on all the Tree List’s elements.

|

Remarks

The ViewInfo property provides access to a TreeListViewInfo object. This object introduces properties and methods which let you obtain all the display information about Tree List control elements (nodes, columns, data cells etc).

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ViewInfo 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-implement-group-level-style-feature/CS/Q220534/Form1.cs#L26

csharp
Dictionary<int, Rectangle> groupLevelIndentRects = new Dictionary<int, Rectangle>();
CalcGroupLevelIndentRects(tree.ViewInfo, e.Node, e.Bounds, groupLevelIndentRects);
foreach (KeyValuePair<int, Rectangle> kvp in groupLevelIndentRects)

winforms-treelist-implement-group-level-style-feature/VB/Q220534/Form1.vb#L24

vb
Dim groupLevelIndentRects As New Dictionary(Of Integer, Rectangle)()
CalcGroupLevelIndentRects(tree.ViewInfo, e.Node, e.Bounds, groupLevelIndentRects)
For Each kvp As KeyValuePair(Of Integer, Rectangle) In groupLevelIndentRects

See Also

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace