Sha256: a5ad30d486809495e14f3385f178bef8c52419cc89e30c9dafed63d6232e9df4

Contents?: true

Size: 648 Bytes

Versions: 4

Compression:

Stored size: 648 Bytes

Contents

#pragma once

#include "automationcontrol.h"

using namespace System::Windows::Automation;
using namespace System::Windows::Forms;

ref class AutomatedText : public AutomationControl
{
public:
  AutomatedText(const HWND windowHandle) : AutomationControl(windowHandle) {}
  AutomatedText(const FindInformation& finderInformation) : AutomationControl(finderInformation) {}

  property String^ Text {
    String^ get();
    void set(String^ value);
  }

private:
	property TextPattern^ AsTextPattern {
		TextPattern^ get() {
			return dynamic_cast<TextPattern^>(_control->GetCurrentPattern(TextPattern::Pattern));
		}
	}
};

Version data entries

4 entries across 4 versions & 1 rubygems

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