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 end of this Element. The text to be inserted is specified as well as the font that should override the font found in the style of the character run's enclosing paragraph.

Signature
C#
C#
 public virtual CharacterRun InsertTextAfter(System.String text, Font props)
{signature}{signature:
}
Signature
vb.net
vb.net
Public Overridable Function InsertTextAfter(ByVal text As String, ByVal props As Font) As CharacterRun
{signature}
{parameters}
{param:text}A {{String}} representing the text to insert.{param}
{param:props}A [Font|Font] object representing the formatting that should override the font found in the style of the character run's enclosing paragraph.{param}
{returns}The {{CharacterRun}} containing the inserted text.{returns}
{example}{code:csharp|title=C#}
Parameters
Param
text
text

A String representing the text to insert.

Param
props
props

A Font object representing the formatting that should override the font found in the style of the character run's enclosing paragraph.

Returns

The CharacterRun containing the inserted text.

Example
Code Block
csharp
csharp
titleC#

CharacterRun charRun = e.InsertTextAfter("Here is some text.", fnt);
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}

Dim charRun As CharacterRun = e.InsertTextAfter("Here is some text.", fnt)
{code} {example}