Partager via


IVsShortcutManager.CreateItem(Int32, IVsTextLines, String) Method

Definition

Creates a shortcut for the specified text buffer.

public:
 int CreateItem(int iShortcutLine, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pBuffer, System::String ^ pszBufMoniker);
public:
 int CreateItem(int iShortcutLine, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pBuffer, Platform::String ^ pszBufMoniker);
int CreateItem(int iShortcutLine, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines const & pBuffer, std::wstring const & pszBufMoniker);
public int CreateItem (int iShortcutLine, Microsoft.VisualStudio.TextManager.Interop.IVsTextLines pBuffer, string pszBufMoniker);
abstract member CreateItem : int * Microsoft.VisualStudio.TextManager.Interop.IVsTextLines * string -> int
Public Function CreateItem (iShortcutLine As Integer, pBuffer As IVsTextLines, pszBufMoniker As String) As Integer

Parameters

iShortcutLine
Int32

[in] The shortcut line index.

pBuffer
IVsTextLines

[in] The buffer of text lines.

pszBufMoniker
String

[in] The buffer moniker.

Returns

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

Remarks

COM Signature

From textmgr.idl:

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

Applies to