public Viewport2(Manager manager, FrameInfoProvider frameInfo, IntPtr window) : base(IntPtr.Zero) { IntPtr temp; manager.CreateViewport(frameInfo, window, Utilities.GetGuidFromType(typeof(Viewport2)), out temp); NativePointer = temp; }
/// <summary> /// The factory method that is used to create an instance of secondary content (such as a panning indicator) inside a viewport. /// </summary> /// <typeparam name="T">The type of the COM object to create.</typeparam> /// <param name="frameInfo">The frame info provider for the secondary content. This should match the frame info provider used to create the viewport.</param> /// <param name="contentClassId">Class identifier (CLSID) of the secondary content. This ID specifies the content type.</param> /// <returns></returns> public T CreateContent <T>(FrameInfoProvider frameInfo, Guid contentClassId) where T : ComObject { IntPtr temp; CreateContent(frameInfo, contentClassId, Utilities.GetGuidFromType(typeof(T)), out temp); return(ComObject.FromPointer <T>(temp)); }
public Viewport(Manager manager, FrameInfoProvider frameInfo, IntPtr window) : base(IntPtr.Zero) { IntPtr temp; manager.CreateViewport(frameInfo, window, Utilities.GetGuidFromType(typeof(Viewport)), out temp); NativePointer = temp; }