21 references to Ascending
System.Windows.Forms (12)
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (1)
248case SortOrder.Ascending:
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (2)
984sortOrder = ibl.SortDirection == ListSortDirection.Ascending ? SortOrder.Ascending : SortOrder.Descending; 997sortOrder = sorts[0]!.SortDirection == ListSortDirection.Ascending ? SortOrder.Ascending : SortOrder.Descending;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
13640if (SortOrder == SortOrder.Ascending) 21529ListSortDirection listSortDirection = SortedColumn == dataGridViewColumn && SortOrder == SortOrder.Ascending ? 28250SortOrder = (direction == ListSortDirection.Ascending) ? SortOrder.Ascending : SortOrder.Descending;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
76name += ", " + (dataGridView.SortOrder == SortOrder.Ascending
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
1008if (SortGlyphDirection == SortOrder.Ascending)
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellAccessibleObject.cs (1)
125ListSortDirection listSortDirection = dataGridView.SortedColumn == dataGridViewCell.OwningColumn && dataGridView.SortOrder == SortOrder.Ascending
System\Windows\Forms\Controls\ListView\ListView.cs (1)
702case SortOrder.Ascending:
System\Windows\Forms\Controls\ListView\ListView.IconComparer.cs (1)
35if (_sortOrder == SortOrder.Ascending)
System\Windows\Forms\Controls\ListView\ListView.ListViewAccessibleObject.cs (1)
160SortOrder.Ascending => SR.SortedAscendingAccessibleStatus,
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\MaskDesignerDialog.cs (3)
35private SortOrder _listViewSortOrder = SortOrder.Ascending; 571_listViewSortOrder = SortOrder.Ascending; 573case SortOrder.Ascending:
System.Windows.Forms.Design.Tests (4)
System\Windows\Forms\Design\MaskDescriptorComparerTests.cs (4)
28MaskDescriptorComparer comparer = new(MaskDescriptorComparer.SortType.ByName, SortOrder.Ascending); 33[InlineData(MaskDescriptorComparer.SortType.ByName, SortOrder.Ascending, -1)] 35[InlineData(MaskDescriptorComparer.SortType.BySample, SortOrder.Ascending, -1)] 37[InlineData(MaskDescriptorComparer.SortType.ByValidatingTypeName, SortOrder.Ascending, -1)]
WinFormsControlsTest (2)
ListViewTest.cs (1)
72Sorting = SortOrder.Ascending,
MultipleControls.cs (1)
37Sorting = SortOrder.Ascending,