SftDirectory 2.5

SftDirectory.AutoSizeColumns Property

Softel vdm, Inc.

Defines whether the columns are automatically resized optimally when the contents are loaded.

Syntax       

Get

VB.NET

Boolean = object.AutoSizeColumns  As Boolean

VB

Boolean = object.AutoSizeColumns  As Boolean

C#.NET

bool Boolean = object.AutoSizeColumns;

VC++

VARIANT_BOOL Boolean = object->AutoSizeColumns;
VARIANT_BOOL Boolean = object->GetAutoSizeColumns();

C

HRESULT object->get_AutoSizeColumns(VARIANT_BOOL* Boolean);

Delphi

Boolean := object.AutoSizeColumns   : WordBool;

Put

VB.NET

object.AutoSizeColumns = Boolean  As Boolean

VB

object.AutoSizeColumns = Boolean  As Boolean

C#.NET

bool object.AutoSizeColumns = Boolean;

VC++

VARIANT_BOOL object->AutoSizeColumns = Boolean;
void object->PutAutoSizeColumns(VARIANT_BOOL Boolean);

C

HRESULT object->put_AutoSizeColumns(VARIANT_BOOL Boolean);

Delphi

object.AutoSizeColumns := Boolean   : WordBool;

object

A SftDirectory object.

Boolean

Defines whether the columns are automatically resized optimally when the contents are loaded.

Boolean

Description

True

All columns are automatically resized optimally when the contents are loaded.

False

Columns are not resized.

Comments

The AutoSizeColumns property defines whether the columns are automatically resized optimally when the contents are loaded.

All columns' Width properties are used to define the width for each column.  These column widths are used if AutoSizeColumns is set to False or until the control's contents are updated. 

If AutoSizeColumns is set to True, the columns are always sized optimally, so text is not truncated.

Columns can be optimally sized using the control's MakeColumnsOptimal method or a column's MakeOptimal method.


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