Property |
The PropertyBag type exposes the following members.
| Name | Description | |
|---|---|---|
| PropertyBag | Initializes a new instance of the PropertyBag class |
| Name | Description | |
|---|---|---|
| Count | Number of items in the store | |
| Item | Get, Set a string property by its name | |
| Keys | Lists all keys in the propertybag | |
| Values | Lists all values in the propertybag |
| Name | Description | |
|---|---|---|
| (DictionaryString, String to PropertyBag) | Converts the specified DictionaryTKey, TValue to a PropertyBag structure. | |
| (PropertyBag to DictionaryString, String) | Converts the specified PropertyBag structure to a DictionaryTKey, TValue. |
private void SaveProperty() { Easymap.AddIn.Common.PropertyBag bag = Application.Current.CurrentDocument.GetProperties("YourUniquePropertyCaption"); bag["Key"] = "Value"; Application.Current.CurrentDocument.Modified = true; }