internal virtual bool SupportsInvoke() { if (accessible.Role == Role.Separator || accessible.Role == Role.CheckBox || accessible.Role == Role.ScrollBar || accessible.Role == Role.SpinButton || accessible.Role == Role.Text || accessible.Role == Role.ToggleButton) { return(false); } Atspi.Action action = accessible.QueryAction(); if (action == null) { return(false); } ActionDescription [] actions = action.Actions; for (int i = 0; i < actions.Length; i++) { if (actions [i].Name == "activate" || actions [i].Name == "invoke" || actions [i].Name == "click" || actions [i].Name == "jump") { return(true); } } return(false); }
public ExpandCollapseSource (Element element) { accessible = (element is DataItemElement ? ((Element)element.FirstChild).Accessible : element.Accessible); action = accessible.QueryAction (); ActionDescription [] actions = action.Actions; for (int i = 0; i < actions.Length; i++) { if (actions [i].Name == "expand or contract" || actions [i].Name == "expand or collapse") { expandOrContractAction = i; break; } } }
public ExpandCollapseSource(Element element) { accessible = (element is DataItemElement ? ((Element)element.FirstChild).Accessible : element.Accessible); action = accessible.QueryAction(); ActionDescription [] actions = action.Actions; for (int i = 0; i < actions.Length; i++) { if (actions [i].Name == "expand or contract" || actions [i].Name == "expand or collapse") { expandOrContractAction = i; break; } } }
public ToggleSource(Element element) { accessible = element.Accessible; action = accessible.QueryAction(); }
public ToggleSource (Element element) { accessible = element.Accessible; action = accessible.QueryAction (); }