MS\Internal\AutomationProxies\Accessible.cs (38)
154internal static Accessible CreateNativeFromEvent(IntPtr hwnd, int idObject, int idChild)
270internal static Accessible Wrap(IAccessible acc)
276internal static Accessible Wrap(IAccessible acc, int idChild)
299internal Accessible FirstChild
307internal Accessible LastChild
311return _idChild == NativeMethods.CHILD_SELF ? GetChildAt(_acc, null, Accessible.GetChildCount(_acc) - 1) : null;
315internal Accessible NextSibling(Accessible parent)
333Accessible rval = null;
334if (_accessibleChildrenIndex + 1 < Accessible.GetChildCount(parent._acc))
342internal Accessible PreviousSibling(Accessible parent)
360Accessible rval = null;
369internal Accessible Parent
405internal int AccessibleChildrenIndex(Accessible parent)
432if (Accessible.HasState(state, AccessibleState.Invisible) && !Accessible.HasState(state, AccessibleState.Offscreen))
549internal static Accessible GetFullAccessibleChildByIndex(Accessible accParent, int index)
552object[] accChildren = Accessible.GetAccessibleChildren(accParent.IAccessible, out childCount);
560return Accessible.Wrap(accChild);
564return Accessible.Wrap(accParent.IAccessible, idChild);
595internal Accessible [] GetSelection()
616Accessible [] children = null;
619children = new Accessible[1];
624children = new Accessible[1];
629children = new Accessible[objs.Length];
640internal Accessible GetFocus()
726internal Accessible HitTest(int x, int y)
745Accessible rval;
828internal static bool Compare(Accessible acc1, Accessible acc2)
866internal static int AccessibleObjectFromWindow(IntPtr hwnd, int idObject, ref Accessible acc)
883acc = Accessible.Wrap(accObject);
948private static Accessible GetChildAt(IAccessible parent, object [] children, int index)
969Accessible nav = AccessibleFromObject(children[index], parent);
1061private static Accessible AccessibleFromObject(object o, IAccessible parent)
1420object[] rawChildren = Accessible.GetAccessibleChildren(accParent, out childCount);
MS\Internal\AutomationProxies\MSAANativeProvider.cs (20)
50protected MsaaNativeProvider(Accessible acc, IntPtr hwnd, MsaaNativeProvider parent, MsaaNativeProvider knownRoot, RootStatus isRoot)
76private static MsaaNativeProvider Wrap(Accessible acc, IntPtr hwnd, MsaaNativeProvider parent, MsaaNativeProvider knownRoot, RootStatus isRoot)
89Accessible scan = acc.Parent;
92if (Accessible.Compare(scan, parent._acc))
108Accessible ancestor = (Accessible)actualParentChain[i];
119internal MsaaNativeProvider Wrap(Accessible acc)
171Accessible acc = Accessible.CreateNativeFromEvent(hwnd, idObject, idChild);
250Accessible accFocused = _acc.GetFocus();
571Accessible[] accessibles = _acc.GetSelection();
734Accessible siblingAcc;
760Accessible siblingAcc;
783Accessible childAcc;
805Accessible childAcc;
1022private Accessible GetParent()
1033Accessible parentAccessible = _acc.Parent;
1108_isRoot = Accessible.Compare(_acc, KnownRoot._acc) || _acc.Role == AccessibleRole.Window ? RootStatus.Root : RootStatus.NotRoot;
1156Accessible childAcc = _acc.HitTest(x, y);
1316private 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;
393private Accessible _acc; // Accessible is used for WinForms controls.
421internal WindowsStatusBarPane (IntPtr hwnd, ProxyFragment parent, int item, Accessible acc)
565Accessible acc = null;
566if (Accessible.AccessibleObjectFromWindow(hwnd, NativeMethods.OBJID_CLIENT, ref acc) != NativeMethods.S_OK || acc == null)
576acc = Accessible.GetFullAccessibleChildByIndex(acc, item);
621private Accessible _acc; // Accessible is used for WinForms controls.