2 writes to SystemIAccessible
System.Windows.Forms (2)
System\Windows\Forms\Accessibility\AccessibleObject.cs (2)
134
SystemIAccessible
= accessible;
2739
SystemIAccessible
= new(accessible, takeOwnership: true, trackDisposal: false);
81 references to SystemIAccessible
System.Windows.Forms (81)
System\Windows\Forms\Accessibility\AccessibleObject.cs (44)
143
public virtual Rectangle Bounds =>
SystemIAccessible
.TryGetLocation(CHILDID_SELF);
163
internal virtual BSTR GetDefaultActionInternal() =>
SystemIAccessible
.TryGetDefaultAction(CHILDID_SELF);
183
internal virtual BSTR GetDescriptionInternal() =>
SystemIAccessible
.TryGetDescription(CHILDID_SELF);
205
internal virtual BSTR GetHelpInternal() =>
SystemIAccessible
.TryGetHelp(CHILDID_SELF);
225
internal virtual BSTR GetKeyboardShortcutInternal(VARIANT childID) =>
SystemIAccessible
.TryGetKeyboardShortcut(childID);
253
internal virtual BSTR GetNameInternal() =>
SystemIAccessible
.TryGetName(CHILDID_SELF);
268
internal virtual void SetNameInternal(BSTR value) =>
SystemIAccessible
.TrySetName(CHILDID_SELF, value);
297
using var accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
324
public virtual AccessibleRole Role =>
SystemIAccessible
.TryGetRole(CHILDID_SELF);
329
public virtual AccessibleStates State =>
SystemIAccessible
.TryGetState(CHILDID_SELF);
355
internal virtual BSTR GetValueInternal() =>
SystemIAccessible
is null ? new(string.Empty) :
SystemIAccessible
.TryGetValue(CHILDID_SELF);
370
internal virtual void SetValueInternal(BSTR value) =>
SystemIAccessible
.TrySetValue(CHILDID_SELF, value);
449
using var accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
470
(int topic, BSTR file) =
SystemIAccessible
.TryGetHelpTopic(CHILDID_SELF);
488
internal virtual (int topic, BSTR helpFile) GetHelpTopicInternal() =>
SystemIAccessible
.TryGetHelpTopic(CHILDID_SELF);
517
using var accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
555
using var accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
1158
*ppAccessible =
SystemIAccessible
is { } accessible
1594
using var accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
1668
using var accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
1720
using var accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
1772
using var accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
1808
using var accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
1823
using var accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
1874
using var accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
1918
using ComScope<UIA.IAccessible> accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
1968
*pszDefaultAction =
SystemIAccessible
.TryGetDefaultAction(varChild);
2008
*pszDescription =
SystemIAccessible
.TryGetDescription(varChild);
2099
*pszHelp =
SystemIAccessible
.TryGetHelp(varChild);
2150
(*pidTopic, *pszHelpFile) =
SystemIAccessible
.TryGetHelpTopic(varChild);
2184
*pszKeyboardShortcut =
SystemIAccessible
.TryGetKeyboardShortcut(varChild);
2223
BSTR systemName =
SystemIAccessible
.TryGetName(varChild);
2311
int count =
SystemIAccessible
.TryGetChildCount();
2314
*pvarRole = count == 0 ? VARIANT.Empty : (VARIANT)(int)
SystemIAccessible
.TryGetRole(varChild);
2345
using var accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
2388
*pvarState =
SystemIAccessible
?.TryGetState(varChild) is { } state ? (VARIANT)(int)state : VARIANT.Empty;
2428
*pszValue =
SystemIAccessible
.TryGetValue(varChild);
2468
SystemIAccessible
.TrySetName(varChild, szName);
2508
SystemIAccessible
.TrySetValue(varChild, szValue);
2626
using var accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
2648
using var accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
2682
if (obj is not null && obj._isSystemWrapper && obj.
SystemIAccessible
is { } accessible)
2894
if (
SystemIAccessible
is { } systemAccessible
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildDropDownButtonUiaProvider.cs (6)
44
public override unsafe Rectangle Bounds =>
SystemIAccessible
.TryGetLocation(GetChildId());
50
internal override BSTR GetDefaultActionInternal() =>
SystemIAccessible
.TryGetDefaultAction(GetChildId());
88
internal override BSTR GetHelpInternal() =>
SystemIAccessible
.TryGetHelp(GetChildId());
92
internal override BSTR GetKeyboardShortcutInternal(VARIANT childID) =>
SystemIAccessible
.TryGetKeyboardShortcut(childID);
100
public override AccessibleRole Role =>
SystemIAccessible
.TryGetRole(GetChildId());
111
public override AccessibleStates State =>
SystemIAccessible
.TryGetState(GetChildId());
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildListUiaProvider.cs (1)
43
using var accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (4)
62
_owningComboBox.ChildListAccessibleObject.
SystemIAccessible
.TryGetDefaultAction(GetChildId());
127
internal override BSTR GetHelpInternal() => _owningComboBox.ChildListAccessibleObject.
SystemIAccessible
.TryGetHelp(GetChildId());
146
=> _owningComboBox.ChildListAccessibleObject.
SystemIAccessible
.TryGetRole(GetChildId());
160
AccessibleStates state = _owningComboBox.ChildListAccessibleObject.
SystemIAccessible
.TryGetState(GetChildId());
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (5)
86
_owningAccessibleObject.
SystemIAccessible
.TryGetDefaultAction(GetChildId());
90
internal override BSTR GetHelpInternal() => _owningAccessibleObject.
SystemIAccessible
.TryGetHelp(GetChildId());
96
public override AccessibleRole Role => _owningAccessibleObject.
SystemIAccessible
.TryGetRole(GetChildId());
109
return state |= _owningAccessibleObject.
SystemIAccessible
.TryGetState(GetChildId());
269
=> _owningAccessibleObject.
SystemIAccessible
.TrySelect(flags, GetChildId());
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (2)
91
return state |= _owningListView.AccessibilityObject.
SystemIAccessible
.TryGetState(GetChildId());
291
_owningListView.AccessibilityObject.
SystemIAccessible
.TrySelect(flags, GetChildId());
System\Windows\Forms\Controls\TabControl\TabControl.TabControlAccessibleObject.cs (2)
29
return
SystemIAccessible
.TryGetLocation(CHILDID_SELF);
38
=>
SystemIAccessible
.TryGetState(CHILDID_SELF);
System\Windows\Forms\Controls\TabControl\TabPage.TabAccessibleObject.cs (1)
79
=> OwningTabControl?.AccessibilityObject.
SystemIAccessible
;
System\Windows\Forms\Controls\TabControl\TabPage.TabPageAccessibleObject.cs (1)
19
public override AccessibleStates State =>
SystemIAccessible
.TryGetState(GetChildId());
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarAccessibleObject.cs (2)
33
return
SystemIAccessible
.TryGetLocation(CHILDID_SELF);
51
=>
SystemIAccessible
.TryGetState(CHILDID_SELF);
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarChildAccessibleObject.cs (4)
31
return ParentInternal?.
SystemIAccessible
.TryGetLocation(GetChildId()) ?? Rectangle.Empty;
40
=> ParentInternal is { } parent ? parent.
SystemIAccessible
.TryGetHelp(GetChildId()) : default;
43
=> ParentInternal?.
SystemIAccessible
.TryGetRole(GetChildId()) ?? AccessibleRole.None;
46
=> ParentInternal?.
SystemIAccessible
.TryGetState(GetChildId()) ?? AccessibleStates.None;
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarFirstButtonAccessibleObject.cs (1)
70
ParentInternal?.
SystemIAccessible
.TryDoDefaultAction(GetChildId());
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarLastButtonAccessibleObject.cs (1)
79
ParentInternal?.
SystemIAccessible
.TryDoDefaultAction(GetChildId());
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarChildAccessibleObject.cs (7)
33
return ParentInternal.
SystemIAccessible
.TryGetLocation(GetChildId());
42
ParentInternal.
SystemIAccessible
.TryGetDefaultAction(GetChildId());
47
ParentInternal.
SystemIAccessible
.TryGetDescription(GetChildId());
51
internal override BSTR GetNameInternal() => ParentInternal.
SystemIAccessible
.TryGetName(GetChildId());
54
=> ParentInternal.
SystemIAccessible
.TryGetRole(GetChildId());
57
=> ParentInternal.
SystemIAccessible
.TryGetState(GetChildId());
95
ParentInternal.
SystemIAccessible
.TryDoDefaultAction(GetChildId());