Exemple #1
0
        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));
            }
        }
Exemple #2
0
        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));
            }
        }
Exemple #3
0
        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;
            }
        }
Exemple #4
0
        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;
            }
        }