Sha256: 9657c8b01dfe00f3b0508894324f7f32a26fcc5f5649f5e3aea0d1f17847e484

Contents?: true

Size: 1.1 KB

Versions: 6

Compression:

Stored size: 1.1 KB

Contents

#pragma once
#include "AutomationControl.h"
#include "AutomationFinder.h"
#include "StringHelper.h"

using namespace System::Windows::Automation;

ref class AutomatedTable : AutomationControl
{
public:
	AutomatedTable(const HWND windowHandle);
	AutomatedTable(const FindInformation& finderInformation);
	bool Exists(const int whichItemIndex, const int whichColumnIndex);
	String^ ValueAt(const int whichItemIndex, const int whichColumnIndex);
	void Select(const int dataItemIndex);
	void Select(const char* dataItemValue);
	bool IsSelected(const int dataItemIndex);
	int GetHeaders(const char* headers[]);
	int GetValues(const char* values[]);

	property int RowCount {
		int get();
	}

private:
	AutomationFinder^ _finder;
	bool Exists(Condition^ condition);
	AutomationElement^ DataItemAt(const int whichItemIndex, const int whichItemRow);
	void Select(AutomationElement^ dataItem);

	SelectionItemPattern^ AsSelectionItem(AutomationElement^ automationElement) {
		return dynamic_cast<SelectionItemPattern^>(automationElement->GetCurrentPattern(SelectionItemPattern::Pattern));
	}
};

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rautomation-0.10.0 ext/UiaDll/UiaDll/AutomatedTable.h
rautomation-0.9.4 ext/UiaDll/UiaDll/AutomatedTable.h
rautomation-0.9.3 ext/UiaDll/UiaDll/AutomatedTable.h
rautomation-0.9.2 ext/UiaDll/UiaDll/AutomatedTable.h
rautomation-0.9.1 ext/UiaDll/UiaDll/AutomatedTable.h
rautomation-0.9.0 ext/UiaDll/UiaDll/AutomatedTable.h