CellsManager.GetCellUniqueID method
Remarks
Given an index, returns the corresponding cell's UniqueID.
When used in conjunction with the
CellsManager.GetCount method, it can enumerate the
UniqueID of available cells.
Syntax
Visual Basic
control.CellsManager.GetCellUniqueID (nIndex as integer) as integer
Visual C++
short control.CellsManager.GetCellUniqueID (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.GetCount() - 1
UniqueID = MyButton.CellsManager.GetCellUniqueID(i)
Debug.Print UniqueID
Next i
Visual C++ example
short nUniqueID;
for (int i = 0; i < MyButton.GetCellsManager ().GetCount (); i++)
{
nUniqueID = MyButton.GetCellsManager ().GetCellUniqueID (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
|