Table of Contents

Method DrawItemSelectionRect

Namespace
Alternet.Drawing
Assembly
Alternet.UI.dll

DrawItemSelectionRect(Control, Graphics, RectD, DrawFlags)

Draws rectangle indicating that an item in e.g. a list control has been selected or focused.

public void DrawItemSelectionRect(Control control, Graphics dc, RectD rect, WxControlPainterHandler.DrawFlags flags = DrawFlags.None)

Parameters

control Control

Control in which drawing will be performed.

dc Graphics

Drawing context.

rect RectD

Rectangle in which control is painted.

flags WxControlPainterHandler.DrawFlags

Drawing flags.

Remarks

The flags parameter may support the Selected (item is selected, e.g. draw background), Focused (the whole control has focus, e.g. blue background vs. grey otherwise) and Current (item is the current item, e.g. dotted border).