共用方式為


IVsCodeWindowManager.AddAdornments 方法

將裝飾,如下拉式橫條圖中,加入至程式碼] 視窗中。

命名空間:  Microsoft.VisualStudio.TextManager.Interop
組件:  Microsoft.VisualStudio.TextManager.Interop (在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

語法

'宣告
Function AddAdornments As Integer
int AddAdornments()
int AddAdornments()
abstract AddAdornments : unit -> int
function AddAdornments() : int

傳回值

類型:Int32
如果此方法將會成功,則會傳回S_OK。如果失敗,它就會傳回錯誤碼。

備註

COM 簽章

從 textmgr.idl:

HRESULT IVsCodeWindowManager::AddAdornments();

程式碼] 視窗會呼叫這個方法,可以用來將裝飾如下拉式橫條圖或按鈕列加入至程式碼] 視窗。

.NET Framework 安全性

請參閱

參考

IVsCodeWindowManager 介面

Microsoft.VisualStudio.TextManager.Interop 命名空間