SftBox/OCX 4.5

SftBoxColumn.RealPosition Property

Softel vdm, Inc.

Returns the real column number of this column.

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 SftBoxColumn object.

RealCol

Returns the real column number of this column.

Comments

The RealPosition property returns the real column number of this column.

As a user reorders columns, this is completely transparent to the application. An application still references cells by the "real" column number, which is the original column number that the cell 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 columns and cells by their real column number which never changes.

If a user reorders columns using column reordering, the (real) column numbers used by an application may need to be translated into the actual display column number, which is the column number as it appears to the user.

The RealPosition property returns the same index value that is used to retrieve the SftBoxColumn object object using the Column property.

The Columns.Move method can be used to reorder columns under program control.


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