BCGControlBar Library for .NET
SelectionRangeToPoints Method




Specifies the range to convert.
Output. Starting point of range.
Output. End point of range.
Helper method that converts a selection range to points in format [column, row].
Syntax
'Declaration
 
Public Sub SelectionRangeToPoints( _
   ByVal range As GridSelectionRange, _
   ByRef start As Point, _
   ByRef end As Point _
) 
'Usage
 
Dim instance As GridControl
Dim range As GridSelectionRange
Dim start As Point
Dim end As Point
 
instance.SelectionRangeToPoints(range, start, end)
public void SelectionRangeToPoints( 
   GridSelectionRange range,
   ref Point start,
   ref Point end
)
public: void SelectionRangeToPoints( 
   GridSelectionRange* range,
   ref Point start,
   ref Point end
) 
public:
void SelectionRangeToPoints( 
   GridSelectionRange^ range,
   Point% start,
   Point% end
) 

Parameters

range
Specifies the range to convert.
start
Output. Starting point of range.
end
Output. End point of range.
Remarks

After conversion X coordinate represents column index, Y coordinate - row index. Column and Row ranges produce the following for X and Y coordinates respectively:

[0, ColumnCollection.Count-1] - Column range
[0, GridControlData.GetRowCount () - 1] - Row range

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GridControl Class
GridControl Members

Send Feedback