windowsforms-devexpress-dot-xtratreelist-dot-treelist-bd43b242.md
Gets the control’s view/display information.
Namespace : DevExpress.XtraTreeList
Assembly : DevExpress.XtraTreeList.v25.2.dll
NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList
[Browsable(false)]
public virtual TreeListViewInfo ViewInfo { get; }
<Browsable(False)>
Public Overridable ReadOnly Property ViewInfo As TreeListViewInfo
| Type | Description |
|---|---|
| DevExpress.XtraTreeList.ViewInfo.TreeListViewInfo |
A TreeListViewInfo object providing view information on all the Tree List’s elements.
|
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
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
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