method CascadeTree.FitToClient ([FitColumnsCount as Variant])
Resizes or/and moves the all cascade columns to fit the control's client area.

TypeDescription
FitColumnsCount as Variant A long expression that specifies the number of columns to fit. If missing, it indicates 4.

The FitToClient method resizes or/and moves the all cascade columns to fit the control's client area. The DefColumnWidth property specifies the width to create a new cascade column. The Mode property indicates the mode the control displays the cascade columns. The FitCascadeColumns property retrieves or sets a value that indicates the number of cascading columns to fit. The Width property specifies the width of the view. The WidthToFit property specifies the width of the view to fit the control's client area.

The following properties can be used to limit / range the width of each cascade columns: