Condividi tramite


VsTextViewClass.RestrictViewRange(Int32, Int32, IVsViewRangeClient) Method

Definition

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

public:
 virtual int RestrictViewRange(int iMinLine, int iMaxLine, Microsoft::VisualStudio::TextManager::Interop::IVsViewRangeClient ^ pClient) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::RestrictViewRange;
public:
 virtual int RestrictViewRange(int iMinLine, int iMaxLine, Microsoft::VisualStudio::TextManager::Interop::IVsViewRangeClient ^ pClient);
public:
 virtual int RestrictViewRange(int iMinLine, int iMaxLine, Microsoft::VisualStudio::TextManager::Interop::IVsViewRangeClient ^ pClient) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::RestrictViewRange;
 virtual int RestrictViewRange(int iMinLine, int iMaxLine, Microsoft::VisualStudio::TextManager::Interop::IVsViewRangeClient const & pClient);
public virtual int RestrictViewRange (int iMinLine, int iMaxLine, Microsoft.VisualStudio.TextManager.Interop.IVsViewRangeClient pClient);
abstract member RestrictViewRange : int * int * Microsoft.VisualStudio.TextManager.Interop.IVsViewRangeClient -> int
override this.RestrictViewRange : int * int * Microsoft.VisualStudio.TextManager.Interop.IVsViewRangeClient -> int
Public Overridable Function RestrictViewRange (iMinLine As Integer, iMaxLine As Integer, pClient As IVsViewRangeClient) As Integer

Parameters

iMinLine
Int32

[in] The minimum line number.

iMaxLine
Int32

[in] The maximum line number.

pClient
IVsViewRangeClient

[in] The view range client.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Applies to