Document.ReplaceText(String, String, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Microsoft Internal Use Only.
bool ReplaceText(std::wstring const & FindText, std::wstring const & ReplaceText, int Flags = 0);
[System.Runtime.InteropServices.DispId(21)]
[System.Runtime.InteropServices.TypeLibFunc(64)]
public bool ReplaceText (string FindText, string ReplaceText, int Flags = 0);
[<System.Runtime.InteropServices.DispId(21)>]
[<System.Runtime.InteropServices.TypeLibFunc(64)>]
abstract member ReplaceText : string * string * int -> bool
Public Function ReplaceText (FindText As String, ReplaceText As String, Optional Flags As Integer = 0) As Boolean
Parameters
- FindText
- String
The text to find.
- ReplaceText
- String
The replacement text.
- Flags
- Int32
Flags from vsFindOptions.
Returns
true
if the text was replaced, otherwise false
.
- Attributes