33 references to SearchDirectionHint
System.Windows.Forms (18)
System\Windows\Forms\Controls\ListView\ListView.cs (13)
3205
return FindItem(true, text, isPrefixSearch, new Point(0, 0),
SearchDirectionHint
.Down, startIndex, includeSubItemsInSearch);
3208
public ListViewItem? FindNearestItem(
SearchDirectionHint
dir, Point point)
3213
public ListViewItem? FindNearestItem(
SearchDirectionHint
searchDirection, int x, int y)
3220
if (searchDirection is <
SearchDirectionHint
.Left or >
SearchDirectionHint
.Down)
3242
case
SearchDirectionHint
.Up:
3246
case
SearchDirectionHint
.Down:
3250
case
SearchDirectionHint
.Left:
3254
case
SearchDirectionHint
.Right:
3267
private unsafe ListViewItem? FindItem(bool isTextSearch, string text, bool isPrefixSearch, Point pt,
SearchDirectionHint
dir, int startIndex, bool includeSubItemsInSearch)
6861
SearchDirectionHint
dir =
SearchDirectionHint
.Down;
6865
dir = (
SearchDirectionHint
)nmlvif->lvfi.vkDirection;
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
953
public ListViewItem? FindNearestItem(
SearchDirectionHint
searchDirection)
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (2)
34
foreach (
SearchDirectionHint
searchDirectionHint in Enum.GetValues(typeof(
SearchDirectionHint
)))
System\Windows\Forms\Controls\ListView\SearchForVirtualItemEventArgs.cs (2)
14
SearchDirectionHint
direction,
38
public
SearchDirectionHint
Direction { get; }
System.Windows.Forms.Tests (15)
System\Windows\Forms\ListViewTests.cs (9)
5039
ListView_FindNearestItem_Check_Result(listItems, listViewItemToTest,
SearchDirectionHint
.Left, leftitem);
5040
ListView_FindNearestItem_Check_Result(listItems, listViewItemToTest,
SearchDirectionHint
.Up, upitem);
5041
ListView_FindNearestItem_Check_Result(listItems, listViewItemToTest,
SearchDirectionHint
.Right, rightitem);
5042
ListView_FindNearestItem_Check_Result(listItems, listViewItemToTest,
SearchDirectionHint
.Down, downitem);
5095
ListView_FindNearestItem_Check_Result(listItems, listViewItemToTest,
SearchDirectionHint
.Left, leftitem);
5096
ListView_FindNearestItem_Check_Result(listItems, listViewItemToTest,
SearchDirectionHint
.Up, upitem);
5097
ListView_FindNearestItem_Check_Result(listItems, listViewItemToTest,
SearchDirectionHint
.Right, rightitem);
5098
ListView_FindNearestItem_Check_Result(listItems, listViewItemToTest,
SearchDirectionHint
.Down, downitem);
5101
private void ListView_FindNearestItem_Check_Result(ListViewItem[] listItems, ListViewItem item,
SearchDirectionHint
direction, int? resultItem)
System\Windows\Forms\SearchForVirtualItemEventArgsTests.cs (6)
13
yield return new object[] { true, false, true, null, Point.Empty,
SearchDirectionHint
.Down + 1, -2 };
14
yield return new object[] { false, true, false, "", new Point(1, 2),
SearchDirectionHint
.Down, -1 };
15
yield return new object[] { false, true, false, "text", new Point(-1, -2),
SearchDirectionHint
.Down, 0 };
16
yield return new object[] { false, true, false, "text", new Point(1, 2),
SearchDirectionHint
.Down, 1 };
21
public void Ctor_Bool_Bool_Bool_String_Point_SearchDirectionHint_Int(bool isTextSearch, bool isPrefixSearch, bool includeSubItemsInSearch, string text, Point startingPoint,
SearchDirectionHint
direction, int startIndex)
41
SearchForVirtualItemEventArgs e = new(false, true, false, "text", new Point(1, 2),
SearchDirectionHint
.Down, 1)