dotnetCHARTING Send comments on this topic.
Palette Property
See Also 
dotnetCHARTING.Mapping Namespace > MapLayer Class : Palette Property


Gets or sets an array of colors that defines the colors that will be used by the shapes of this MapLayer.

Syntax

Visual Basic (Declaration) 
Public Property Palette As Color()
Visual Basic (Usage)Copy Code
Dim instance As MapLayer
Dim value() As Color
 
instance.Palette = value
 
value = instance.Palette
C# 
public Color[] Palette {get; set;}

Remarks

When setting this property, each shape will get it's own color. Whereas by default, all shapes within a mapLayer take their color from MapLayer.DefaultShape.Background.Color.

See Also

© 2010 All Rights Reserved.