IVsContainedLanguageHost.EnsureSpanVisible Method
Ensures that span in the primary buffer is visible.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Syntax
‘선언
Function EnsureSpanVisible ( _
tsPrimary As TextSpan _
) As Integer
int EnsureSpanVisible(
TextSpan tsPrimary
)
int EnsureSpanVisible(
[InAttribute] TextSpan tsPrimary
)
abstract EnsureSpanVisible :
tsPrimary:TextSpan -> int
function EnsureSpanVisible(
tsPrimary : TextSpan
) : int
Parameters
- tsPrimary
Type: Microsoft.VisualStudio.TextManager.Interop.TextSpan
[in] A TextSpan object describing the span of text to make visible.
Return Value
Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.
Remarks
COM Signature
From singlefileeditor.idl:
HRESULT EnsureSpanVisible(
[in] TextSpan tsPrimary
);
If the contained language host is in a view that does not currently show the text span, the host must switch to the view where the span is visible. For example, if the HTML editor is in Design or Code view, the editor should switch to the HTML (source or markup) view.
This method is typically called by the contained language in response to a user double-clicking on an item in the Task List.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.