public Replace ( int offset, int count, string value ) : int | ||
offset | int | |
count | int | |
value | string | |
return | int |
textEditorData.Replace("hello", "hi");
int startOffset = 0; int endOffset = textEditorData.Length; textEditorData.Replace(startOffset, endOffset, "new text");This example replaces all text in the text editor with the string "new text". Package library: Mono.TextEditor.
public Replace ( int offset, int count, string value ) : int | ||
offset | int | |
count | int | |
value | string | |
return | int |