Represents a collection of all document variables in a RadDocument.
Definition
Namespace:Telerik.WinForms.Documents.Model
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class DocumentVariableCollection : IEnumerable
Inheritance: objectDocumentVariableCollection
Implements:
Constructors
Initializes a new instance of the DocumentVariableCollection class.
public DocumentVariableCollection(RadDocument owner, DocumentVariableCollection toCopyFrom)
The associated document.
toCopyFromDocumentVariableCollectionA collection of document variables which will be added to the associated document.
Initializes a new instance of the DocumentVariableCollection class.
public DocumentVariableCollection(RadDocument owner)
The associated document.
Properties
Gets a value indicating whether the ICollection<T> is read-only.
public bool IsReadOnly { get; }
Gets an ICollection<T> containing the keys of the IDictionary<TKey, TValue>.
public ICollection<string> Keys { get; }
Gets or sets the variable with the specified key.
public object this[string key] { get; set; }
The key of the variable.
Property Value:The document variable.
Methods
Removes all items from the ICollection<T>.
public void Clear()
Determines whether the IDictionary<TKey, TValue> contains an element with the specified key.
Removes the element with the specified key from the IDictionary<TKey, TValue>.
Gets the value associated with the specified key.
public bool TryGetValue(string key, out object value)
The key whose value to get.
valueobjectWhen this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.
true if the object that implements IDictionary<TKey, TValue> contains an element with the specified key; otherwise, false.