QueryAction() public method

public QueryAction ( ) : Action
return Action
Ejemplo n.º 1
0
		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;
				}
			}
		}
Ejemplo n.º 2
0
		public ToggleSource (Element element)
		{
			accessible = element.Accessible;
			action = accessible.QueryAction ();
		}