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}Returns the document variable specified by name.{excerpt}
{signature:C#}
 public System.String GetVariable(System.String name)
{signature}{signature:vb.net}
Public Function GetVariable(ByVal name As String) As String
{signature}
{parameters}
{param:name}The name of the variable.{param}
{returns}The document variable specified by name.  If the variable does not exist, [GetVariable|Document.GetVariable(String)] returns null.{returns}
{example}{code:csharp|title=C#}
string docVariable = doc.GetVariable("var");{code}
{code:vb.net|title=vb.net}
Dim docVariable As String = doc.GetVariable("var"){code}

{example}