IVsShortcutManager::CreateItem Method (Int32, IVsTextLines^, String^)

 

Creates a shortcut for the specified text buffer.

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

int CreateItem(
	int iShortcutLine,
	IVsTextLines^ pBuffer,
	String^ pszBufMoniker
)

Parameters

iShortcutLine
Type: System::Int32

[in] The shortcut line index.

pBuffer
Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextLines^

[in] The buffer of text lines.

pszBufMoniker
Type: System::String^

[in] The buffer moniker.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From textmgr.idl:

HRESULT IVsShortcutManager::CreateItem(
   [in]long iShortcutLine,
   [in]IVsTextLines* pBuffer,
   [in]LPCOLESTR pszBufMoniker
);
Return to top
Show: