{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} |