Class ChartBaseStylesMap
This class acts as a repository for common styles (base styles). Such styles are registered and held in this repository. This enables them to be referenced by their registered names. When changes are made to registered base styles, they are propagated through the system.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Chart
Assembly: Syncfusion.Chart.Base.dll
Syntax
public class ChartBaseStylesMap
Constructors
ChartBaseStylesMap()
Initializes a new instance of the ChartBaseStylesMap class.
Declaration
public ChartBaseStylesMap()
Properties
Item[String]
Returns the ChartBaseStyleInfo object registered with the specified name.
Declaration
public ChartBaseStyleInfo this[string name] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Property Value
Type |
---|
ChartBaseStyleInfo |
Methods
Clear()
Remove references to all registered styles.
Declaration
public void Clear()
Lookup(String)
Look ups and returns the base style with the specified name.
Declaration
public ChartBaseStyleInfo Lookup(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name to look for. |
Returns
Type | Description |
---|---|
ChartBaseStyleInfo | A base style if look up is successful; NULL otherwise. |
Register(ChartBaseStyleInfo)
Registers the specified base style with the styles map.
Declaration
public void Register(ChartBaseStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
ChartBaseStyleInfo | style | The style that is to be registered. The Name property will be used as the registration name. |
Remove(String)
Removes the base style registered under the specified name from this repository.
Declaration
public void Remove(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of base style to remove. |