150 references to ExpandCollapseState
System.Windows.Forms (83)
System\Windows\Forms\Accessibility\AccessibleObject.cs (3)
743
internal virtual
ExpandCollapseState
ExpandCollapseState =>
ExpandCollapseState
.ExpandCollapseState_Collapsed;
1317
HRESULT IExpandCollapseProvider.Interface.get_ExpandCollapseState(
ExpandCollapseState
* pRetVal)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxAccessibleObject.cs (3)
50
internal override
ExpandCollapseState
ExpandCollapseState
52
?
ExpandCollapseState
.ExpandCollapseState_Expanded
53
:
ExpandCollapseState
.ExpandCollapseState_Collapsed;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (4)
2431
(VARIANT)(int)
ExpandCollapseState
.ExpandCollapseState_Collapsed,
2432
(VARIANT)(int)
ExpandCollapseState
.ExpandCollapseState_Expanded);
2914
(VARIANT)(int)
ExpandCollapseState
.ExpandCollapseState_Expanded,
2915
(VARIANT)(int)
ExpandCollapseState
.ExpandCollapseState_Collapsed);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.DataGridViewComboBoxCellAccessibleObject.cs (4)
36
internal override
ExpandCollapseState
ExpandCollapseState
49
?
ExpandCollapseState
.ExpandCollapseState_Expanded
50
:
ExpandCollapseState
.ExpandCollapseState_Collapsed;
53
return
ExpandCollapseState
.ExpandCollapseState_Collapsed;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.DataGridViewComboBoxEditingControlAccessibleObject.cs (3)
61
internal override
ExpandCollapseState
ExpandCollapseState
63
?
ExpandCollapseState
.ExpandCollapseState_Expanded
64
:
ExpandCollapseState
.ExpandCollapseState_Collapsed;
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (8)
55
private
ExpandCollapseState
_expandCollapseState;
1048
_expandCollapseState =
ExpandCollapseState
.ExpandCollapseState_Collapsed;
1055
oldValue: (VARIANT)(int)
ExpandCollapseState
.ExpandCollapseState_Expanded,
1056
newValue: (VARIANT)(int)
ExpandCollapseState
.ExpandCollapseState_Collapsed);
1066
_expandCollapseState =
ExpandCollapseState
.ExpandCollapseState_Expanded;
1073
oldValue: (VARIANT)(int)
ExpandCollapseState
.ExpandCollapseState_Collapsed,
1074
newValue: (VARIANT)(int)
ExpandCollapseState
.ExpandCollapseState_Expanded);
1093
_expandCollapseState =
ExpandCollapseState
.ExpandCollapseState_Collapsed;
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.DateTimePickerAccessibleObject.cs (8)
100
ExpandCollapseState
.ExpandCollapseState_Collapsed => SR.AccessibleActionExpand,
101
ExpandCollapseState
.ExpandCollapseState_Expanded => SR.AccessibleActionCollapse,
111
case
ExpandCollapseState
.ExpandCollapseState_Collapsed:
114
case
ExpandCollapseState
.ExpandCollapseState_Expanded:
134
&& ExpandCollapseState ==
ExpandCollapseState
.ExpandCollapseState_Collapsed)
143
&& ExpandCollapseState ==
ExpandCollapseState
.ExpandCollapseState_Expanded)
149
internal override
ExpandCollapseState
ExpandCollapseState
152
:
ExpandCollapseState
.ExpandCollapseState_Collapsed;
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (3)
89
internal override
ExpandCollapseState
ExpandCollapseState =>
91
?
ExpandCollapseState
.ExpandCollapseState_Collapsed
92
:
ExpandCollapseState
.ExpandCollapseState_Expanded;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DetailsButton.DetailsButtonAccessibleObject.cs (3)
34
internal override
ExpandCollapseState
ExpandCollapseState
36
?
ExpandCollapseState
.ExpandCollapseState_Expanded
37
:
ExpandCollapseState
.ExpandCollapseState_Collapsed;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.GridEntryAccessibleObject.cs (5)
59
internal override
ExpandCollapseState
ExpandCollapseState
60
=> !this.TryGetOwnerAs(out GridEntry? owner) ?
ExpandCollapseState
.ExpandCollapseState_Collapsed : owner.Expandable
61
? owner.Expanded ?
ExpandCollapseState
.ExpandCollapseState_Expanded :
ExpandCollapseState
.ExpandCollapseState_Collapsed
62
:
ExpandCollapseState
.ExpandCollapseState_LeafNode;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObject.cs (5)
17
internal override
ExpandCollapseState
ExpandCollapseState
22
?
ExpandCollapseState
.ExpandCollapseState_Expanded
23
:
ExpandCollapseState
.ExpandCollapseState_Collapsed;
137
if (ExpandCollapseState ==
ExpandCollapseState
.ExpandCollapseState_Expanded)
145
if (ExpandCollapseState ==
ExpandCollapseState
.ExpandCollapseState_Collapsed)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (8)
824
(VARIANT)(int)
ExpandCollapseState
.ExpandCollapseState_Expanded,
825
(VARIANT)(int)
ExpandCollapseState
.ExpandCollapseState_Collapsed);
4524
var
oldExpandedState = value ?
ExpandCollapseState
.ExpandCollapseState_Collapsed :
ExpandCollapseState
.ExpandCollapseState_Expanded;
4525
var
newExpandedState = value ?
ExpandCollapseState
.ExpandCollapseState_Expanded :
ExpandCollapseState
.ExpandCollapseState_Collapsed;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (4)
507
(VARIANT)(int)
ExpandCollapseState
.ExpandCollapseState_Collapsed,
508
(VARIANT)(int)
ExpandCollapseState
.ExpandCollapseState_Expanded);
536
(VARIANT)(int)
ExpandCollapseState
.ExpandCollapseState_Expanded,
537
(VARIANT)(int)
ExpandCollapseState
.ExpandCollapseState_Collapsed);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItemAccessibleObject.cs (4)
82
internal override
ExpandCollapseState
ExpandCollapseState
86
return _owner.DropDown.Visible ?
ExpandCollapseState
.ExpandCollapseState_Expanded :
ExpandCollapseState
.ExpandCollapseState_Collapsed;
110
if (ExpandCollapseState ==
ExpandCollapseState
.ExpandCollapseState_Collapsed)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonExAccessibleObject.cs (4)
70
internal override
ExpandCollapseState
ExpandCollapseState
74
return _owningToolStripSplitButton.DropDown.Visible ?
ExpandCollapseState
.ExpandCollapseState_Expanded :
ExpandCollapseState
.ExpandCollapseState_Collapsed;
93
if (ExpandCollapseState ==
ExpandCollapseState
.ExpandCollapseState_Collapsed)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonUiaProvider.cs (1)
37
internal override
ExpandCollapseState
ExpandCollapseState
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeAccessibleObject.cs (9)
47
ExpandCollapseState
expandCollapseState = ExpandCollapseState;
48
if (expandCollapseState ==
ExpandCollapseState
.ExpandCollapseState_LeafNode)
53
return expandCollapseState ==
ExpandCollapseState
.ExpandCollapseState_Expanded
167
if (ExpandCollapseState ==
ExpandCollapseState
.ExpandCollapseState_Expanded)
171
else if (ExpandCollapseState ==
ExpandCollapseState
.ExpandCollapseState_Collapsed)
212
internal override
ExpandCollapseState
ExpandCollapseState
218
return
ExpandCollapseState
.ExpandCollapseState_LeafNode;
222
?
ExpandCollapseState
.ExpandCollapseState_Expanded
223
:
ExpandCollapseState
.ExpandCollapseState_Collapsed;
System\Windows\Forms\Controls\TreeView\TreeView.cs (4)
2153
oldValue: (VARIANT)(int)
ExpandCollapseState
.ExpandCollapseState_Expanded,
2154
newValue: (VARIANT)(int)
ExpandCollapseState
.ExpandCollapseState_Collapsed);
2176
oldValue: (VARIANT)(int)
ExpandCollapseState
.ExpandCollapseState_Collapsed,
2177
newValue: (VARIANT)(int)
ExpandCollapseState
.ExpandCollapseState_Expanded);
System.Windows.Forms.Interop.Tests (10)
AccessibleObjectTests.cs (10)
275
AssertSuccess(Test_IExpandCollapseProviderCollapse(o,
ExpandCollapseState
.ExpandCollapseState_Collapsed));
282
AssertSuccess(Test_IExpandCollapseProviderExpand(o,
ExpandCollapseState
.ExpandCollapseState_Collapsed));
283
AssertSuccess(Test_IExpandCollapseProviderCollapse(o,
ExpandCollapseState
.ExpandCollapseState_Collapsed));
290
AssertSuccess(Test_IExpandCollapseProviderCollapse(o,
ExpandCollapseState
.ExpandCollapseState_Collapsed));
297
AssertSuccess(Test_IExpandCollapseProviderCollapse(o,
ExpandCollapseState
.ExpandCollapseState_Collapsed));
298
AssertSuccess(Test_IExpandCollapseProviderCollapse(o,
ExpandCollapseState
.ExpandCollapseState_Collapsed));
305
AssertSuccess(Test_IExpandCollapseProviderGetExpandCollapseState(o,
ExpandCollapseState
.ExpandCollapseState_Collapsed));
920
ExpandCollapseState
expected);
925
ExpandCollapseState
expected);
930
ExpandCollapseState
expected);
System.Windows.Forms.Primitives (11)
Windows.Win32.IExpandCollapseProvider.g.cs (8)
115
/// <inheritdoc cref="get_ExpandCollapseState(winmdroot.UI.Accessibility.
ExpandCollapseState
*)"/>
116
internal unsafe winmdroot.Foundation.HRESULT get_ExpandCollapseState(out winmdroot.UI.Accessibility.
ExpandCollapseState
pRetVal)
118
fixed (winmdroot.UI.Accessibility.
ExpandCollapseState
* pRetValLocal = &pRetVal)
128
private static winmdroot.Foundation.HRESULT get_ExpandCollapseState(IExpandCollapseProvider* pThis, winmdroot.UI.Accessibility.
ExpandCollapseState
* pRetVal)
149
public unsafe winmdroot.Foundation.HRESULT get_ExpandCollapseState(winmdroot.UI.Accessibility.
ExpandCollapseState
* pRetVal)
151
return ((delegate *unmanaged [Stdcall]<IExpandCollapseProvider*,winmdroot.UI.Accessibility.
ExpandCollapseState
* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IExpandCollapseProvider*)Unsafe.AsPointer(ref this), pRetVal);
185
internal delegate *unmanaged [Stdcall]<IExpandCollapseProvider*,winmdroot.UI.Accessibility.
ExpandCollapseState
* ,winmdroot.Foundation.HRESULT> get_ExpandCollapseState_6;
220
unsafe winmdroot.Foundation.HRESULT get_ExpandCollapseState(winmdroot.UI.Accessibility.
ExpandCollapseState
* pRetVal);
Windows.Win32.UI_Accessibility_IExpandCollapseProvider_Extensions.g.cs (3)
23
/// <inheritdoc cref="winmdroot.UI.Accessibility.IExpandCollapseProvider.Interface.get_ExpandCollapseState(winmdroot.UI.Accessibility.
ExpandCollapseState
*)"/>
24
internal static unsafe winmdroot.Foundation.HRESULT get_ExpandCollapseState(this winmdroot.UI.Accessibility.IExpandCollapseProvider.Interface @this, out winmdroot.UI.Accessibility.
ExpandCollapseState
pRetVal)
26
fixed (winmdroot.UI.Accessibility.
ExpandCollapseState
* pRetValLocal = &pRetVal)
System.Windows.Forms.Tests (46)
System\Windows\Forms\AccessibleObjects\DateTimePicker.DateTimePickerAccessibleObjectTests.cs (27)
121
[InlineData((int)
ExpandCollapseState
.ExpandCollapseState_Expanded)]
122
[InlineData((int)
ExpandCollapseState
.ExpandCollapseState_Collapsed)]
127
var
expected = (
ExpandCollapseState
)expandCollapseState;
131
ExpandCollapseState
actual = accessibleObject.ExpandCollapseState;
145
Assert.Equal(
ExpandCollapseState
.ExpandCollapseState_Collapsed, accessibleObject.ExpandCollapseState);
149
Assert.Equal(
ExpandCollapseState
.ExpandCollapseState_Collapsed, accessibleObject.ExpandCollapseState);
161
Assert.Equal(
ExpandCollapseState
.ExpandCollapseState_Collapsed, accessibleObject.ExpandCollapseState);
163
dateTimePicker.TestAccessor().Dynamic._expandCollapseState =
ExpandCollapseState
.ExpandCollapseState_Expanded;
165
Assert.Equal(
ExpandCollapseState
.ExpandCollapseState_Expanded, accessibleObject.ExpandCollapseState);
169
Assert.Equal(
ExpandCollapseState
.ExpandCollapseState_Expanded, accessibleObject.ExpandCollapseState);
182
Assert.Equal(
ExpandCollapseState
.ExpandCollapseState_Collapsed, accessibleObject.ExpandCollapseState);
184
dateTimePicker.TestAccessor().Dynamic._expandCollapseState =
ExpandCollapseState
.ExpandCollapseState_Expanded;
186
Assert.Equal(
ExpandCollapseState
.ExpandCollapseState_Expanded, accessibleObject.ExpandCollapseState);
190
Assert.Equal(
ExpandCollapseState
.ExpandCollapseState_Expanded, accessibleObject.ExpandCollapseState);
203
Assert.Equal(
ExpandCollapseState
.ExpandCollapseState_Collapsed, accessibleObject.ExpandCollapseState);
207
Assert.Equal(
ExpandCollapseState
.ExpandCollapseState_Collapsed, accessibleObject.ExpandCollapseState);
220
Assert.Equal(
ExpandCollapseState
.ExpandCollapseState_Collapsed, accessibleObject.ExpandCollapseState);
224
Assert.Equal(
ExpandCollapseState
.ExpandCollapseState_Expanded, accessibleObject.ExpandCollapseState);
236
Assert.Equal(
ExpandCollapseState
.ExpandCollapseState_Collapsed, accessibleObject.ExpandCollapseState);
242
Assert.Equal(
ExpandCollapseState
.ExpandCollapseState_Expanded, accessibleObject.ExpandCollapseState);
246
Assert.Equal(
ExpandCollapseState
.ExpandCollapseState_Collapsed, accessibleObject.ExpandCollapseState);
324
[InlineData(true, (int)
ExpandCollapseState
.ExpandCollapseState_Collapsed)]
325
[InlineData(false, (int)
ExpandCollapseState
.ExpandCollapseState_Expanded)]
333
Assert.Equal(
ExpandCollapseState
.ExpandCollapseState_Collapsed, accessibleObject.ExpandCollapseState);
339
Assert.Equal(
ExpandCollapseState
.ExpandCollapseState_Expanded, accessibleObject.ExpandCollapseState);
344
Assert.Equal((
ExpandCollapseState
)expected, accessibleObject.ExpandCollapseState);
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (7)
731
Assert.Equal(
ExpandCollapseState
.ExpandCollapseState_Expanded, group1.AccessibilityObject.ExpandCollapseState);
732
Assert.Equal(
ExpandCollapseState
.ExpandCollapseState_Collapsed, group2.AccessibilityObject.ExpandCollapseState);
733
Assert.Equal(
ExpandCollapseState
.ExpandCollapseState_Expanded, listView.DefaultGroup.AccessibilityObject.ExpandCollapseState);
766
Assert.Equal(
ExpandCollapseState
.ExpandCollapseState_Collapsed, listViewGroup.AccessibilityObject.ExpandCollapseState);
772
Assert.Equal(
ExpandCollapseState
.ExpandCollapseState_Collapsed, listViewGroup.AccessibilityObject.ExpandCollapseState);
777
Assert.Equal(
ExpandCollapseState
.ExpandCollapseState_Expanded, listViewGroup.AccessibilityObject.ExpandCollapseState);
783
Assert.Equal(
ExpandCollapseState
.ExpandCollapseState_Expanded, listViewGroup.AccessibilityObject.ExpandCollapseState);
System\Windows\Forms\AccessibleObjects\ToolStripDropDownItemAccessibleObjectTests.cs (3)
59
[InlineData(false, ((int)
ExpandCollapseState
.ExpandCollapseState_Collapsed))]
60
[InlineData(true, ((int)
ExpandCollapseState
.ExpandCollapseState_Expanded))]
68
Assert.Equal((
ExpandCollapseState
)expected, accessibleObject.ExpandCollapseState);
System\Windows\Forms\AccessibleObjects\ToolStripSplitButton.ToolStripSplitButtonExAccessibleObjectTests.cs (1)
46
Assert.Equal(
ExpandCollapseState
.ExpandCollapseState_Collapsed, accessibleObject.ExpandCollapseState);
System\Windows\Forms\AccessibleObjects\TreeNode.TreeNodeAccessibleObjectTests.cs (4)
409
Assert.Equal(
ExpandCollapseState
.ExpandCollapseState_LeafNode, node.AccessibilityObject.ExpandCollapseState);
427
ExpandCollapseState
expected = isExpanded
428
?
ExpandCollapseState
.ExpandCollapseState_Expanded
429
:
ExpandCollapseState
.ExpandCollapseState_Collapsed;
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObjectTests.cs (4)
57
ExpandCollapseState
expandCollapseState = propertyDescriptorGridEntryAccessibleObject.ExpandCollapseState;
58
Assert.Equal(
ExpandCollapseState
.ExpandCollapseState_Collapsed, expandCollapseState);
82
Assert.Equal(
ExpandCollapseState
.ExpandCollapseState_Collapsed, selectedGridEntryAccessibleObject.ExpandCollapseState);
85
Assert.Equal(
ExpandCollapseState
.ExpandCollapseState_Expanded, selectedGridEntryAccessibleObject.ExpandCollapseState);