SftTree/OCX 7.0

SftTreeItems.SelectionGroupEnd Method

Softel vdm, Inc.

Returns the index of the last selected item in a group of selected items.

Syntax       

VB.NET

ItemIndex = object.SelectionGroupEnd(ByVal GroupIndex As Integer)  As Integer

VB

ItemIndex = object.SelectionGroupEnd(ByVal GroupIndex As Long)  As Long

C#.NET

int ItemIndex = object.SelectionGroupEnd(int GroupIndex);

VC++

long ItemIndex = object->SelectionGroupEnd(long GroupIndex);

C

HRESULT object->raw_SelectionGroupEnd(long GroupIndex, long* ItemIndex);

Delphi

ItemIndex := object.SelectionGroupEnd(GroupIndex : Integer)   : Integer;

object

A SftTreeItems object.

GroupIndex

The zero-based group number for which the last selected item is to be retrieved.

ItemIndex

Returns the index of the last selected item in a group of selected items.

Comments

The SelectionGroupEnd method returns the index of the last selected item in a group of selected items.

In a multiple selection tree control, many discontiguous groups of items may be selected.  While the Items.Selection property returns an index for each selected item, the Items.SelectionGroupStart and Items.SelectionGroupEnd properties return each group of selected items.  For a large number of selected items this is the preferred method.

The Items.SelectionGroups property returns the number of groups of selected items.

See Also  SftTreeItems Object | Object Hierarchy


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