Microsoft.VisualStudio.Project.FileDocumentManager.OpenWithSpecific C# (CSharp) Method

OpenWithSpecific() public method

Open a file with a specific editor
public OpenWithSpecific ( uint editorFlags, System.Guid &editorType, string physicalView, System.Guid &logicalView, IntPtr docDataExisting, IVsWindowFrame &windowFrame, WindowFrameShowAction windowFrameAction ) : int
editorFlags uint Specifies actions to take when opening a specific editor. Possible editor flags are defined in the enumeration Microsoft.VisualStudio.Shell.Interop.__VSOSPEFLAGS
editorType System.Guid Unique identifier of the editor type
physicalView string Name of the physical view. If null, the environment calls MapLogicalView on the editor factory to determine the physical view that corresponds to the logical view. In this case, null does not specify the primary view, but rather indicates that you do not know which view corresponds to the logical view
logicalView System.Guid In MultiView case determines view to be activated by IVsMultiViewDocumentView. For a list of logical view GUIDS, see constants starting with LOGVIEWID_ defined in NativeMethods class
docDataExisting System.IntPtr IntPtr to the IUnknown interface of the existing document data object
windowFrame IVsWindowFrame A reference to the window frame that is mapped to the file
windowFrameAction WindowFrameShowAction Determine the UI action on the document window
return int
        public override int OpenWithSpecific(uint editorFlags, ref Guid editorType, string physicalView, ref Guid logicalView, IntPtr docDataExisting, out IVsWindowFrame windowFrame, WindowFrameShowAction windowFrameAction)
        {
            windowFrame = null;
            bool newFile = false;
            bool openWith = false;
            return this.Open(newFile, openWith, editorFlags, ref editorType, physicalView, ref logicalView, docDataExisting, out windowFrame, windowFrameAction);
        }