Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Legend Properties

The Legend type exposes the following members.

  NameDescription
Public property Alignment Gets or sets the alignment of the legend.
Public property AutoFitMinFontSize Gets or sets the minimum font size that can be used by the autofitting algorithm for the legend text.
Public property BackColor Gets or sets the background color of a legend.
Public property BackGradientStyle Gets or sets the orientation for the background gradient of a legend. Also determines whether a gradient is used.
Public property BackHatchStyle Gets or sets the hatching style of a legend.
Public property BackImage Gets or sets the background image of a legend.
Public property BackImageAlignment Gets or sets the background image alignment used for the Unscaled drawing mode.
Public property BackImageTransparentColor Gets or sets a color that will be replaced with a transparent color when the background image is drawn.
Public property BackImageWrapMode Gets or sets the drawing mode of a legend background image.
Public property BackSecondaryColor Gets or sets the secondary color of a legend background.
Public property BorderColor Gets or sets the border color of a legend.
Public property BorderDashStyle Gets or sets the border style of a legend.
Public property BorderWidth Gets or sets the border width of a legend.
Public property CellColumns Gets the LegendCellColumnCollection for a legend.
Public property CustomItems Gets a T[:System.Web.UI.DataVisualization.Charting.LegendItemsCollection] object used for custom legend items.
Public property DockedToChartArea Gets or sets the name of the ChartArea where the legend will be docked.
Public property Docking Gets or sets a value that determines where the legend is docked.
Public property Enabled Gets or sets a value that determines if the legend is enabled.
Public property Font Gets or sets a Font object, which is used to set font properties of the legend.
Public property ForeColor Gets or sets the color of the legend text.
Public property HeaderSeparator Gets or sets the visual separator type for the legend header.
Public property HeaderSeparatorColor Gets or sets the color of the separator for the legend header.
Public property InsideChartArea Gets or sets the name of the chart area in which the legend is drawn.
Public property InterlacedRows Gets or sets a flag that indicates if legend rows will be drawn with interlaced background color.
Public property InterlacedRowsColor Gets or sets the background color of the legend's interlaced rows.
Public property IsDockedInsideChartArea Gets or sets a flag that indicates whether the legend is docked inside or outside the chart area.
Public property IsEquallySpacedItems Gets or sets a flag that indicates whether all legend items are equally spaced.
Public property IsTextAutoFit Gets or sets a flag that indicates if the legend text is automatically sized.
Public property ItemColumnSeparator Gets or sets the visual separator type for the legend table columns.
Public property ItemColumnSeparatorColor Gets or sets the color of the legend table column separator.
Public property ItemColumnSpacing Gets or sets the legend table column spacing.
Public property LegendItemOrder Gets or sets a flag that specifies the order in which legend items are displayed. This property only affects legend items automatically added for the chart series; it has no effect on custom legend items.
Public property LegendStyle Gets or sets the style of the legend.
Public property MaximumAutoSize Gets or sets the maximum size of the legend, measured as a percentage of the chart area. This value is used by the automatic layout algorithm.
Public property Name Gets or sets the name of the legend. (Overrides ChartNamedElement.Name.)
Public property Position Gets or sets an ElementPosition object, which can be used to get or set the position of the legend.
Public property ShadowColor Gets or sets the shadow color of the legend.
Public property ShadowOffset Gets or sets the shadow offset, in pixels, of the legend.
Public property TableStyle Gets or sets the legend table style.
Public property Tag Gets or sets an object associated with this chart element. (Inherited from ChartElement.)
Public property TextWrapThreshold Gets or sets the number of characters that can be sequentially displayed in the legend before the text is wrapped.
Public property Title Gets or sets the text of the legend title.
Public property TitleAlignment Gets or sets the alignment of the legend title.
Public property TitleBackColor Gets or sets the background color of the legend title.
Public property TitleFont Gets or sets the font for the legend title.
Public property TitleForeColor Gets or sets the text color of the legend title.
Public property TitleSeparator Gets or sets the visual separator type for the legend title.
Public property TitleSeparatorColor Gets or sets the color of the legend title separator.
Top

Community Additions

ADD
Show:
© 2015 Microsoft