IVsCodeWindow::GetEditorCaption Method (READONLYSTATUS, String^)
Visual Studio 2015
Returns the editor caption to which editors can append custom text.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
int GetEditorCaption(
READONLYSTATUS dwReadOnly,
[OutAttribute] String^% pbstrEditorCaption
)
Parameters
- dwReadOnly
-
Type:
Microsoft.VisualStudio.TextManager.Interop::READONLYSTATUS
[in] Gets the read and write status of the text buffer. For a list of dwReadOnly values, see READONLYSTATUS
- pbstrEditorCaption
-
Type:
System::String^
[out] Pointer to a BSTR that contains the caption text.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
This method determines the read-only status by checking with the associated text buffer.
From textmgr.idl:
HRESULT IVsCodeWindow::GetEditorCaption(
[in] READONLYSTATUS dwReadOnly,
[out] BSTR *pbstrEditorCaption
);
Show: