C# Класс Microsoft.VisualStudio.Project.FileDocumentManager

Наследование: DocumentManager
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
FileDocumentManager ( FileNode node ) : System
Open ( System.Guid &logicalView, IntPtr docDataExisting, IVsWindowFrame &windowFrame, WindowFrameShowAction windowFrameAction ) : int

Open a file using the standard editor

Open ( bool newFile, bool openWith, System.Guid logicalView, IVsWindowFrame &frame, WindowFrameShowAction windowFrameAction ) : int

Open a file in a document window with a std editor

Open ( bool newFile, bool openWith, System.Guid &logicalView, IntPtr docDataExisting, IVsWindowFrame &windowFrame, WindowFrameShowAction windowFrameAction ) : int

Open a file in a document window

Open ( bool newFile, bool openWith, WindowFrameShowAction windowFrameAction ) : int

Open a file in a document window with a std editor

OpenWithSpecific ( uint editorFlags, System.Guid &editorType, string physicalView, System.Guid &logicalView, IntPtr docDataExisting, IVsWindowFrame &windowFrame, WindowFrameShowAction windowFrameAction ) : int

Open a file with a specific editor

Защищенные методы

Метод Описание
Open ( bool newFile, bool openWith, uint editorFlags, System.Guid &editorType, string physicalView, System.Guid &logicalView, IntPtr docDataExisting, IVsWindowFrame &windowFrame, WindowFrameShowAction windowFrameAction ) : int

Описание методов

FileDocumentManager() публичный Метод

public FileDocumentManager ( FileNode node ) : System
node FileNode
Результат System

Open() публичный Метод

Open a file using the standard editor
public Open ( System.Guid &logicalView, IntPtr docDataExisting, IVsWindowFrame &windowFrame, WindowFrameShowAction windowFrameAction ) : int
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
Результат int

Open() публичный Метод

Open a file in a document window with a std editor
public Open ( bool newFile, bool openWith, System.Guid logicalView, IVsWindowFrame &frame, WindowFrameShowAction windowFrameAction ) : int
newFile bool Open the file as a new file
openWith bool Use a dialog box to determine which editor to use
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
frame IVsWindowFrame A reference to the window frame that is mapped to the file
windowFrameAction WindowFrameShowAction Determine the UI action on the document window
Результат int

Open() публичный Метод

Open a file in a document window
public Open ( bool newFile, bool openWith, System.Guid &logicalView, IntPtr docDataExisting, IVsWindowFrame &windowFrame, WindowFrameShowAction windowFrameAction ) : int
newFile bool Open the file as a new file
openWith bool Use a dialog box to determine which editor to use
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
Результат int

Open() публичный Метод

Open a file in a document window with a std editor
public Open ( bool newFile, bool openWith, WindowFrameShowAction windowFrameAction ) : int
newFile bool Open the file as a new file
openWith bool Use a dialog box to determine which editor to use
windowFrameAction WindowFrameShowAction Determine the UI action on the document window
Результат int

Open() защищенный Метод

protected Open ( bool newFile, bool openWith, uint editorFlags, System.Guid &editorType, string physicalView, System.Guid &logicalView, IntPtr docDataExisting, IVsWindowFrame &windowFrame, WindowFrameShowAction windowFrameAction ) : int
newFile bool
openWith bool
editorFlags uint
editorType System.Guid
physicalView string
logicalView System.Guid
docDataExisting System.IntPtr
windowFrame IVsWindowFrame
windowFrameAction WindowFrameShowAction
Результат int

OpenWithSpecific() публичный Метод

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
Результат int