Class which holds a keyed collection of strings.
Cognex.Vision ShareableBase
Cognex.Vision ChangedEventShareableBase
Cognex.Vision.Implementation DictionaryOfstring
Cognex.Vision StringDictionary
Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.21.1.1
The StringDictionary type exposes the following members.
| Name | Description | |
|---|---|---|
| StringDictionary | Constructs a new instance of this class. |
| Name | Description | |
|---|---|---|
| Add(KeyValuePair String, String ) | Adds the specified item from this collection. | |
| Add(String, String) | Add an item to the end of this collection. | |
| Clear | Remove all items from this dictionary. | |
| Contains | (Overrides DictionaryOfstring Contains(KeyValuePair String, String ).) | |
| ContainsKey | Determines whether this dictionary contains the specified key. | |
| CopyTo | (Overrides DictionaryOfstring CopyTo( KeyValuePair String, String , Int32).) | |
| Equals | Compares the equality of this object with another. (Overrides DictionaryOfstring Equals(Object).) | |
| GetHashCode | Returns the hash code of this object. (Overrides DictionaryOfstring GetHashCode .) | |
| GetItemByKey | Get the item at the specified index. (Overrides DictionaryOfstring GetItemByKey(String).) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| GetTypeMeta | Get the TypeMeta that describes the type of this object. | |
| Key | Get the key at the specified index. | |
| Remove(KeyValuePair String, String ) | Remove the specified item from this collection. | |
| Remove(String) | Remove the item with the specified key from this dictionary. | |
| ResumeAndRaiseChangedEvent | Re-enables raising of the ChangedEvent after SuspendChangedEvent has been called, and raises the ChangedEvent if the ChangedEventSuspended count is reduced to zero and any changes were made while events were suspended. Must be called once for each call to SuspendChangedEvent. | |
| setItem | Replace the element with the specified key. If the key is not a member of this dictionary, insert the key/value pair. | |
| SuspendChangedEvent | Temporarily suspends the raising of the ChangedEvent. May be called more than once, and a corresponding call to ResumeAndRaiseChangedEvent must be made for each call to SuspendChangedEvent. | |
| ToString | Returns a human readable string that represents the object. | |
| TryGetByIndex | Get the key and value associated with the specified index. | |
| TryGetValue | Get the item associated with the specified key. |
| Name | Description | |
|---|---|---|
| Equality | Compares the equality of two StringDictionary objects. | |
| Inequality | Compares the inequality of two StringDictionary objects. |
| Name | Description | |
|---|---|---|
| ChangedEventSuspended | Indicates if raising the ChangedEvent has been suspended. | |
| Count | Get the number of elements contained in this collection. | |
| Handle | (Overrides DictionaryOfstring Handle.) | |
| IsReadOnly | Get whether or not this collection is read-only. | |
| Item | (Overrides DictionaryOfstring Item String .) | |
| Keys | (Inherited from DictionaryOfstring.) | |
| Values | (Inherited from DictionaryOfstring.) |
| Name | Description | |
|---|---|---|
| Changed | The actual event. | |
| Cleared | Raised after the collection is cleared. | |
| Clearing | Raised before the collection is cleared. | |
| InsertedItem | Raised after an item is inserted. | |
| InsertingItem | Raised before an item is inserted. | |
| RemovedItem | Raised after an item is removed. | |
| RemovingItem | Raised before an item is removed. | |
| ReplacedItem | Raised after an item is replaced. | |
| ReplacingItem | Raised before an item is replaced. |
You can retrieve a string from the collection by specifying its key or zero-based index position.