Sha256: 81a6b0c8ad46bc295058178ec3c89f92356d79cbf9c29fc99ba4751c5ee938f0

Contents?: true

Size: 599 Bytes

Versions: 8

Compression:

Stored size: 599 Bytes

Contents

#include "Stdafx.h"

extern "C" {
  __declspec(dllexport) int Text_GetText(ElementInformationPtr element, char* text, const int textLength, char* errorInfo, const int errorInfoLength) {
    try {
      auto theText = ElementFrom(element)->As<TextPattern^>(TextPattern::Pattern)->DocumentRange->GetText(-1);
      if( NULL != text ) {
        StringHelper::CopyToUnmanagedString(theText, text, textLength);
      }

      return theText->Length;
    } catch(Exception^ e) {
      StringHelper::CopyToUnmanagedString(e->Message, errorInfo, errorInfoLength);
      return 0;
    }
  }
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
uia-0.4.1 ext/UiaDll/UiaDll/TextMethods.cpp
uia-0.4 ext/UiaDll/UiaDll/TextMethods.cpp
uia-0.3.3 ext/UiaDll/UiaDll/TextMethods.cpp
uia-0.3.2 ext/UiaDll/UiaDll/TextMethods.cpp
uia-0.3.1 ext/UiaDll/UiaDll/TextMethods.cpp
uia-0.3 ext/UiaDll/UiaDll/TextMethods.cpp
uia-0.2.1 ext/UiaDll/UiaDll/TextMethods.cpp
uia-0.2 ext/UiaDll/UiaDll/TextMethods.cpp