返回编辑器中追加自定义文本的编辑说明。
命名空间: 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
参数
dwReadOnly
类型:Microsoft.VisualStudio.TextManager.Interop.READONLYSTATUS[in] 获取文本缓冲区的读写状态。 有关 dwReadOnly 值列表,请参见 READONLYSTATUS
pbstrEditorCaption
类型:String%[out] 包含描述文本设置 BSTR 的指针。
返回值
类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
此方法首先检查确定只读状态与关联的文本缓冲区。
COM 签名
从 textmgr.idl:
HRESULT IVsCodeWindow::GetEditorCaption(
[in] READONLYSTATUS dwReadOnly,
[out] BSTR *pbstrEditorCaption
);
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。