Partager via


IVsViewRangeClient.AdjustViewRange Method

Adjust the view range as specified.

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

Syntax

'Declaration
Function AdjustViewRange ( _
    pView As IVsTextView, _
    action As TextViewAction, _
    iLine As Integer, _
    iCount As Integer _
) As Integer
int AdjustViewRange(
    IVsTextView pView,
    TextViewAction action,
    int iLine,
    int iCount
)
int AdjustViewRange(
    [InAttribute] IVsTextView^ pView, 
    [InAttribute] TextViewAction action, 
    [InAttribute] int iLine, 
    [InAttribute] int iCount
)
abstract AdjustViewRange : 
        pView:IVsTextView * 
        action:TextViewAction * 
        iLine:int * 
        iCount:int -> int
function AdjustViewRange(
    pView : IVsTextView, 
    action : TextViewAction, 
    iLine : int, 
    iCount : int
) : int

Parameters

  • iLine
    Type: System.Int32

    [in] The line number of the range.

  • iCount
    Type: System.Int32

    [in] The character count of the range.

Return Value

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

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsViewRangeClient::AdjustViewRange(
   [in] IVsTextView *pView,
   [in] TextViewAction action,
   [in] long iLine,
   [in] long iCount
);

.NET Framework Security

See Also

Reference

IVsViewRangeClient Interface

Microsoft.VisualStudio.TextManager.Interop Namespace