52 references to PropertySort
System.Windows.Forms (29)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (18)
53private PropertySort _propertySortValue; 234PropertySort = PropertySort.Categorized | PropertySort.Alphabetical; 828[DefaultValue(PropertySort.CategorizedAlphabetical)] 830public PropertySort PropertySort 839if ((value & PropertySort.Categorized) != 0) 843else if ((value & PropertySort.Alphabetical) != 0) 1169internal bool SortedByCategories => (PropertySort & PropertySort.Categorized) != 0; 2278key.SetValue(RegistryStateNames.AlphabeticalSort, PropertySort == PropertySort.Alphabetical ? "1" : "0"); 2290PropertySort = PropertySort.Categorized | PropertySort.Alphabetical; 2299? PropertySort.Alphabetical 2300: PropertySort.Categorized | PropertySort.Alphabetical; 3081_propertySortValue = PropertySort.Alphabetical; 3084_propertySortValue = PropertySort.Alphabetical | PropertySort.Categorized; 3087_propertySortValue = PropertySort.NoSort;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (3)
49protected PropertySort _propertySort; 892PropertySort initialSortType) 1317if ((_propertySort & PropertySort.Alphabetical) != 0)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.cs (1)
24PropertySort sortType)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.PropertyMerger.cs (2)
17PropertySort sort, 28if ((sort & PropertySort.Alphabetical) != 0)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\SingleSelectRootGridEntry.cs (5)
32PropertySort sortType) 219if (((_propertySort &= PropertySort.Categorized) != 0) != sortByCategories) 223_propertySort |= PropertySort.Categorized; 227_propertySort &= ~PropertySort.Categorized; 243if (Children.Count == 0 || (_propertySort & PropertySort.Categorized) == 0)
System.Windows.Forms.Tests (20)
System\Windows\Forms\AccessibleObjects\PropertyGridToolStripButton.PropertyGridToolStripButtonAccessibleObjectTests.cs (11)
81Assert.Equal(PropertySort.CategorizedAlphabetical, propertyGrid.PropertySort); 87Assert.Equal(PropertySort.Alphabetical, propertyGrid.PropertySort); 93Assert.Equal(PropertySort.CategorizedAlphabetical, propertyGrid.PropertySort); 109Assert.Equal(PropertySort.CategorizedAlphabetical, propertyGrid.PropertySort); 115Assert.Equal(PropertySort.Alphabetical, propertyGrid.PropertySort); 121Assert.Equal(PropertySort.CategorizedAlphabetical, propertyGrid.PropertySort); 137Assert.Equal(PropertySort.CategorizedAlphabetical, propertyGrid.PropertySort); 143Assert.Equal(PropertySort.CategorizedAlphabetical, propertyGrid.PropertySort); 159Assert.Equal(PropertySort.CategorizedAlphabetical, propertyGrid.PropertySort); 165Assert.Equal(PropertySort.Alphabetical, propertyGrid.PropertySort); 171Assert.Equal(PropertySort.CategorizedAlphabetical, propertyGrid.PropertySort);
System\Windows\Forms\PropertyGridTests.cs (9)
133Assert.Equal(PropertySort.Categorized | PropertySort.Alphabetical, control.PropertySort); 2315[EnumData<PropertySort>] 2316public void PropertyGrid_PropertySort_Set_GetReturnsExpected(PropertySort value) 2333[EnumData<PropertySort>] 2334public void PropertyGrid_PropertySort_SetWithHandle_GetReturnsExpected(PropertySort value) 4016propertyGrid.PropertySort = PropertySort.Alphabetical; 4019propertyGrid.PropertySort = PropertySort.Categorized; 4023propertyGrid.PropertySort = PropertySort.Alphabetical;
System.Windows.Forms.UI.IntegrationTests (3)
PropertyGridTests.cs (3)
276_propertyGrid.PropertySort.Should().Be(PropertySort.CategorizedAlphabetical); 278_propertyGrid.PropertySort = PropertySort.Alphabetical; 279_propertyGrid.PropertySort.Should().Be(PropertySort.Alphabetical);