SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Returns the display position given a real column number.
Get
VB.NET | DispColIndex = object.DisplayPosition(ByVal ColIndex As Short) As Short |
VB | DispColIndex = object.DisplayPosition(ByVal ColIndex As Integer) As Integer |
C#.NET | short DispColIndex = object.get_DisplayPosition(short ColIndex); |
VC++ | short DispColIndex = object->DisplayPosition[short ColIndex]; short DispColIndex = object->GetDisplayPosition(short ColIndex); |
C | HRESULT object->get_DisplayPosition(short ColIndex, short* DispColIndex); |
object
A SftTreeColumns object.
ColIndex
The zero-based column number.
DispColIndex
Returns the display position given a real column number.
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 ColumnsObj.Move method can be used to reorder columns under program control.
See Also SftTreeColumns Object | Object Hierarchy