public string GetString(FormatId id, NativeStringType type) { var f = DataObjectUtils.GetFormatEtc(id); STGMEDIUM s = default; try { DataObject.GetData(ref f, out s); return(s.GetString(type)); } finally { s.Dispose(); } }
public FORMATETC GetCanonicalFormatEtc(string format) { var f = DataObjectUtils.GetFormatEtc(format); return(GetCanonicalFormatEtc(ref f)); }
public bool GetDataPresent(string format, bool autoConvert) { var f = DataObjectUtils.GetFormatEtc(format); return(GetDataPresent(ref f)); }
public bool GetDataPresent(int format) { var f = DataObjectUtils.GetFormatEtc(format); return(GetDataPresent(ref f)); }