MS\Internal\AutomationProxies\Accessible.cs (38)
158internal static Accessible CreateNativeFromEvent(IntPtr hwnd, int idObject, int idChild)
274internal static Accessible Wrap(IAccessible acc)
280internal static Accessible Wrap(IAccessible acc, int idChild)
303internal Accessible FirstChild
311internal Accessible LastChild
315return _idChild == NativeMethods.CHILD_SELF ? GetChildAt(_acc, null, Accessible.GetChildCount(_acc) - 1) : null;
319internal Accessible NextSibling(Accessible parent)
337Accessible rval = null;
338if (_accessibleChildrenIndex + 1 < Accessible.GetChildCount(parent._acc))
346internal Accessible PreviousSibling(Accessible parent)
364Accessible rval = null;
373internal Accessible Parent
412internal int AccessibleChildrenIndex(Accessible parent)
439if (Accessible.HasState(state, AccessibleState.Invisible) && !Accessible.HasState(state, AccessibleState.Offscreen))
564internal static Accessible GetFullAccessibleChildByIndex(Accessible accParent, int index)
567object[] accChildren = Accessible.GetAccessibleChildren(accParent.IAccessible, out childCount);
575return Accessible.Wrap(accChild);
580return Accessible.Wrap(accParent.IAccessible, idChild);
611internal Accessible [] GetSelection()
632Accessible [] children = null;
635children = new Accessible[1];
640children = new Accessible[1];
646children = new Accessible[objs.Length];
657internal Accessible GetFocus()
746internal Accessible HitTest(int x, int y)
765Accessible rval;
850internal static bool Compare(Accessible acc1, Accessible acc2)
891internal static int AccessibleObjectFromWindow(IntPtr hwnd, int idObject, ref Accessible acc)
908acc = Accessible.Wrap(accObject);
973private static Accessible GetChildAt(IAccessible parent, object [] children, int index)
994Accessible nav = AccessibleFromObject(children[index], parent);
1086private static Accessible AccessibleFromObject(object o, IAccessible parent)
1445object[] rawChildren = Accessible.GetAccessibleChildren(accParent, out childCount);
MS\Internal\AutomationProxies\MSAANativeProvider.cs (20)
53protected MsaaNativeProvider(Accessible acc, IntPtr hwnd, MsaaNativeProvider parent, MsaaNativeProvider knownRoot, RootStatus isRoot)
79private static MsaaNativeProvider Wrap(Accessible acc, IntPtr hwnd, MsaaNativeProvider parent, MsaaNativeProvider knownRoot, RootStatus isRoot)
92Accessible scan = acc.Parent;
95if (Accessible.Compare(scan, parent._acc))
111Accessible ancestor = (Accessible)actualParentChain[i];
122internal MsaaNativeProvider Wrap(Accessible acc)
174Accessible acc = Accessible.CreateNativeFromEvent(hwnd, idObject, idChild);
253Accessible accFocused = _acc.GetFocus();
574Accessible[] accessibles = _acc.GetSelection();
737Accessible siblingAcc;
763Accessible siblingAcc;
786Accessible childAcc;
808Accessible childAcc;
1025private Accessible GetParent()
1036Accessible parentAccessible = _acc.Parent;
1113_isRoot = Accessible.Compare(_acc, KnownRoot._acc) || _acc.Role == AccessibleRole.Window ? RootStatus.Root : RootStatus.NotRoot;
1161Accessible childAcc = _acc.HitTest(x, y);
1321private Accessible _acc; // the IAccessible we are representing. use Accessible to access.
MS\Internal\AutomationProxies\WindowsButton.cs (12)
31internal WindowsButton (IntPtr hwnd, ProxyFragment parent, ButtonType type, int style, Accessible acc)
318Accessible accRadioButton = null;
322Accessible.AccessibleObjectFromWindow(hwndRadioButton, NativeMethods.OBJID_CLIENT, ref accRadioButton) != NativeMethods.S_OK ||
396Accessible accParent = null;
397if (Accessible.AccessibleObjectFromWindow(hwndParent, NativeMethods.OBJID_CLIENT, ref accParent) != NativeMethods.S_OK || accParent == null)
629if (Accessible.HasState(state, AccessibleState.Checked))
633else if (Accessible.HasState(state, AccessibleState.Mixed))
682Accessible acc = null;
683if (Accessible.AccessibleObjectFromWindow(hwnd, NativeMethods.OBJID_CLIENT, ref acc) == NativeMethods.S_OK &&
722Accessible acc = null;
723if (Accessible.AccessibleObjectFromWindow(hwnd, NativeMethods.OBJID_CLIENT, ref acc) == NativeMethods.S_OK &&
747private Accessible _acc; // Accessible is used for WinForms Buttons.
MS\Internal\AutomationProxies\WindowsStatusBar.cs (10)
26internal WindowsStatusBar(IntPtr hwnd, ProxyFragment parent, int item, Accessible acc)
92Accessible accChild = null;
99accChild = Accessible.GetFullAccessibleChildByIndex(_acc, index);
300Accessible accChild = _acc.FirstChild;
392private Accessible _acc; // Accessible is used for WinForms controls.
420internal WindowsStatusBarPane (IntPtr hwnd, ProxyFragment parent, int item, Accessible acc)
564Accessible acc = null;
565if (Accessible.AccessibleObjectFromWindow(hwnd, NativeMethods.OBJID_CLIENT, ref acc) != NativeMethods.S_OK || acc == null)
575acc = Accessible.GetFullAccessibleChildByIndex(acc, item);
620private Accessible _acc; // Accessible is used for WinForms controls.