SftDirectory 2.5

SftDirectoryColumn.MakeOptimal Method

Softel vdm, Inc.

Resizes the column to its optimal width.

Syntax       

VB.NET

object.MakeOptimal(ByVal MaxScan As Integer)

VB

object.MakeOptimal(ByVal MaxScan As Long)

C#.NET

void object.MakeOptimal(int MaxScan);

VC++

HRESULT object->MakeOptimal(long MaxScan);

C

HRESULT object->raw_MakeOptimal(long MaxScan);

Delphi

procedure object.MakeOptimal(MaxScan : Integer);

object

A SftDirectoryColumn object.

MaxScan

The maximum number of items to be evaluated for optimal column width and horizontal scrolling calculation.  If 0 is specified, all items will be considered.  This parameter can be used to limit the optimization, which may be time-consuming if many folders are displayed by the control.

Comments

The MakeOptimal method resizes the column to its optimal width.

The MakeColumnsOptimal method can be used to resize all columns optimally.


Feedback / comments / error reports for this topic
© 2003, 2008 - Softel vdm, Inc. - www.softelvdm.com