MarkDownFormatter.SetSelection(String, String, Boolean, String) 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.
Applies formatting to Selected Text, or Removes formatting if already applied.
public virtual void SetSelection(string start, string end, bool reversible = true, string contents = default);
abstract member SetSelection : string * string * bool * string -> unit
override this.SetSelection : string * string * bool * string -> unit
Public Overridable Sub SetSelection (start As String, end As String, Optional reversible As Boolean = true, Optional contents As String = Nothing)
Parameters
- start
- String
Formatting in front of Text
- end
- String
Formatting at end of Text
- reversible
- Boolean
Is the Text reversible?
- contents
- String
Text to insert between Start and End (Overwrites Current Text)