Partager via


VsTextViewClass.RestrictViewRange Method

Reduces the view’s range of visible/editable lines to a subset of the buffer’s lines.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Déclaration
Public Overridable Function RestrictViewRange ( _
    iMinLine As Integer, _
    iMaxLine As Integer, _
    pClient As IVsViewRangeClient _
) As Integer
public virtual int RestrictViewRange(
    int iMinLine,
    int iMaxLine,
    IVsViewRangeClient pClient
)
public:
virtual int RestrictViewRange(
    [InAttribute] int iMinLine, 
    [InAttribute] int iMaxLine, 
    [InAttribute] IVsViewRangeClient^ pClient
)
abstract RestrictViewRange : 
        iMinLine:int * 
        iMaxLine:int * 
        pClient:IVsViewRangeClient -> int 
override RestrictViewRange : 
        iMinLine:int * 
        iMaxLine:int * 
        pClient:IVsViewRangeClient -> int 
public function RestrictViewRange(
    iMinLine : int, 
    iMaxLine : int, 
    pClient : IVsViewRangeClient
) : int

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsTextView.RestrictViewRange(Int32, Int32, IVsViewRangeClient)

.NET Framework Security

See Also

Reference

VsTextViewClass Class

Microsoft.VisualStudio.TextManager.Interop Namespace