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;
825
[DefaultValue(
PropertySort
.CategorizedAlphabetical)]
827
public
PropertySort
PropertySort
836
if ((value &
PropertySort
.Categorized) != 0)
840
else if ((value &
PropertySort
.Alphabetical) != 0)
1166
internal bool SortedByCategories => (PropertySort &
PropertySort
.Categorized) != 0;
2272
key.SetValue(RegistryStateNames.AlphabeticalSort, PropertySort ==
PropertySort
.Alphabetical ? "1" : "0");
2284
PropertySort =
PropertySort
.Categorized |
PropertySort
.Alphabetical;
2293
?
PropertySort
.Alphabetical
2294
:
PropertySort
.Categorized |
PropertySort
.Alphabetical;
3075
_propertySortValue =
PropertySort
.Alphabetical;
3078
_propertySortValue =
PropertySort
.Alphabetical |
PropertySort
.Categorized;
3081
_propertySortValue =
PropertySort
.NoSort;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (3)
49
protected
PropertySort
_propertySort;
886
PropertySort
initialSortType)
1311
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)
83
Assert.Equal(
PropertySort
.CategorizedAlphabetical, propertyGrid.PropertySort);
89
Assert.Equal(
PropertySort
.Alphabetical, propertyGrid.PropertySort);
95
Assert.Equal(
PropertySort
.CategorizedAlphabetical, propertyGrid.PropertySort);
111
Assert.Equal(
PropertySort
.CategorizedAlphabetical, propertyGrid.PropertySort);
117
Assert.Equal(
PropertySort
.Alphabetical, propertyGrid.PropertySort);
123
Assert.Equal(
PropertySort
.CategorizedAlphabetical, propertyGrid.PropertySort);
139
Assert.Equal(
PropertySort
.CategorizedAlphabetical, propertyGrid.PropertySort);
145
Assert.Equal(
PropertySort
.CategorizedAlphabetical, propertyGrid.PropertySort);
161
Assert.Equal(
PropertySort
.CategorizedAlphabetical, propertyGrid.PropertySort);
167
Assert.Equal(
PropertySort
.Alphabetical, propertyGrid.PropertySort);
173
Assert.Equal(
PropertySort
.CategorizedAlphabetical, propertyGrid.PropertySort);
System\Windows\Forms\PropertyGridTests.cs (9)
135
Assert.Equal(
PropertySort
.Categorized |
PropertySort
.Alphabetical, control.PropertySort);
2317
[EnumData<
PropertySort
>]
2318
public void PropertyGrid_PropertySort_Set_GetReturnsExpected(
PropertySort
value)
2335
[EnumData<
PropertySort
>]
2336
public void PropertyGrid_PropertySort_SetWithHandle_GetReturnsExpected(
PropertySort
value)
4052
propertyGrid.PropertySort =
PropertySort
.Alphabetical;
4055
propertyGrid.PropertySort =
PropertySort
.Categorized;
4059
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);