Compartir a través de


IVsProjectTextImageProvider.OpenItemTextImage Method

Opens a text image for a given file.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaración
Function OpenItemTextImage ( _
    pszMkDocument As String, _
    grfMode As UInteger, _
    <OutAttribute> ByRef ppTextImage As VsTextImage _
) As Integer
'Uso
Dim instance As IVsProjectTextImageProvider
Dim pszMkDocument As String
Dim grfMode As UInteger
Dim ppTextImage As VsTextImage
Dim returnValue As Integer

returnValue = instance.OpenItemTextImage(pszMkDocument, _
    grfMode, ppTextImage)
int OpenItemTextImage(
    string pszMkDocument,
    uint grfMode,
    out VsTextImage ppTextImage
)
int OpenItemTextImage(
    [InAttribute] String^ pszMkDocument, 
    [InAttribute] unsigned int grfMode, 
    [OutAttribute] VsTextImage^% ppTextImage
)
abstract OpenItemTextImage : 
        pszMkDocument:string * 
        grfMode:uint32 * 
        ppTextImage:VsTextImage byref -> int 
function OpenItemTextImage(
    pszMkDocument : String, 
    grfMode : uint, 
    ppTextImage : VsTextImage
) : int

Parameters

  • pszMkDocument
    Type: System.String
    [in] Pointer to a string containing the file name and path.
  • grfMode
    Type: System.UInt32
    [in] Integer. The mode in which to open the image—read only or read/write. A value from the __VSPTIP_MODE enumeration.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

[C++]

HRESULT IVsProjectTextImageProvider::OpenItemTextImage(
   [in] LPCOLESTR pszMkDocument, 
   [in] VSPTIP_MODE grfMode
);

.NET Framework Security

See Also

Reference

IVsProjectTextImageProvider Interface

IVsProjectTextImageProvider Members

Microsoft.VisualStudio.Shell.Interop Namespace