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

Returns the document variable specified by name.

Signature
C#
C#
 public System.String GetVariable(System.String name)
{signature}{signature:
}
Signature
vb.net
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#}
Parameters
Param
name
name

The name of the variable.

Returns

The document variable specified by name. If the variable does not exist, GetVariable returns null.

Example
Code Block
csharp
csharp
titleC#

string docVariable = doc.GetVariable("var");
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}

Dim docVariable As String = doc.GetVariable("var")
{code} {example}