IVsViewRangeClient.AdjustViewRange Method

Definition

Adjust the view range as specified.

public:
 int AdjustViewRange(Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ pView, Microsoft::VisualStudio::TextManager::Interop::TextViewAction action, int iLine, int iCount);
public:
 int AdjustViewRange(Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ pView, Microsoft::VisualStudio::TextManager::Interop::TextViewAction action, int iLine, int iCount);
int AdjustViewRange(Microsoft::VisualStudio::TextManager::Interop::IVsTextView const & pView, Microsoft::VisualStudio::TextManager::Interop::TextViewAction action, int iLine, int iCount);
public int AdjustViewRange (Microsoft.VisualStudio.TextManager.Interop.IVsTextView pView, Microsoft.VisualStudio.TextManager.Interop.TextViewAction action, int iLine, int iCount);
abstract member AdjustViewRange : Microsoft.VisualStudio.TextManager.Interop.IVsTextView * Microsoft.VisualStudio.TextManager.Interop.TextViewAction * int * int -> int
Public Function AdjustViewRange (pView As IVsTextView, action As TextViewAction, iLine As Integer, iCount As Integer) As Integer

Parameters

pView
IVsTextView

[in] The text view.

action
TextViewAction

[in] The text view action.

iLine
Int32

[in] The line number of the range.

iCount
Int32

[in] The character count of the range.

Returns

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  
);  

Applies to