IVsCodeWindow.GetEditorCaption 方法

返回编辑器中追加自定义文本的编辑说明。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

语法

声明
Function GetEditorCaption ( _
    dwReadOnly As READONLYSTATUS, _
    <OutAttribute> ByRef pbstrEditorCaption As String _
) As Integer
int GetEditorCaption(
    READONLYSTATUS dwReadOnly,
    out string pbstrEditorCaption
)
int GetEditorCaption(
    [InAttribute] READONLYSTATUS dwReadOnly, 
    [OutAttribute] String^% pbstrEditorCaption
)
abstract GetEditorCaption : 
        dwReadOnly:READONLYSTATUS * 
        pbstrEditorCaption:string byref -> int
function GetEditorCaption(
    dwReadOnly : READONLYSTATUS, 
    pbstrEditorCaption : String
) : int

参数

  • pbstrEditorCaption
    类型:String%

    [out] 包含描述文本设置 BSTR 的指针。

返回值

类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

此方法首先检查确定只读状态与关联的文本缓冲区。

COM 签名

从 textmgr.idl:

HRESULT IVsCodeWindow::GetEditorCaption(
   [in] READONLYSTATUS dwReadOnly,
   [out] BSTR *pbstrEditorCaption
);

.NET Framework 安全性

请参阅

参考

IVsCodeWindow 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间