Copyright © 2003-2024 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]

Public Function CellsManager.CellGetUniqueID(nIndex as Short) as Boolean

 

[C#]

public bool CellsManager.CellGetUniqueID(short nIndex);

 

[C++]

public: bool 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

Dim i As Short

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

     UniqueID = Ctl3dPushButton1.CellsManager.CellGetUniqueID(i)

     Console.WriteLine(UniqueID.ToString())

Next i

 

Visual C++ example

 

short nUniqueID;

for (short i = 0; i < Ctl3dPushButton1.CellsManager.CellGetCount (); i++)

{

     nUniqueID = Ctl3dPushButton1.CellsManager.CellGetUniqueID (i);

     Console.WriteLine (nUniqueID.ToString ());

}

 

 

Return value

 

Value

Meaning

 

 

-1

An error occurred

value >= 0

The UniqueID for the requested cell