SftBox/OCX 4.5

SftBoxItem.TopParent Property

Softel vdm, Inc.

Returns the item's top-most parent item.

Syntax       

Get

VB.NET

TopParentIndex = object.TopParent  As Integer

VB

TopParentIndex = object.TopParent  As Long

C#.NET

int TopParentIndex = object.TopParent;

VC++

long TopParentIndex = object->TopParent;
long TopParentIndex = object->GetTopParent();

C

HRESULT object->get_TopParent(long* TopParentIndex);

Delphi

TopParentIndex := object.TopParent   : Integer;

object

A SftBoxItem object.

TopParentIndex

Returns the zero-based index of the top-most parent item of the item described by object. If the item doesn't have a parent item, -1 is returned.

Comments

The TopParent property returns the item's top-most parent item.

The TopParent property returns the top-most parent item. To find an item's immediate parent item use the Item.Parent property instead.


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