Collection of custom variables. It serves two purposes, first, plugins use it to share values, second, server control use this collection to access client properties remotely.
For a list of all members of this type, see Variables Members.
System.Object
Aspose.Editor.Variables
[Visual Basic]
Public Class Variables
[C#]public class Variables
Example
Iterates over all document variables.
[C#]
Document doc = new Document(MyPath + "Welcome.xml");
foreach (DictionaryEntry entry in doc.Variables)
Console.WriteLine("Variable Name:{0}, Value:{1}", entry.Key, entry.Value);
//Let's even add one variable.
doc.Variables.Add("MyVariable", "MyValue");
doc.Save(MyPath + "ExDocument.Variables Out.xml");
[Visual Basic]
Dim doc As New Document(MyPath & "Welcome.xml")
For Each entry As DictionaryEntry In doc.Variables
Console.WriteLine("Variable Name:{0}, Value:{1}", entry.Key, entry.Value)
Next entry
'Let's even add one variable.
doc.Variables.Add("MyVariable", "MyValue")
doc.Save(MyPath & "ExDocument.Variables Out.xml")Requirements
Namespace: Aspose.Editor
Assembly: Aspose.Editor.Desktop (in Aspose.Editor.Desktop.dll)
See Also
Variables Members | Aspose.Editor Namespace