|VB.NET||ColIndex = object.get_RealColumn(ByVal DispColIndex As Short) As Short|
|VB||ColIndex = object.RealColumn(ByVal DispColIndex As Integer) As Integer|
|C#.NET||short ColIndex = object.get_RealColumn(short DispColIndex);|
|VC++||short ColIndex = object->RealColumn[short DispColIndex]; |
short ColIndex = object->GetRealColumn(short DispColIndex);
|C||HRESULT object->get_RealColumn(short DispColIndex, short* ColIndex);|
As a user reorders columns, this is completely transparent to the application. An application still references cells and columns by the "real" column number, which is the original column number that the cell or column had before columns were reordered by the user. While columns appear in a new order after dragging a column to a new position, the application references cells and columns by their real column number which never changes.
If a user reorders columns using column drag & drop, the (display) column numbers, which is the column number as it appears to the user, may need to be translated into the real column number as used by an application.