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
'宣告
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
- pView
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextView
[in] The text view.
- action
Type: Microsoft.VisualStudio.TextManager.Interop.TextViewAction
[in] The text view action.
- 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.