Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
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#
Wiki Markup
{description}
{excerpt}Creates and returns a [CharacterRun|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.{excerpt}
{signature: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
Parameters

...

A String representing the text to insert.

...

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.

{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#}
CharacterRun charRun = e.InsertTextAfter("Here is some text.", fnt);
{code}
{code:vb.net
|title=vb.net
}
Dim charRun As CharacterRun = e.InsertTextAfter("Here is some text.", fnt){code}

{example}
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle