AddStandardValues Method
AddStandardValues(Type, Type)
Registers a set of standard values for a type
by using the
public static properties of the type valuesContainer
.
Declaration
public static void AddStandardValues(Type type, Type valuesContainer)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | |
System.Type | valuesContainer |
Examples
Metadata.AddStandardValues(typeof(Brush), typeof(Brushes));
AddStandardValues<T>(Type, IEnumerable<T>)
Registers a set of standard values
for a type
.
Declaration
public static void AddStandardValues<T>(Type type, IEnumerable<T> values)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | |
System.Collections.Generic.IEnumerable<T> | values |
Type Parameters
Name | Description |
---|---|
T |
Remarks
You can call this method multiple times to add additional standard values.