Hide

SftBox/OCX 5.0 - Combo Box Control

Display
Print

SftBoxColumns.DisplayPosition Property

Returns the display position given a real column number.

Syntax

Get

VB.NETDispColIndex = object.DisplayPosition(ByVal ColNum As Short) As Short
VBDispColIndex = object.DisplayPosition(ByVal ColNum As Integer) As Integer
C#.NETshort DispColIndex = object.get_DisplayPosition(short ColNum);
VC++short DispColIndex = object->DisplayPosition[short ColNum];
short DispColIndex = object->GetDisplayPosition(short ColNum);
CHRESULT object->get_DisplayPosition(short ColNum, short* DispColIndex);

object

A SftBoxColumns object.

ColNum

Specifies the real column number of the requested displayed column.

DispColIndex

Returns the display position given a real column number.

Comments

The DisplayPosition property returns the display position given a real column number.

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 (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 Columns.Move method can be used to reorder columns under program control.

See Also SftBoxColumns Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.