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)
83Assert.Equal(PropertySort.CategorizedAlphabetical, propertyGrid.PropertySort); 89Assert.Equal(PropertySort.Alphabetical, propertyGrid.PropertySort); 95Assert.Equal(PropertySort.CategorizedAlphabetical, propertyGrid.PropertySort); 111Assert.Equal(PropertySort.CategorizedAlphabetical, propertyGrid.PropertySort); 117Assert.Equal(PropertySort.Alphabetical, propertyGrid.PropertySort); 123Assert.Equal(PropertySort.CategorizedAlphabetical, propertyGrid.PropertySort); 139Assert.Equal(PropertySort.CategorizedAlphabetical, propertyGrid.PropertySort); 145Assert.Equal(PropertySort.CategorizedAlphabetical, propertyGrid.PropertySort); 161Assert.Equal(PropertySort.CategorizedAlphabetical, propertyGrid.PropertySort); 167Assert.Equal(PropertySort.Alphabetical, propertyGrid.PropertySort); 173Assert.Equal(PropertySort.CategorizedAlphabetical, propertyGrid.PropertySort);
System\Windows\Forms\PropertyGridTests.cs (9)
135Assert.Equal(PropertySort.Categorized | PropertySort.Alphabetical, control.PropertySort); 2317[EnumData<PropertySort>] 2318public void PropertyGrid_PropertySort_Set_GetReturnsExpected(PropertySort value) 2335[EnumData<PropertySort>] 2336public void PropertyGrid_PropertySort_SetWithHandle_GetReturnsExpected(PropertySort value) 4018propertyGrid.PropertySort = PropertySort.Alphabetical; 4021propertyGrid.PropertySort = PropertySort.Categorized; 4025propertyGrid.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);