API Documentation -> NtRowHeader -> InitRowHeaderBitmap

# NtRowHeader.InitRowHeaderBitmap Method

Initializes the NtRowHeader with a Bitmap and a brush to draw the background. Drawing the NtRowHeader the area is filled by the bkBrush first and then the bitmap is drawn on top of that. So even if the bitmap is too small or has transparent areas, the Row Header will be filled properly. Within the Row Header the bitmap can be placed using the member bitmapPos.
Additionally you can initialize the same NtRowHeader for drawing simple text by calling InitRowHeaderText(). The text will then be drawn overlapping the bitmap and the background.

Overload List:

Modifier / Return Value | Name and Parameters | Description
--- | --- | ---
public virtual void | InitRowHeaderBitmap ( Bitmap bitmap, Brush bkBrush ) | Initializes the NtRowHeader with a Bitmap and background brush.

Return value:

void

Parameters:

Bitmap bitmap
The bitmap to be drawn on this Row Header.

Brush bkBrush
The Brush used to paint the complete rectangle of this Row Header before applying the text and bitmap.

Remarks:

You can assign another bitmap or null to the bitmap member at any time, it is not necessary to call InitRowHeaderBitmap(). The same fits for bkBrush but not for the members that are needed for drawing text.
The member bitmapPos defines the offset of the bitmap relative to the top left of the NtRowHeader. You can set it any time. It is useful to properly position your bitmap in case it is not filling the NtRowHeader entirely (e.g. an icon). The default value for the position is (0,0) which is the top left corner of the Row Header.

See also:

InitRowHeaderText()

Top API Documentation -> NtRowHeader -> InitRowHeaderBitmap © 2016 Bassaly