Edit

Share via


MarkDownFormatter.SetSelection(String, String, Boolean, String) Method

Definition

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)

Applies to