MS\Internal\AutomationProxies\Accessible.cs (38)
161internal static Accessible CreateNativeFromEvent(IntPtr hwnd, int idObject, int idChild)
277internal static Accessible Wrap(IAccessible acc)
283internal static Accessible Wrap(IAccessible acc, int idChild)
306internal Accessible FirstChild
314internal Accessible LastChild
318return _idChild == NativeMethods.CHILD_SELF ? GetChildAt(_acc, null, Accessible.GetChildCount(_acc) - 1) : null;
322internal Accessible NextSibling(Accessible parent)
340Accessible rval = null;
341if (_accessibleChildrenIndex + 1 < Accessible.GetChildCount(parent._acc))
349internal Accessible PreviousSibling(Accessible parent)
367Accessible rval = null;
376internal Accessible Parent
415internal int AccessibleChildrenIndex(Accessible parent)
442if (Accessible.HasState(state, AccessibleState.Invisible) && !Accessible.HasState(state, AccessibleState.Offscreen))
567internal static Accessible GetFullAccessibleChildByIndex(Accessible accParent, int index)
570object[] accChildren = Accessible.GetAccessibleChildren(accParent.IAccessible, out childCount);
578return Accessible.Wrap(accChild);
583return Accessible.Wrap(accParent.IAccessible, idChild);
614internal Accessible [] GetSelection()
635Accessible [] children = null;
638children = new Accessible[1];
643children = new Accessible[1];
649children = new Accessible[objs.Length];
660internal Accessible GetFocus()
749internal Accessible HitTest(int x, int y)
768Accessible rval;
853internal static bool Compare(Accessible acc1, Accessible acc2)
894internal static int AccessibleObjectFromWindow(IntPtr hwnd, int idObject, ref Accessible acc)
911acc = Accessible.Wrap(accObject);
976private static Accessible GetChildAt(IAccessible parent, object [] children, int index)
997Accessible nav = AccessibleFromObject(children[index], parent);
1089private static Accessible AccessibleFromObject(object o, IAccessible parent)
1448object[] rawChildren = Accessible.GetAccessibleChildren(accParent, out childCount);
MS\Internal\AutomationProxies\MSAANativeProvider.cs (20)
55protected MsaaNativeProvider(Accessible acc, IntPtr hwnd, MsaaNativeProvider parent, MsaaNativeProvider knownRoot, RootStatus isRoot)
81private static MsaaNativeProvider Wrap(Accessible acc, IntPtr hwnd, MsaaNativeProvider parent, MsaaNativeProvider knownRoot, RootStatus isRoot)
94Accessible scan = acc.Parent;
97if (Accessible.Compare(scan, parent._acc))
113Accessible ancestor = (Accessible)actualParentChain[i];
124internal MsaaNativeProvider Wrap(Accessible acc)
176Accessible acc = Accessible.CreateNativeFromEvent(hwnd, idObject, idChild);
255Accessible accFocused = _acc.GetFocus();
576Accessible[] accessibles = _acc.GetSelection();
739Accessible siblingAcc;
765Accessible siblingAcc;
788Accessible childAcc;
810Accessible childAcc;
1027private Accessible GetParent()
1038Accessible parentAccessible = _acc.Parent;
1115_isRoot = Accessible.Compare(_acc, KnownRoot._acc) || _acc.Role == AccessibleRole.Window ? RootStatus.Root : RootStatus.NotRoot;
1163Accessible childAcc = _acc.HitTest(x, y);
1323private Accessible _acc; // the IAccessible we are representing. use Accessible to access.
MS\Internal\AutomationProxies\WindowsButton.cs (12)
36internal WindowsButton (IntPtr hwnd, ProxyFragment parent, ButtonType type, int style, Accessible acc)
323Accessible accRadioButton = null;
327Accessible.AccessibleObjectFromWindow(hwndRadioButton, NativeMethods.OBJID_CLIENT, ref accRadioButton) != NativeMethods.S_OK ||
401Accessible accParent = null;
402if (Accessible.AccessibleObjectFromWindow(hwndParent, NativeMethods.OBJID_CLIENT, ref accParent) != NativeMethods.S_OK || accParent == null)
634if (Accessible.HasState(state, AccessibleState.Checked))
638else if (Accessible.HasState(state, AccessibleState.Mixed))
687Accessible acc = null;
688if (Accessible.AccessibleObjectFromWindow(hwnd, NativeMethods.OBJID_CLIENT, ref acc) == NativeMethods.S_OK &&
727Accessible acc = null;
728if (Accessible.AccessibleObjectFromWindow(hwnd, NativeMethods.OBJID_CLIENT, ref acc) == NativeMethods.S_OK &&
752private Accessible _acc; // Accessible is used for WinForms Buttons.
MS\Internal\AutomationProxies\WindowsStatusBar.cs (10)
29internal WindowsStatusBar(IntPtr hwnd, ProxyFragment parent, int item, Accessible acc)
95Accessible accChild = null;
102accChild = Accessible.GetFullAccessibleChildByIndex(_acc, index);
303Accessible accChild = _acc.FirstChild;
395private Accessible _acc; // Accessible is used for WinForms controls.
423internal WindowsStatusBarPane (IntPtr hwnd, ProxyFragment parent, int item, Accessible acc)
567Accessible acc = null;
568if (Accessible.AccessibleObjectFromWindow(hwnd, NativeMethods.OBJID_CLIENT, ref acc) != NativeMethods.S_OK || acc == null)
578acc = Accessible.GetFullAccessibleChildByIndex(acc, item);
623private Accessible _acc; // Accessible is used for WinForms controls.