44 references to DrawItemState
System.Windows.Forms (30)
winforms\Managed\System\WinForms\CheckedListBox.cs (10)
681
VisualStyles.CheckBoxState cbState = CheckBoxRenderer.ConvertFromButtonState(state, false, ((e.State &
DrawItemState
.HotLight) ==
DrawItemState
.HotLight));
711
VisualStyles.CheckBoxState cbState = CheckBoxRenderer.ConvertFromButtonState(state, false, ((e.State &
DrawItemState
.HotLight) ==
DrawItemState
.HotLight));
744
if (SelectionMode != SelectionMode.None && (e.State &
DrawItemState
.Selected) ==
DrawItemState
.Selected) {
838
if ((e.State &
DrawItemState
.Focus) ==
DrawItemState
.Focus &&
839
(e.State &
DrawItemState
.NoFocusRect) !=
DrawItemState
.NoFocusRect) {
winforms\Managed\System\WinForms\ComboBox.cs (1)
3613
dis.itemID, (
DrawItemState
)dis.itemState, ForeColor, BackColor));
winforms\Managed\System\WinForms\DrawItemEvent.cs (12)
69
private readonly
DrawItemState
state;
76
int index,
DrawItemState
state) {
91
int index,
DrawItemState
state, Color foreColor, Color backColor) {
104
if ((state &
DrawItemState
.Selected) ==
DrawItemState
.Selected) {
141
if ((state &
DrawItemState
.Selected) ==
DrawItemState
.Selected) {
175
public
DrawItemState
State {
196
if ((state &
DrawItemState
.Focus) ==
DrawItemState
.Focus
197
&& (state &
DrawItemState
.NoFocusRect) !=
DrawItemState
.NoFocusRect)
winforms\Managed\System\WinForms\ListBox.cs (1)
2341
OnDrawItem(new DrawItemEventArgs(g, Font, bounds, dis.itemID, (
DrawItemState
)dis.itemState, ForeColor, BackColor));
winforms\Managed\System\WinForms\MenuItem.cs (1)
1498
OnDrawItem(new DrawItemEventArgs(g, SystemInformation.MenuFont, Rectangle.FromLTRB(dis.rcItem.left, dis.rcItem.top, dis.rcItem.right, dis.rcItem.bottom), Index, (
DrawItemState
)dis.itemState));
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
2564
DrawValue(die.Graphics, drawBounds, drawBounds, gridEntry, gridEntry.ConvertTextToValue(text), (int)(die.State &
DrawItemState
.Selected) != 0, false, false, false);
winforms\Managed\System\WinForms\StatusBar.cs (1)
1042
OnDrawItem(new StatusBarDrawItemEventArgs(g, Font, r, dis.itemID,
DrawItemState
.None, panel, this.ForeColor, this.BackColor));
winforms\Managed\System\WinForms\StatusBarDrawItemEvent.cs (2)
33
DrawItemState
itemState, StatusBarPanel panel) : base(g, font, r, itemId, itemState) {
45
DrawItemState
itemState, StatusBarPanel panel, Color foreColor, Color backColor) : base(g, font, r, itemId, itemState, foreColor, backColor) {
winforms\Managed\System\WinForms\TabControl.cs (1)
2058
OnDrawItem(new DrawItemEventArgs(g, Font, Rectangle.FromLTRB(dis.rcItem.left, dis.rcItem.top, dis.rcItem.right, dis.rcItem.bottom), dis.itemID, (
DrawItemState
)dis.itemState));
System.WorkflowServices (14)
System\Workflow\Activities\Design\ListItemViewControl.cs (2)
14
private
DrawItemState
drawItemState;
21
public virtual
DrawItemState
DrawItemState
System\Workflow\Activities\Design\RichListBox.cs (4)
122
if ((e.State &
DrawItemState
.Selected) ==
DrawItemState
.Selected)
189
SelectedItemViewControl.DrawItemState =
DrawItemState
.Selected;
206
activeItemViewControl.DrawItemState =
DrawItemState
.Selected;
System\Workflow\Activities\Design\ServiceContractViewControl.cs (4)
51
bool focused = (this.DrawItemState &
DrawItemState
.Focus) ==
DrawItemState
.Focus;
52
bool selected = (this.DrawItemState &
DrawItemState
.Selected) ==
DrawItemState
.Selected;
System\Workflow\Activities\Design\ServiceOperationViewControl.cs (4)
46
bool focused = (this.DrawItemState &
DrawItemState
.Focus) ==
DrawItemState
.Focus;
47
bool selected = (this.DrawItemState &
DrawItemState
.Selected) ==
DrawItemState
.Selected;