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
Wiki Markup
{description}
{excerpt}Creates and returns a [CharacterRun|CharacterRun] at the beginning 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 InsertTextBefore(System.String text, Font props)
{signature}{signature:vb.net}
Public Overridable Function InsertTextBefore(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 font 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.InsertTextBefore("Here is some text.", fnt);{code}
{code:vb.net|title=vb.net}
Dim charRun As CharacterRun = e.InsertTextBefore("Here is some text.", fnt){code}

{example}