[]
Returns the saved style name that matches the specified value, used to show the current selection in the style UI.
public static string GetName(object obj, object defaultValue = null)
| Type | Name | Description |
|---|---|---|
| object | obj | The style value to identify. |
| object | defaultValue | The value treated as the default; when null, a freshly created default for the
object's type is used. If |
| Type | Description |
|---|---|
| string | The name under which the value was saved, ItemDefault if it matches the default, or ItemCustom if the value does not correspond to any saved style. |