File: Serialization\RCW\IXpsOMImageResourceCollection.cs
Web Access
Project: src\src\Microsoft.DotNet.Wpf\src\ReachFramework\ReachFramework.csproj (ReachFramework)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
 
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Security;
 
namespace System.Windows.Xps.Serialization.RCW
{
    /// <summary>
    /// RCW for xpsobjectmodel.idl found in Windows SDK
    /// This is generated code with minor manual edits. 
    /// i.  Generate TLB
    ///      MIDL /TLB xpsobjectmodel.tlb xpsobjectmodel.IDL //xpsobjectmodel.IDL found in Windows SDK
    /// ii. Generate RCW in a DLL
    ///      TLBIMP xpsobjectmodel.tlb // Generates xpsobjectmodel.dll
    /// iii.Decompile the DLL and copy out the RCW by hand.
    ///      ILDASM xpsobjectmodel.dll
    /// </summary>
    
    [Guid("7A4A1A71-9CDE-4B71-B33F-62DE843EABFE"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    [ComImport]
    internal interface IXpsOMImageResourceCollection
    {
        [MethodImpl(MethodImplOptions.InternalCall)]
        uint GetCount();
 
        [MethodImpl(MethodImplOptions.InternalCall)]
        [return: MarshalAs(UnmanagedType.Interface)]
        IXpsOMImageResource GetAt([In] uint index);
 
        [MethodImpl(MethodImplOptions.InternalCall)]
        void InsertAt([In] uint index, [MarshalAs(UnmanagedType.Interface)] [In] IXpsOMImageResource @object);
 
        [MethodImpl(MethodImplOptions.InternalCall)]
        void RemoveAt([In] uint index);
 
        [MethodImpl(MethodImplOptions.InternalCall)]
        void SetAt([In] uint index, [MarshalAs(UnmanagedType.Interface)] [In] IXpsOMImageResource @object);
 
        [MethodImpl(MethodImplOptions.InternalCall)]
        void Append([MarshalAs(UnmanagedType.Interface)] [In] IXpsOMImageResource @object);
 
        [MethodImpl(MethodImplOptions.InternalCall)]
        [return: MarshalAs(UnmanagedType.Interface)]
        IXpsOMImageResource GetByPartName([MarshalAs(UnmanagedType.Interface)] [In] IOpcPartUri partName);
    }
}