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