ClassCollectionItemValues
Represents a collection of field values for an embedded file in a PDF Portfolio. Each entry maps a schema field key to its value.
Definition
Namespace:Telerik.Windows.Documents.Fixed.Model.Collections
Assembly:Telerik.Windows.Documents.Fixed.dll
Syntax:
public class CollectionItemValues : IEnumerable<KeyValuePair<string, CollectionItemValue>>, IEnumerable
Inheritance: objectCollectionItemValues
Implements:
Properties
Count
Gets the number of values in the collection.
this[string]
Gets or sets the value associated with the specified field key.
Declaration
public CollectionItemValue this[string fieldKey] { get; set; }
Parameters
fieldKey
The key of the schema field.
Property Value
The collection item value associated with the key.
Methods
ContainsKey(string)
Determines whether the collection contains a value with the specified field key.
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<KeyValuePair<string, CollectionItemValue>> GetEnumerator()
Returns
IEnumerator<KeyValuePair<string, CollectionItemValue>>
An enumerator for the collection.
Implements
Remove(string)
Removes the value with the specified field key.
SetDate(string, DateTime)
Sets a date value for the specified field key.
Declaration
public CollectionItemValue SetDate(string fieldKey, DateTime date)
Parameters
fieldKey
The key of the schema field.
date
The date value.
Returns
The created CollectionItemValue, allowing further configuration such as setting a prefix.
SetNumber(string, double)
Sets a numeric value for the specified field key.
Declaration
public CollectionItemValue SetNumber(string fieldKey, double number)
Parameters
fieldKey
The key of the schema field.
number
The numeric value.
Returns
The created CollectionItemValue, allowing further configuration such as setting a prefix.
SetText(string, string)
Sets a text value for the specified field key.
Declaration
public CollectionItemValue SetText(string fieldKey, string text)
Parameters
fieldKey
The key of the schema field.
text
The text value.
Returns
The created CollectionItemValue, allowing further configuration such as setting a prefix.
TryGetValue(string, out CollectionItemValue)
Tries to get the value associated with the specified field key.
Declaration
public bool TryGetValue(string fieldKey, out CollectionItemValue value)
Parameters
fieldKey
The key of the value to get.
value
When this method returns, contains the value, or null if not found.
Returns
true if the value was found; otherwise, false.