Click or drag to resize

DataColumn.VisualPos Property (Typed)

X#
Returns the number of the data column with respect to its visual position within a data browser from left to right.

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.21
Syntax
 VIRTUAL PROPERTY VisualPos AS LONG GET 
Request Example View Source

Property Value

Type: Long
The number of the data column with respect to its visual position within a data browser from left to right.
Examples
The following example shows how DataColumn:VisualPos may be used to save the current layout of a browser to an .INI file:
X#
 1METHOD SaveLayout() CLASS MySubForm
 2LOCAL wCount AS DWORD
 3LOCAL aColumnInfo := {} AS ARRAY
 4LOCAL oDataColumn AS DataColumn
 5FOR wCount := 1 UPTO SELF:Browser:ColumnCount
 6oDataColumn := SELF:Browser:GetColumn( wCount )
 7AADD( aColumnInfo, {oDataColumn:NameSym, oDataColumn:VisualPos} )
 8NEXT wCount
 9SaveSettings( aColumnInfo )
10RETURN NIL
See Also