ClassDocumentVariableCollection
Represents a collection of all document variables in a RadDocument.
Definition
Namespace:Telerik.Windows.Documents.Model
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class DocumentVariableCollection : IDictionary<string, object>, ICollection<KeyValuePair<string, object>>, IEnumerable<KeyValuePair<string, object>>, IEnumerable
Inheritance: objectDocumentVariableCollection
Implements:
Constructors
DocumentVariableCollection(RadDocument)
Initializes a new instance of the DocumentVariableCollection class.
Declaration
public DocumentVariableCollection(RadDocument owner)
Parameters
owner
The associated document.
DocumentVariableCollection(RadDocument, DocumentVariableCollection)
Initializes a new instance of the DocumentVariableCollection class.
Declaration
public DocumentVariableCollection(RadDocument owner, DocumentVariableCollection toCopyFrom)
Parameters
owner
The associated document.
toCopyFrom
A collection of document variables which will be added to the associated document.
Properties
Count
Gets the number of elements contained in the ICollection<T>.
IsReadOnly
Gets a value indicating whether the ICollection<T> is read-only.
Keys
Gets an ICollection<T> containing the keys of the IDictionary<TKey, TValue>.
Declaration
public ICollection<string> Keys { get; }
Property Value
Implements
Values
Gets an ICollection<T> containing the values in the IDictionary<TKey, TValue>.
Declaration
public ICollection<object> Values { get; }
Property Value
Implements
this[string]
Gets or sets the variable with the specified key.
Methods
Add(string, object)
Adds an element with the provided key and value to the IDictionary<TKey, TValue>.
Clear()
Removes all items from the ICollection<T>.
Declaration
public void Clear()
Implements
ContainsKey(string)
Determines whether the IDictionary<TKey, TValue> contains an element with the specified key.
Declaration
public bool ContainsKey(string key)
Parameters
key
The key to locate in the IDictionary<TKey, TValue>.
Returns
true if the IDictionary<TKey, TValue> contains an element with the key; otherwise, false.
Implements
EvaluateVariableValue(string)
Evaluates the variable value.
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<KeyValuePair<string, object>> GetEnumerator()
Returns
IEnumerator<KeyValuePair<string, object>>
An enumerator that can be used to iterate through the collection.
Implements
Remove(string)
Removes the element with the specified key from the IDictionary<TKey, TValue>.
TryGetValue(string, out object)
Gets the value associated with the specified key.
Declaration
public bool TryGetValue(string key, out object value)
Parameters
key
The key whose value to get.
value
When 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.
Returns
true if the object that implements IDictionary<TKey, TValue> contains an element with the specified key; otherwise, false.
Implements