VsTextViewClass.ReplaceTextOnLine Method
Replaces a line of text.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'Декларация
Public Overridable Function ReplaceTextOnLine ( _
iLine As Integer, _
iStartCol As Integer, _
iCharsToReplace As Integer, _
pszNewText As String, _
iNewLen As Integer _
) As Integer
'Применение
Dim instance As VsTextViewClass
Dim iLine As Integer
Dim iStartCol As Integer
Dim iCharsToReplace As Integer
Dim pszNewText As String
Dim iNewLen As Integer
Dim returnValue As Integer
returnValue = instance.ReplaceTextOnLine(iLine, _
iStartCol, iCharsToReplace, pszNewText, _
iNewLen)
public virtual int ReplaceTextOnLine(
int iLine,
int iStartCol,
int iCharsToReplace,
string pszNewText,
int iNewLen
)
public:
virtual int ReplaceTextOnLine(
[InAttribute] int iLine,
[InAttribute] int iStartCol,
[InAttribute] int iCharsToReplace,
[InAttribute] String^ pszNewText,
[InAttribute] int iNewLen
)
abstract ReplaceTextOnLine :
iLine:int *
iStartCol:int *
iCharsToReplace:int *
pszNewText:string *
iNewLen:int -> int
override ReplaceTextOnLine :
iLine:int *
iStartCol:int *
iCharsToReplace:int *
pszNewText:string *
iNewLen:int -> int
public function ReplaceTextOnLine(
iLine : int,
iStartCol : int,
iCharsToReplace : int,
pszNewText : String,
iNewLen : int
) : int
Parameters
- iLine
Type: System.Int32
[in] Integer containing the line.
- iStartCol
Type: System.Int32
[in] Integer containing the starting column.
- iCharsToReplace
Type: System.Int32
[in] Integer containing the characters to replace.
- pszNewText
Type: System.String
[in] Pointer the new text being passed in.
- iNewLen
Type: System.Int32
[in] Length of the buffer (number of characters) being passed in.
Return Value
Type: System.Int32
Implements
IVsTextView.ReplaceTextOnLine(Int32, Int32, Int32, String, Int32)
.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.