SftTree/OCX 7.0

SftTreeItem.Collapse Method

Softel vdm, Inc.

Collapses the item so its dependents are no longer visible.

Syntax       

VB.NET

object.Collapse(ByVal Preserve As Boolean)

VB

object.Collapse(ByVal Preserve As Boolean)

C#.NET

void object.Collapse(bool Preserve);

VC++

HRESULT object->Collapse(VARIANT_BOOL Preserve);

C

HRESULT object->raw_Collapse(VARIANT_BOOL Preserve);

Delphi

procedure object.Collapse(Preserve : WordBool);

object

A SftTreeItem object.

Preserve

Defines whether the expand/collapse state is preserved.

Preserve

Description

True

Preserves the expand/collapse state of dependent items that are made no longer visible.  A subsequent call to Items.Expand or Item.Expand will restore the items with the remembered expand/collapse state.

False

The expand/collapse state is not preserved.

Comments

The Collapse method collapses the item so its dependents are no longer visible.

The Collapse method collapses all dependent items of the item and saves the expand/collapse state of all dependent items, so it can be restored by a subsequent Items.Expand or Item.Expand method call.

If a parent item is collapsed, subsequently adding child items will automatically expand the item.

See Also  SftTreeItem Object | Object Hierarchy


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