[]
Resolves a saved style by name into a usable value for the specified element type.
public static object GetValue(Type type, string name)
| Type | Name | Description |
|---|---|---|
| Type | type | The element type the style applies to. |
| string | name | The style name to resolve. An empty name or ItemDefault returns a freshly created default value; ItemNull returns null. |
| Type | Description |
|---|---|
| object | A clone of the saved style value, a new default value, or null as described above. If the name is not found, an InvalidCastException instance is returned (not thrown) describing the invalid style name. |