VsTextImageClass.Replace Method
Notification of a text span replacement.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
‘선언
Public Overridable Function Replace ( _
dwFlags As UInteger, _
pts As TextSpan(), _
cch As Integer, _
pchText As String, _
<OutAttribute> ptsChanged As TextSpan() _
) As Integer
‘사용 방법
Dim instance As VsTextImageClass
Dim dwFlags As UInteger
Dim pts As TextSpan()
Dim cch As Integer
Dim pchText As String
Dim ptsChanged As TextSpan()
Dim returnValue As Integer
returnValue = instance.Replace(dwFlags, _
pts, cch, pchText, ptsChanged)
public virtual int Replace(
uint dwFlags,
TextSpan[] pts,
int cch,
string pchText,
TextSpan[] ptsChanged
)
public:
virtual int Replace(
[InAttribute] unsigned int dwFlags,
[InAttribute] array<TextSpan>^ pts,
[InAttribute] int cch,
[InAttribute] String^ pchText,
[OutAttribute] array<TextSpan>^ ptsChanged
)
abstract Replace :
dwFlags:uint32 *
pts:TextSpan[] *
cch:int *
pchText:string *
ptsChanged:TextSpan[] byref -> int
override Replace :
dwFlags:uint32 *
pts:TextSpan[] *
cch:int *
pchText:string *
ptsChanged:TextSpan[] byref -> int
public function Replace(
dwFlags : uint,
pts : TextSpan[],
cch : int,
pchText : String,
ptsChanged : TextSpan[]
) : int
Parameters
- dwFlags
Type: System.UInt32
[in] Double word containing flags. For future use. Set to zero.
- pts
Type: array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[]
[in] Pointer to a TextSpan structure.
- cch
Type: System.Int32
[in] Count of characters in pchText.
- pchText
Type: System.String
[in] Pointer to a text string.
- ptsChanged
Type: array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[]
[out] Specifies the modified TextSpan structure.
Return Value
Type: System.Int32
Implements
IVsTextImage.Replace(UInt32, array<TextSpan[], Int32, String, array<TextSpan[])
.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.