Sha256: 70c96ae61e316f5b74731fb5a9fdecf87284b70593395566dfbc721c54e41b0f

Contents?: true

Size: 1.94 KB

Versions: 3

Compression:

Stored size: 1.94 KB

Contents

#pragma once
using namespace System::Windows;
using namespace System::Windows::Automation;

ref class AutomationFinder
{
public:
	AutomationFinder(AutomationElement^ automationElement);
	AutomationElement^ Find(const FindInformation& findInformation);
	AutomationElementCollection^ Find(...array<Condition^>^ conditions);
	AutomationElementCollection^ Find(const UIAutomation::TreeScope scope, ...array<Condition^>^ conditions);
	AutomationElement^ FindFirst(...array<Condition^>^ conditions);
	AutomationElement^ FindFirst(const UIAutomation::TreeScope scope, ...array<Condition^>^ conditions);
	AutomationElement^ FindAt(const int whichItem, ...array<Condition^>^ conditions);
	AutomationElement^ FindAt(const UIAutomation::TreeScope scope, const int whichItem, ...array<Condition^>^ conditions);

	static property Condition^ IsSelectionItem {
		Condition^ get() {
			return gcnew PropertyCondition(AutomationElement::IsSelectionItemPatternAvailableProperty, true);
		}
	}

	static property Condition^ IsTableItem {
		Condition^ get() {
			return gcnew PropertyCondition(AutomationElement::IsTableItemPatternAvailableProperty, true);
		}
	}

	static property Condition^ IsDataItem {
		Condition^ get() {
			return gcnew PropertyCondition(AutomationElement::ControlTypeProperty, ControlType::DataItem);
		}
	}

	static property Condition^ IsHeaderItem {
		Condition^ get() {
			return gcnew PropertyCondition(AutomationElement::ControlTypeProperty, ControlType::HeaderItem);
		}
	}

	static property Condition^ IsListItem {
		Condition^ get() {
			return gcnew PropertyCondition(AutomationElement::ControlTypeProperty, ControlType::ListItem);
		}
	}

private:
  static UIAutomation::TreeScope Subtree = UIAutomation::TreeScope::Subtree;
  static UIAutomation::TreeScope Children = UIAutomation::TreeScope::Children;
	AutomationElement^ _automationElement;
	Condition^ SomethingOrEverything(...array<Condition^>^ conditions);
};

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rautomation-0.10.0 ext/UiaDll/UiaDll/AutomationFinder.h
rautomation-0.9.4 ext/UiaDll/UiaDll/AutomationFinder.h
rautomation-0.9.3 ext/UiaDll/UiaDll/AutomationFinder.h