public int QueryGetData(ref FORMATETC format) { switch (format.cfFormat) { case CF.TEXT: case CF.UNICODETEXT: return(PlainTextDataObject.QueryGetData(ref format)); default: return(DataObject.QueryGetData(ref format)); } }
public int GetCanonicalFormatEtc(ref FORMATETC formatIn, out FORMATETC formatOut) { switch (formatIn.cfFormat) { case CF.TEXT: case CF.UNICODETEXT: return(PlainTextDataObject.GetCanonicalFormatEtc(ref formatIn, out formatOut)); default: return(DataObject.GetCanonicalFormatEtc(ref formatIn, out formatOut)); } }
public void SetData(ref FORMATETC formatIn, ref STGMEDIUM medium, bool release) { switch (formatIn.cfFormat) { case CF.TEXT: case CF.UNICODETEXT: PlainTextDataObject.SetData(ref formatIn, ref medium, release); break; default: DataObject.SetData(ref formatIn, ref medium, release); break; } }
public void GetDataHere(ref FORMATETC format, ref STGMEDIUM medium) { switch (format.cfFormat) { case CF.TEXT: case CF.UNICODETEXT: PlainTextDataObject.GetDataHere(ref format, ref medium); break; default: DataObject.GetDataHere(ref format, ref medium); break; } }