Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeListOptionsView.BestFitNodes Property

Gets or sets a value specifying which nodes take part in calculations when applying best fit to columns.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

[DefaultValue(TreeListBestFitNodes.Default)]
[XtraSerializableProperty]
public TreeListBestFitNodes BestFitNodes { get; set; }

#Property Value

Type Default Description
DevExpress.XtraTreeList.TreeListBestFitNodes Default

A DevExpress.XtraTreeList.TreeListBestFitNodes enumeration value that specifies which nodes take part in calculations when applying best fit to columns.

#Property Paths

You can access this nested property as listed below:

Object Type Path to BestFitNodes
TreeList
.OptionsView .BestFitNodes

#Remarks

The DevExpress.XtraTreeList.TreeListBestFitNodes enumeration provides the following values which specify which nodes take part in calculations when applying best fit to columns:

  • Default - equivalent to All.
  • All - all nodes.
  • Visible - only nodes not hidden within collapsed groups.
  • Display - only nodes that are currently displayed on screen.
  • Custom - this mode is automatically enabled if you set the TreeListOptionsView.BestFitMaxNodeCount property to any custom value. To use All, Visible or Display mode, reset the TreeListOptionsView.BestFitMaxNodeCount property to its default value.
See Also