MS\Internal\AutomationProxies\Accessible.cs (38)
168internal static Accessible CreateNativeFromEvent(IntPtr hwnd, int idObject, int idChild)
284internal static Accessible Wrap(IAccessible acc)
290internal static Accessible Wrap(IAccessible acc, int idChild)
313internal Accessible FirstChild
321internal Accessible LastChild
325return _idChild == NativeMethods.CHILD_SELF ? GetChildAt(_acc, null, Accessible.GetChildCount(_acc) - 1) : null;
329internal Accessible NextSibling(Accessible parent)
347Accessible rval = null;
348if (_accessibleChildrenIndex + 1 < Accessible.GetChildCount(parent._acc))
356internal Accessible PreviousSibling(Accessible parent)
374Accessible rval = null;
383internal Accessible Parent
422internal int AccessibleChildrenIndex(Accessible parent)
449if (Accessible.HasState(state, AccessibleState.Invisible) && !Accessible.HasState(state, AccessibleState.Offscreen))
575internal static Accessible GetFullAccessibleChildByIndex(Accessible accParent, int index)
578object[] accChildren = Accessible.GetAccessibleChildren(accParent.IAccessible, out childCount);
586return Accessible.Wrap(accChild);
591return Accessible.Wrap(accParent.IAccessible, idChild);
622internal Accessible [] GetSelection()
644Accessible [] children = null;
647children = new Accessible[1];
652children = new Accessible[1];
658children = new Accessible[objs.Length];
669internal Accessible GetFocus()
758internal Accessible HitTest(int x, int y)
791Accessible rval;
876internal static bool Compare(Accessible acc1, Accessible acc2)
917internal static int AccessibleObjectFromWindow(IntPtr hwnd, int idObject, ref Accessible acc)
934acc = Accessible.Wrap(accObject);
999private static Accessible GetChildAt(IAccessible parent, object [] children, int index)
1020Accessible nav = AccessibleFromObject(children[index], parent);
1112private static Accessible AccessibleFromObject(object o, IAccessible parent)
1500object[] rawChildren = Accessible.GetAccessibleChildren(accParent, out childCount);
MS\Internal\AutomationProxies\MSAANativeProvider.cs (20)
63protected MsaaNativeProvider(Accessible acc, IntPtr hwnd, MsaaNativeProvider parent, MsaaNativeProvider knownRoot, RootStatus isRoot)
89private static MsaaNativeProvider Wrap(Accessible acc, IntPtr hwnd, MsaaNativeProvider parent, MsaaNativeProvider knownRoot, RootStatus isRoot)
102Accessible scan = acc.Parent;
105if (Accessible.Compare(scan, parent._acc))
121Accessible ancestor = (Accessible)actualParentChain[i];
132internal MsaaNativeProvider Wrap(Accessible acc)
184Accessible acc = Accessible.CreateNativeFromEvent(hwnd, idObject, idChild);
263Accessible accFocused = _acc.GetFocus();
596Accessible[] accessibles = _acc.GetSelection();
759Accessible siblingAcc;
785Accessible siblingAcc;
808Accessible childAcc;
830Accessible childAcc;
1054private Accessible GetParent()
1065Accessible parentAccessible = _acc.Parent;
1142_isRoot = Accessible.Compare(_acc, KnownRoot._acc) || _acc.Role == AccessibleRole.Window ? RootStatus.Root : RootStatus.NotRoot;
1190Accessible childAcc = _acc.HitTest(x, y);
1350private Accessible _acc; // the IAccessible we are representing. use Accessible to access.
MS\Internal\AutomationProxies\WindowsButton.cs (12)
43internal WindowsButton (IntPtr hwnd, ProxyFragment parent, ButtonType type, int style, Accessible acc)
334Accessible accRadioButton = null;
338Accessible.AccessibleObjectFromWindow(hwndRadioButton, NativeMethods.OBJID_CLIENT, ref accRadioButton) != NativeMethods.S_OK ||
412Accessible accParent = null;
413if (Accessible.AccessibleObjectFromWindow(hwndParent, NativeMethods.OBJID_CLIENT, ref accParent) != NativeMethods.S_OK || accParent == null)
645if (Accessible.HasState(state, AccessibleState.Checked))
649else if (Accessible.HasState(state, AccessibleState.Mixed))
698Accessible acc = null;
699if (Accessible.AccessibleObjectFromWindow(hwnd, NativeMethods.OBJID_CLIENT, ref acc) == NativeMethods.S_OK &&
738Accessible acc = null;
739if (Accessible.AccessibleObjectFromWindow(hwnd, NativeMethods.OBJID_CLIENT, ref acc) == NativeMethods.S_OK &&
763private Accessible _acc; // Accessible is used for Microsoft Buttons.
MS\Internal\AutomationProxies\WindowsStatusBar.cs (10)
36internal WindowsStatusBar(IntPtr hwnd, ProxyFragment parent, int item, Accessible acc)
106Accessible accChild = null;
113accChild = Accessible.GetFullAccessibleChildByIndex(_acc, index);
314Accessible accChild = _acc.FirstChild;
406private Accessible _acc; // Accessible is used for Microsoft controls.
434internal WindowsStatusBarPane (IntPtr hwnd, ProxyFragment parent, int item, Accessible acc)
578Accessible acc = null;
579if (Accessible.AccessibleObjectFromWindow(hwnd, NativeMethods.OBJID_CLIENT, ref acc) != NativeMethods.S_OK || acc == null)
589acc = Accessible.GetFullAccessibleChildByIndex(acc, item);
634private Accessible _acc; // Accessible is used for Microsoft controls.