Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Description

Excerpt

Creates and returns a CharacterRun at the beginning of this Element. The text to be inserted is specified as well as whether this should be a new character run or part of the existing one.

Signature
C#
C#
 public virtual CharacterRun InsertTextBefore(System.String text, boolean newRun)
Signature
vb.net
vb.net
Public Overridable Function InsertTextBefore(ByVal text As String, ByVal newRun As Boolean) As CharacterRun
Parameters
Param
text
text

A String representing the text to insert.

Param
newRun
newRun

A boolean representing if this should have default formatting and become its own character run (true) or if it should assume the formatting of the first character in this Element, becoming a part of that first character run.

Returns

The CharacterRun containing the inserted text.

Example
Code Block
csharp
csharp
titleC#
CharacterRun charRun = e.InsertTextBefore("Here is some text.", true);
Code Block
vb.net
vb.net
titlevb.net
Dim charRun As CharacterRun = e.InsertTextBefore("Here is some text.", True)