共用方式為


IVsTextView.RestrictViewRange(Int32, Int32, IVsViewRangeClient) Method

Definition

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

public:
 int RestrictViewRange(int iMinLine, int iMaxLine, Microsoft::VisualStudio::TextManager::Interop::IVsViewRangeClient ^ pClient);
public:
 int RestrictViewRange(int iMinLine, int iMaxLine, Microsoft::VisualStudio::TextManager::Interop::IVsViewRangeClient ^ pClient);
int RestrictViewRange(int iMinLine, int iMaxLine, Microsoft::VisualStudio::TextManager::Interop::IVsViewRangeClient const & pClient);
public int RestrictViewRange (int iMinLine, int iMaxLine, Microsoft.VisualStudio.TextManager.Interop.IVsViewRangeClient pClient);
abstract member RestrictViewRange : int * int * Microsoft.VisualStudio.TextManager.Interop.IVsViewRangeClient -> int
Public 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.

Applies to