Returns the document variable specified by name.

 public System.String GetVariable(System.String name)
Public Function GetVariable(ByVal name As String) As String

The name of the variable.

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

string docVariable = doc.GetVariable("var");
Dim docVariable As String = doc.GetVariable("var")