BCGControlBar Library for .NET
DrawMarginCellText Method




Graphics context.
Cell bounds.
Specifies whether to display "mark" state. "Mark" state is a special coloring indicating that there is at least one selected cell in the row.
Specifies whether the row is selected.
Specifies whether the cell is highlighted
Specifies row index. The default text is a row index converted to a string.
Specifies whether it's the first visible row on the grid area.
Called to draw left margin (row header) text .
Syntax
'Declaration
 
Public Overridable Sub DrawMarginCellText( _
   ByVal grph As Graphics, _
   ByVal bounds As Rectangle, _
   ByVal showMarkState As Boolean, _
   ByVal isRowSelected As Boolean, _
   ByVal highlighted As Boolean, _
   ByVal rowIndex As Integer, _
   ByVal firstVisibleRow As Boolean _
) 
'Usage
 
Dim instance As GridControl
Dim grph As Graphics
Dim bounds As Rectangle
Dim showMarkState As Boolean
Dim isRowSelected As Boolean
Dim highlighted As Boolean
Dim rowIndex As Integer
Dim firstVisibleRow As Boolean
 
instance.DrawMarginCellText(grph, bounds, showMarkState, isRowSelected, highlighted, rowIndex, firstVisibleRow)
public virtual void DrawMarginCellText( 
   Graphics grph,
   Rectangle bounds,
   bool showMarkState,
   bool isRowSelected,
   bool highlighted,
   int rowIndex,
   bool firstVisibleRow
)
public: virtual void DrawMarginCellText( 
   Graphics* grph,
   Rectangle bounds,
   bool showMarkState,
   bool isRowSelected,
   bool highlighted,
   int rowIndex,
   bool firstVisibleRow
) 
public:
virtual void DrawMarginCellText( 
   Graphics^ grph,
   Rectangle bounds,
   bool showMarkState,
   bool isRowSelected,
   bool highlighted,
   int rowIndex,
   bool firstVisibleRow
) 

Parameters

grph
Graphics context.
bounds
Cell bounds.
showMarkState
Specifies whether to display "mark" state. "Mark" state is a special coloring indicating that there is at least one selected cell in the row.
isRowSelected
Specifies whether the row is selected.
highlighted
Specifies whether the cell is highlighted
rowIndex
Specifies row index. The default text is a row index converted to a string.
firstVisibleRow
Specifies whether it's the first visible row on the grid area.
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