CollectionItemValues
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:
Methods
Removes all values from the collection.
public void Clear()
Returns an enumerator that iterates through the collection.
public IEnumerator<KeyValuePair<string, CollectionItemValue>> GetEnumerator()
IEnumerator<KeyValuePair<string, CollectionItemValue>>
An enumerator for the collection.
Implements:
Sets a date value for the specified field key.
public CollectionItemValue SetDate(string fieldKey, DateTime date)
The key of the schema field.
dateDateTimeThe date value.
Returns:The created CollectionItemValue, allowing further configuration such as setting a prefix.
Sets a numeric value for the specified field key.
public CollectionItemValue SetNumber(string fieldKey, double number)
The key of the schema field.
numberdoubleThe numeric value.
Returns:The created CollectionItemValue, allowing further configuration such as setting a prefix.
Sets a text value for the specified field key.
public CollectionItemValue SetText(string fieldKey, string text)
The key of the schema field.
textstringThe text value.
Returns:The created CollectionItemValue, allowing further configuration such as setting a prefix.
Tries to get the value associated with the specified field key.
public bool TryGetValue(string fieldKey, out CollectionItemValue value)
The key of the value to get.
valueCollectionItemValueWhen this method returns, contains the value, or null if not found.
Returns:true if the value was found; otherwise, false.
Properties
Gets or sets the value associated with the specified field key.
public CollectionItemValue this[string fieldKey] { get; set; }
The key of the schema field.
Property Value:The collection item value associated with the key.