Beispiel #1
0
        BclComTypes.IEnumFORMATETC BclComTypes.IDataObject.EnumFormatEtc(BclComTypes.DATADIR direction)
        {
            if (bclData != null)
            {
                return(bclData.EnumFormatEtc(direction));
            }

            OleInterop.IEnumFORMATETC oleEnum;
            NativeMethods.ThrowOnFailure(oleData.EnumFormatEtc((uint)direction, out oleEnum));
            if (null == oleEnum)
            {
                return(null);
            }
            BclComTypes.IEnumFORMATETC bclEnum = oleEnum as BclComTypes.IEnumFORMATETC;
            if (null == bclEnum)
            {
                bclEnum = (BclComTypes.IEnumFORMATETC)(new EnumFORMATETC(oleEnum));
            }
            return(bclEnum);
        }
 public IEnumFORMATETC EnumFormatEtc(DATADIR direction)
 {
     return DataObject.EnumFormatEtc(direction);
 }
Beispiel #3
0
 public IEnumFORMATETC EnumFormatEtc(DATADIR direction)
 {
     return(DataObject.EnumFormatEtc(direction));
 }