NtRowHeader.InitRowHeaderText Method
Initializes the NtRowHeader with a simple text and a brush to draw the background area. The text will be drawn in a position defined by the member
Please note that it is ok to combine it with a call of InitRowHeaderBitmap(). If you call both members (no matter of the order) then the
NtRowHeader will be drawn like this:
1. The background is painted using
2. The
3. The
This methodology gives you the maximum flexibility to set up your Row Header. Of course, if the drawing of simple text does not fit the needs, it is fine to draw well rendered text
into the bitmap directly and then initialize the Row Header with the bitmap, only. This is anyway a good technique as it has higher performance on drawing compared to a row header that uses both text and bitmap.
Overload List:
| Modifier / Return Value | Name and Parameters | Description |
|---|---|---|
|
|
|
Initializes the NtRowHeader with a text and background brush. |
Return value:
Parameters:
The text to be drawn on this Row Header.
The Font used to draw the text.
The Brush used to draw the text.
The Brush used to paint the complete rectangle of this Row Header before applying the text or bitmap.
The Graphics object used only during the call to this method (not stored in a member). It is used to calculate the text size using the given font.
Remarks:
If you want to change the
See also:
