2 writes to SystemIAccessible
System.Windows.Forms (2)
System\Windows\Forms\Accessibility\AccessibleObject.cs (2)
135
SystemIAccessible
= accessible;
2740
SystemIAccessible
= new(accessible, takeOwnership: true, trackDisposal: false);
81 references to SystemIAccessible
System.Windows.Forms (81)
System\Windows\Forms\Accessibility\AccessibleObject.cs (44)
144
public virtual Rectangle Bounds =>
SystemIAccessible
.TryGetLocation(CHILDID_SELF);
164
internal virtual BSTR GetDefaultActionInternal() =>
SystemIAccessible
.TryGetDefaultAction(CHILDID_SELF);
184
internal virtual BSTR GetDescriptionInternal() =>
SystemIAccessible
.TryGetDescription(CHILDID_SELF);
206
internal virtual BSTR GetHelpInternal() =>
SystemIAccessible
.TryGetHelp(CHILDID_SELF);
226
internal virtual BSTR GetKeyboardShortcutInternal(VARIANT childID) =>
SystemIAccessible
.TryGetKeyboardShortcut(childID);
254
internal virtual BSTR GetNameInternal() =>
SystemIAccessible
.TryGetName(CHILDID_SELF);
269
internal virtual void SetNameInternal(BSTR value) =>
SystemIAccessible
.TrySetName(CHILDID_SELF, value);
298
using var accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
325
public virtual AccessibleRole Role =>
SystemIAccessible
.TryGetRole(CHILDID_SELF);
330
public virtual AccessibleStates State =>
SystemIAccessible
.TryGetState(CHILDID_SELF);
356
internal virtual BSTR GetValueInternal() =>
SystemIAccessible
is null ? new(string.Empty) :
SystemIAccessible
.TryGetValue(CHILDID_SELF);
371
internal virtual void SetValueInternal(BSTR value) =>
SystemIAccessible
.TrySetValue(CHILDID_SELF, value);
450
using var accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
471
(int topic, BSTR file) =
SystemIAccessible
.TryGetHelpTopic(CHILDID_SELF);
489
internal virtual (int topic, BSTR helpFile) GetHelpTopicInternal() =>
SystemIAccessible
.TryGetHelpTopic(CHILDID_SELF);
518
using var accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
556
using var accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
1159
*ppAccessible =
SystemIAccessible
is { } accessible
1595
using var accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
1669
using var accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
1721
using var accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
1773
using var accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
1809
using var accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
1824
using var accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
1875
using var accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
1919
using ComScope<UIA.IAccessible> accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
1969
*pszDefaultAction =
SystemIAccessible
.TryGetDefaultAction(varChild);
2009
*pszDescription =
SystemIAccessible
.TryGetDescription(varChild);
2100
*pszHelp =
SystemIAccessible
.TryGetHelp(varChild);
2151
(*pidTopic, *pszHelpFile) =
SystemIAccessible
.TryGetHelpTopic(varChild);
2185
*pszKeyboardShortcut =
SystemIAccessible
.TryGetKeyboardShortcut(varChild);
2224
BSTR systemName =
SystemIAccessible
.TryGetName(varChild);
2312
int count =
SystemIAccessible
.TryGetChildCount();
2315
*pvarRole = count == 0 ? VARIANT.Empty : (VARIANT)(int)
SystemIAccessible
.TryGetRole(varChild);
2346
using var accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
2389
*pvarState =
SystemIAccessible
?.TryGetState(varChild) is { } state ? (VARIANT)(int)state : VARIANT.Empty;
2429
*pszValue =
SystemIAccessible
.TryGetValue(varChild);
2469
SystemIAccessible
.TrySetName(varChild, szName);
2509
SystemIAccessible
.TrySetValue(varChild, szValue);
2627
using var accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
2649
using var accessible =
SystemIAccessible
.TryGetIAccessible(out HRESULT result);
2683
if (obj is not null && obj._isSystemWrapper && obj.
SystemIAccessible
is { } accessible)
2895
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());