Sha256: ea4a827f9c7bca5aebf5e225ea830c011fe3c13fb603268f5b58515e54078883
Contents?: true
Size: 1.12 KB
Versions: 8
Compression:
Stored size: 1.12 KB
Contents
#include "Stdafx.h" extern "C" { __declspec(dllexport) void Selection_Release(SelectionInformationPtr selectionInfo) { delete selectionInfo; } __declspec(dllexport) SelectionInformationPtr Selection_Information(ElementInformationPtr element, char* errorInfo, const int errorInfoLength) { try { return new SelectionInformation(ElementFrom(element)->As<SelectionPattern^>(SelectionPattern::Pattern)->Current); } catch(Exception^ e) { StringHelper::CopyToUnmanagedString(e->Message, errorInfo, errorInfoLength); return NULL; } } __declspec(dllexport) int Selection_Selections(ElementInformationPtr element, ElementInformation** selections, char* errorInfo, const int errorInfoLength) { try { auto selectedElements = Element::From(ElementFrom(element)->As<SelectionPattern^>(SelectionPattern::Pattern)->Current.GetSelection()); *selections = ElementInformation::From(selectedElements); return selectedElements->Length; } catch(Exception^ e) { StringHelper::CopyToUnmanagedString(e->Message, errorInfo, errorInfoLength); return 0; } } }
Version data entries
8 entries across 8 versions & 1 rubygems