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

Position.InsertText(String, Boolean)

Descript= ion

=20

Creates and returns a CharacterRun= at the point represented by this Position. The text to be inserted is = specified as well as whether this should be a new character run or part of = the previous one.

=20
C#
=20
 public CharacterRun InsertText(System.String text, boolean newRun)
=20
=20
vb.net
=20
Public Function InsertText(ByVal text As String, ByVal newRun As Boolean) A=
s 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

The=20 CharacterRun containing the inserted text.=20

Examples

=20
C#
=20
CharacterRun charRun =3D pos.InsertText("Here is some text.", tru=
e);
=20
=20
vb.net
=20
Dim charRun As CharacterRun =3D pos.InsertText("Here is some text.&quo=
t;, True)
=20
------=_Part_7932_886696621.1711626728839--