Sha256: 8ecd3aa64babd2478af6851e40f7f8c89870194008f49f6557eda6e181803d3a

Contents?: true

Size: 592 Bytes

Versions: 10

Compression:

Stored size: 592 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 = Find(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

10 entries across 10 versions & 1 rubygems

Version Path
uia-0.1.3.1 ext/UiaDll/UiaDll/TextMethods.cpp
uia-0.1.3 ext/UiaDll/UiaDll/TextMethods.cpp
uia-0.1.2.3 ext/UiaDll/UiaDll/TextMethods.cpp
uia-0.1.2.2 ext/UiaDll/UiaDll/TextMethods.cpp
uia-0.1.2.1 ext/UiaDll/UiaDll/TextMethods.cpp
uia-0.1.2 ext/UiaDll/UiaDll/TextMethods.cpp
uia-0.1.1 ext/UiaDll/UiaDll/TextMethods.cpp
uia-0.1 ext/UiaDll/UiaDll/TextMethods.cpp
uia-0.0.9 ext/UiaDll/UiaDll/TextMethods.cpp
uia-0.0.8 ext/UiaDll/UiaDll/TextMethods.cpp