20 references to Focused
System.Windows.Forms (4)
System\Windows\Forms\Controls\ListView\DrawListViewItemEventArgs.cs (2)
75if ((State & ListViewItemStates.Focused) == ListViewItemStates.Focused)
System\Windows\Forms\Controls\ListView\DrawListViewSubItemEventArgs.cs (2)
111if ((ItemState & ListViewItemStates.Focused) == ListViewItemStates.Focused)
System.Windows.Forms.Tests (16)
System\Windows\Forms\DrawListViewItemEventArgsTests.cs (7)
15yield return new object[] { new Rectangle(-1, 2, -3, -4), 0, ListViewItemStates.Focused }; 73yield return new object[] { new ListViewItem(), new Rectangle(1, 2, 3, 4), ListViewItemStates.Focused }; 76yield return new object[] { new ListViewItem(), Rectangle.Empty, ListViewItemStates.Focused }; 79yield return new object[] { new ListViewItem(), new Rectangle(-1, -2, -3, -4), ListViewItemStates.Focused }; 88yield return new object[] { listViewItem, new Rectangle(1, 2, 3, 4), ListViewItemStates.Focused }; 95yield return new object[] { subItemsItem, new Rectangle(1, 2, 3, 4), ListViewItemStates.Focused }; 103yield return new object[] { fullRowSelectListViewItem, new Rectangle(1, 2, 3, 4), ListViewItemStates.Focused };
System\Windows\Forms\DrawListViewSubItemEventArgsTests.cs (9)
16yield return new object[] { new Rectangle(-1, 2, -3, -4), new ListViewItem(), new ListViewItem.ListViewSubItem(), 0, 0, new ColumnHeader(), ListViewItemStates.Focused }; 87yield return new object[] { new Rectangle(-1, -2, -3, -4), new ListViewItem(), null, -1, null, ListViewItemStates.Focused }; 90yield return new object[] { new Rectangle(-1, -2, -3, -4), new ListViewItem(), null, -1, new ColumnHeader(), ListViewItemStates.Focused }; 93yield return new object[] { new Rectangle(1, 2, 3, 4), new ListViewItem(), null, -1, null, ListViewItemStates.Focused }; 96yield return new object[] { new Rectangle(1, 2, 3, 4), new ListViewItem(), null, -1, new ColumnHeader(), ListViewItemStates.Focused }; 100yield return new object[] { new Rectangle(-1, -2, -3, -4), null, new ListViewItem.ListViewSubItem(), 0, null, ListViewItemStates.Focused }; 103yield return new object[] { new Rectangle(-1, -2, -3, -4), null, new ListViewItem.ListViewSubItem(), 0, new ColumnHeader(), ListViewItemStates.Focused }; 106yield return new object[] { new Rectangle(1, 2, 3, 4), null, new ListViewItem.ListViewSubItem(), 0, null, ListViewItemStates.Focused }; 109yield return new object[] { new Rectangle(1, 2, 3, 4), null, new ListViewItem.ListViewSubItem(), 0, new ColumnHeader(), ListViewItemStates.Focused };