Xceed Chart for WinForms v4.4 Documentation
MarkFillEffect Property
Example 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > LegendDataItem Class : MarkFillEffect Property
The fill effect applied on the legend item mark.
Syntax
'Declaration
 
<CategoryAttribute("General")>
<DescriptionAttribute("The fill effect applied on the legend item mark.")>
Public Property MarkFillEffect As FillEffect
'Usage
 
Dim instance As LegendDataItem
Dim value As FillEffect
 
instance.MarkFillEffect = value
 
value = instance.MarkFillEffect
[Category("General")]
[Description("The fill effect applied on the legend item mark.")]
public FillEffect MarkFillEffect {get; set;}
Remarks
Some mark shapes do not have filling (star, cross etc) and it the MarkFillEffect does not influence their appearance.
Example
The following examples adds a new item to the legend and changes the mark fill effect.
Dim legend As Legend = CType(NChartControl.Legends(0), Legend)
legend.Mode = LegendMode.Manual

Dim item As LegendDataItem =  New LegendDataItem() 
item.Text = "New item"
item.MarkShape = LegendMarkShape.Circle
item.MarkFillEffect.SetGradient(GradientStyle.Horizontal, GradientVariant.Variant1, Color.Azure, Color.Blue)

legend.Data.Array.Add(item)
Legend legend = (Legend)NChartControl.Legends[0];
legend.Mode = LegendMode.Manual;

LegendDataItem item = new LegendDataItem();
item.Text = "New item";
item.MarkShape = LegendMarkShape.Circle;
item.MarkFillEffect.SetGradient(GradientStyle.Horizontal, GradientVariant.Variant1, Color.Azure, Color.Blue);

legend.Data.Array.Add(item);
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

LegendDataItem Class
LegendDataItem Members