Message-ID: <1852007230.8817.1711662985641.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_8816_1030984118.1711662985641" ------=_Part_8816_1030984118.1711662985641 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html Element.InsertTextBefore(String, Boolean)

Element.InsertTextBefore(String, Boolean)

Des= cription

=20

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 exist= ing one.

=20
C#
=20
 public virtual CharacterRun InsertTextBefore(System.String text, boolean n=
ewRun)
=20
=20
vb.net
=20
Public Overridable Function InsertTextBefore(ByVal text As String, ByVal ne=
wRun As Boolean) As CharacterRun
=20
=20

Parameters=20

text
A=20 String representing the text to insert.=20
newRun
A=20 boolean representing if this should have default formatting an= d 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 char= acter run.=20

Returns

Th= e=20 CharacterRun containing the inserted text.=20

Examples

= =20
C#
=20
CharacterRun charRun =3D e.InsertTextBefore("Here is some text.",=
 true);
=20
=20
vb.net
=20
Dim charRun As CharacterRun =3D e.InsertTextBefore("Here is some text.=
", True)
=20
------=_Part_8816_1030984118.1711662985641--