[]
Sets the formatting property value.
protected virtual void SetFormatting(string key, object value, bool tryRemoveInheritance = true)
| Type | Name | Description |
|---|---|---|
| string | key | The short formatting property key to set value. |
| object | value | The formatting property value. |
| bool | tryRemoveInheritance | Whether to remove this instance inheritance and fix all inherited values as "direct" values. |
Sets the formatting property value.
protected void SetFormatting<T>(string key, object value, T defaultValue, bool tryRemoveInheritance = true)
| Type | Name | Description |
|---|---|---|
| string | key | The short formatting property key to set value. |
| object | value | The formatting property value. |
| T | defaultValue | The default value of the property. |
| bool | tryRemoveInheritance | Whether to remove this instance inheritance and fix all inherited values as "direct" values. |
| Name | Description |
|---|---|
| T | A type of the value. |
If value equals default value then formatting will be removed.