Copyright © 1998-2015 MultiMedia Soft

CellsManager.CellGetUniqueID method

Previous pageReturn to chapter overviewNext page

Remarks

Given an index, returns the corresponding cell's UniqueID.

When used in conjunction with the CellsManager.CellGetCount method, it can enumerate the UniqueID of available cells.

For further details about cells management, see the How to manage cells section

 

Syntax

Visual Basic

control.CellsManager.CellGetUniqueID (nIndex as integer) as integer

 

Visual C++

short control.CellsManager.CellGetUniqueID (short nIndex);

 

Parameter

Description

 

 

nIndex

Index, inside the list of available cells, of the cell whose UniqueID must be retrieved.

 

Visual Basic example

 

Dim UniqueID As Integer

For i = 0 To MyButton.CellsManager.CellGetCount() - 1

 UniqueID = MyButton.CellsManager.CellGetUniqueID(i)

 Debug.Print UniqueID

Next i

 

 

Visual C++ example

 

short nUniqueID;

for (int i = 0; i < MyButton.GetCellsManager ().CellGetCount (); i++)

{

  nUniqueID = MyButton.GetCellsManager ().CellGetUniqueID (i);

  TRACE1 ("Found cell with ID: %d\n\r", nUniqueID);

}

 

Return value

 

Value

Meaning

 

 

-1

An error occurred

value >= 0

The UniqueID for the requested cell