Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.Core.v4.4 Assembly / Xceed.Chart.Core Namespace / LegendDataItem Class / MarkShape Property
Example


In This Topic
    MarkShape Property
    In This Topic
    The shape of the legend item mark.
    Syntax
    'Declaration
     
    <CategoryAttribute("General")>
    <DescriptionAttribute("The shape of the legend item mark.")>
    <DefaultValueAttribute(Mono.Cecil.CustomAttributeArgument)>
    Public Property MarkShape As LegendMarkShape
    'Usage
     
    Dim instance As LegendDataItem
    Dim value As LegendMarkShape
     
    instance.MarkShape = value
     
    value = instance.MarkShape
    [Category("General")]
    [Description("The shape of the legend item mark.")]
    [DefaultValue(Mono.Cecil.CustomAttributeArgument)]
    public LegendMarkShape MarkShape {get; set;}
    Example
    The following examples adds a new item to the legend and changes the mark shape.
    Legend legend = (Legend)NChartControl.Legends[0];
    legend.Mode = LegendMode.Manual;
    
    LegendDataItem item = new LegendDataItem();
    item.Text = "New item";
    item.MarkShape = LegendMarkShape.Circle;
    
    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;
    
    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