| File: Serialization\RCW\IXpsOMFontResource.cs | Web Access |
| Project: src\wpf\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. using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.InteropServices.ComTypes; 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("A8C45708-47D9-4AF4-8D20-33B48C9B8485"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [ComImport] internal interface IXpsOMFontResource : IXpsOMResource { [MethodImpl(MethodImplOptions.InternalCall)] [return: MarshalAs(UnmanagedType.Interface)] IStream GetStream(); [MethodImpl(MethodImplOptions.InternalCall)] void SetContent([MarshalAs(UnmanagedType.Interface)] [In] IStream sourceStream, [ComAliasName("System.Windows.Xps.Serialization.RCW.XPS_FONT_EMBEDDING")] [In] XPS_FONT_EMBEDDING embeddingOption, [MarshalAs(UnmanagedType.Interface)] [In] IOpcPartUri partName); [MethodImpl(MethodImplOptions.InternalCall)] [return: ComAliasName("System.Windows.Xps.Serialization.RCW.XPS_FONT_EMBEDDING")] XPS_FONT_EMBEDDING GetEmbeddingOption(); } }