Back to Devexpress

TreeListOptionsView.BestFitNodes Property

windowsforms-devexpress-dot-xtratreelist-dot-treelistoptionsview-eb8d3b7c.md

latest2.8 KB
Original Source

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.v25.2.dll

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

Declaration

csharp
[DefaultValue(TreeListBestFitNodes.Default)]
[XtraSerializableProperty]
public TreeListBestFitNodes BestFitNodes { get; set; }
vb
<DefaultValue(TreeListBestFitNodes.Default)>
<XtraSerializableProperty>
Public Property BestFitNodes As TreeListBestFitNodes

Property Value

TypeDefaultDescription
DevExpress.XtraTreeList.TreeListBestFitNodesDefault

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 TypePath 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

BestFit()

BestFitColumns

BestFitMode

TreeListOptionsView Class

TreeListOptionsView Members

DevExpress.XtraTreeList Namespace