System\Windows\Forms\Accessibility\AccessibleObject.cs (54)
97private static readonly AccessibleObject s_parentFlag = new();
111/// Specifies the <see cref="IEnumVARIANT"/> used by this <see cref="AccessibleObject"/>.
290public virtual AccessibleObject? Parent =>
317return type.Equals(typeof(AccessibleObject).TypeHandle)
318|| type.GetModuleHandle().Equals(typeof(AccessibleObject).TypeHandle.GetModuleHandle());
377public virtual AccessibleObject? GetChild(int index) => null;
379internal virtual int GetChildIndex(AccessibleObject? child) => InvalidIndex;
417internal virtual bool GetSysChild(AccessibleNavigation navdir, out AccessibleObject? accessibleObject)
426public virtual AccessibleObject? GetFocused()
434AccessibleObject? child = GetChild(index);
494public virtual AccessibleObject? GetSelected()
502AccessibleObject? child = GetChild(index);
537public virtual AccessibleObject? HitTest(int x, int y)
545AccessibleObject? child = GetChild(index);
592string message = string.Format(SR.AccessibleObjectRuntimeIdNotSupported, nameof(AccessibleObject), nameof(RuntimeId));
869internal virtual void SetParent(AccessibleObject? parent)
877internal virtual void SetDetachableChild(AccessibleObject? child)
1168*ppAccessible = (UIA.IAccessible*)Marshal.GetComInterfaceForObject<AccessibleObject, IAccessible>(this);
1587AccessibleObject? child = GetAccessibleChild(varChild);
1661AccessibleObject? obj = HitTest(xLeft, yTop);
1708AccessibleObject? child = GetAccessibleChild(varChild);
1750AccessibleObject? newObject = Navigate((AccessibleNavigation)navDir);
1759AccessibleObject? child = GetAccessibleChild(varStart);
1767if (SysNavigate((AccessibleNavigation)navDir, varStart, out AccessibleObject? accessibleObject))
1801AccessibleObject? child = GetAccessibleChild(varChild);
1857AccessibleObject? child = GetAccessibleChild(varChild);
1959AccessibleObject? child = GetAccessibleChild(varChild);
1999AccessibleObject? child = GetAccessibleChild(varChild);
2016private AccessibleObject? GetAccessibleChild(object childID)
2034private AccessibleObject? GetAccessibleChild(VARIANT childID)
2052private AccessibleObject? GetFocusedObject() => IsClientObject ? GetFocused() : null;
2090AccessibleObject? child = GetAccessibleChild(varChild);
2136AccessibleObject? child = GetAccessibleChild(varChild);
2175AccessibleObject? child = GetAccessibleChild(varChild);
2214AccessibleObject? child = GetAccessibleChild(varChild);
2256AccessibleObject? accessibleObject = Parent;
2304AccessibleObject? child = GetAccessibleChild(varChild);
2338AccessibleObject? obj = GetSelected();
2380AccessibleObject? child = GetAccessibleChild(varChild);
2419AccessibleObject? child = GetAccessibleChild(varChild);
2455AccessibleObject? child = GetAccessibleChild(varChild);
2495AccessibleObject? child = GetAccessibleChild(varChild);
2548AccessibleObject? parent = Parent;
2573AccessibleObject? parent = Parent;
2595public virtual AccessibleObject? Navigate(AccessibleNavigation navdir)
2633if (SysNavigate(navdir, (VARIANT)(int)PInvoke.CHILDID_SELF, out AccessibleObject? accessibleObject))
2656private VARIANT AsChildIdVariant(AccessibleObject? obj)
2680private static IDispatch* GetIDispatch(AccessibleObject? obj)
2780/// This is basically just a wrapper for <see cref="GetSysChild(AccessibleNavigation, out AccessibleObject?)"/>
2782/// <see cref="GetSysChild(AccessibleNavigation, out AccessibleObject?)"/>.
2787private bool SysNavigate(AccessibleNavigation direction, VARIANT childID, out AccessibleObject? accessibleObject)
2829private AccessibleObject? TryGetAccessibleObject(VARIANT variant)
2861private AccessibleObject? TryGetAccessibleObject(IDispatch* dispatch)
2880private AccessibleObject? TryGetAccessibleObject(UIA.IAccessible* accessible)