SftDirectory 2.5

SftDirectoryColumn.RealPosition Property

Softel vdm, Inc.

Returns the column's (real) column index.

Syntax       

Get

VB.NET

RealCol = object.RealPosition  As Short

VB

RealCol = object.RealPosition  As Integer

C#.NET

short RealCol = object.RealPosition;

VC++

short RealCol = object->RealPosition;
short RealCol = object->GetRealPosition();

C

HRESULT object->get_RealPosition(short* RealCol);

Delphi

RealCol := object.RealPosition   : Smallint;

object

A SftDirectoryColumn object.

RealCol

Returns the column's (real) column index.

Comments

The RealPosition property returns the column's (real) column index.

As a user reorders columns, this is completely transparent to the application. An application still references columns by the "real" column number (see ColumnEntry property using a zero-based index) or column contents (see Column property, using a SftDirectoryContentsConstants value). While columns appear in a new order after dragging a column to a new position, the application references columns and cells by their real column number or column contents which never change.

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.


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