Example #1
0
 internal EnumFORMATETC(BclComTypes.IEnumFORMATETC bclEnum)
 {
     if (null == bclEnum)
     {
         throw new ArgumentNullException("System.Runtime.InteropServices.ComTypes.IEnumFORMATETC");
     }
     this.oleEnum = bclEnum as OleInterop.IEnumFORMATETC;
     this.bclEnum = bclEnum;
 }
Example #2
0
 internal EnumFORMATETC(OleInterop.IEnumFORMATETC oleEnum)
 {
     if (null == oleEnum)
     {
         throw new ArgumentNullException("Microsoft.VisualStudio.OLE.Interop.IEnumFORMATETC");
     }
     this.oleEnum = oleEnum;
     this.bclEnum = oleEnum as BclComTypes.IEnumFORMATETC;
 }
Example #3
0
 //////////////////////////////////////////////////////////////
 // Clone
 void OleInterop.IEnumFORMATETC.Clone(out OleInterop.IEnumFORMATETC ppEnum)
 {
     ppEnum = null;
     if (null != oleEnum)
     {
         oleEnum.Clone(out ppEnum);
     }
     else
     {
         BclComTypes.IEnumFORMATETC bclCloned;
         bclEnum.Clone(out bclCloned);
         ppEnum = bclCloned as OleInterop.IEnumFORMATETC;
         if (null == ppEnum)
         {
             ppEnum = (OleInterop.IEnumFORMATETC)(new EnumFORMATETC(bclCloned));
         }
     }
 }
Example #4
0
        int OleInterop.IDataObject.EnumFormatEtc(uint dwDirection, out OleInterop.IEnumFORMATETC ppenumFormatEtc)
        {
            if (null != oleData)
            {
                return(oleData.EnumFormatEtc(dwDirection, out ppenumFormatEtc));
            }

            BclComTypes.IEnumFORMATETC bclEnum = bclData.EnumFormatEtc((BclComTypes.DATADIR)dwDirection);
            if (null == bclEnum)
            {
                ppenumFormatEtc = null;
            }
            else
            {
                ppenumFormatEtc = bclEnum as OleInterop.IEnumFORMATETC;
                if (null == ppenumFormatEtc)
                {
                    ppenumFormatEtc = (OleInterop.IEnumFORMATETC)(new EnumFORMATETC(bclEnum));
                }
            }
            return(NativeMethods.S_OK);
        }
Example #5
0
 internal EnumFORMATETC(BclComTypes.IEnumFORMATETC bclEnum)
 {
     if (null == bclEnum)
         throw new ArgumentNullException("System.Runtime.InteropServices.ComTypes.IEnumFORMATETC");
     this.oleEnum = bclEnum as OleInterop.IEnumFORMATETC;
     this.bclEnum = bclEnum;
 }
Example #6
0
 internal EnumFORMATETC(OleInterop.IEnumFORMATETC oleEnum)
 {
     if (null == oleEnum)
         throw new ArgumentNullException("Microsoft.VisualStudio.OLE.Interop.IEnumFORMATETC");
     this.oleEnum = oleEnum;
     this.bclEnum = oleEnum as BclComTypes.IEnumFORMATETC;
 }