[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Chart.Styling.StyleManager.GetValue

GetValue Method

GetValue(Type, string)

Resolves a saved style by name into a usable value for the specified element type.

Declaration
public static object GetValue(Type type, string name)
Parameters
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.

Returns
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.