NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ICodeSourceFile.ReplaceText

Replaces a section of text in the file with the sepecified text.

[Visual Basic]
Sub ReplaceText( _
   ByVal start As Integer, _
   ByVal count As Integer, _
   ByVal text As String _
)
[C#]
void ReplaceText(
   int start,
   int count,
   string text
);
[C++]
void ReplaceText(
   int start,
   int count,
   String* text
) = 0;
[JScript]
function ReplaceText(
   start : int,
   count : int,
   text : String
);

Parameters

start
The character position to start inserting at.
count
The number of characters to remove from the stream before inserting text.
text
The text to insert into the stream.

Remarks

Note   This method is primarily used by other CodeSense objects. The primary way for users to manipulate the text contained in a source file should be through manipulating the object model, rather than directly editing the file.

See Also

ICodeSourceFile Interface | ICodeSourceFile Members | System.ComponentModel.Design.CodeModel Namespace