IVsProjectTextImageProvider::CloseItemTextImage Method (String^, UInt32, VsTextImage^)
Visual Studio 2015
Closes the text image of a project item.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int CloseItemTextImage( String^ pszMkDocument, unsigned int vsptipDisposition, VsTextImage^ pTextImage )
Parameters
- pszMkDocument
-
Type:
System::String^
[in] Pointer to a string containing the file name and path corresponding to the text image.
- vsptipDisposition
-
Type:
System::UInt32
[in] Integer. A value from the __VSPTIP_DISPOSITION enumeration indicating whether or not the file was modified or whether to just close it.
- pTextImage
-
Type:
Microsoft.VisualStudio.TextManager.Interop::VsTextImage^
[in] Pointer to the IVsTextImage interface of the text image.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
[C++]
HRESULT IVsProjectTextImageProvider::CloseItemTextImage( [in] LPCOLESTR pszMkDocument, [in] VSPTIP_DISPOSITION vsptipDisposition );
Show: