The ChartLegend type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ChartLegend |
Initializes a new instance of the ChartLegend class.
|
Methods
Name | Description | |
---|---|---|
AssignFrom |
Copies properties from another ChartLegend to the current object.
(Overrides NamedCollectionItem..::..AssignFrom(NamedCollectionItem).) |
|
Clone |
Creates a copy of the current NamedCollectionItem object.
Note that the Owner property is not copied to the new object.
(Inherited from NamedCollectionItem.) |
Properties
Name | Description | |
---|---|---|
AutoFitTextDisabled |
Gets or sets a value indicating whether to NOT autosize text
to fit in the legend area.
Default: False. |
|
ColumnSeparator |
Gets or sets the type of separator to use for the columns.
Default: None. |
|
ColumnSeparatorColor |
Gets or sets the color to use for the column separator.
Default: Black. |
|
ColumnSpacing |
Gets or sets the spacing between columns as percentage of the font size.
Default: 50. |
|
CustomPosition |
Gets or sets the ChartElementPosition object defining
a custom position for the legend.
If null, automatic positioning will be used.
|
|
DockOutsideChartArea |
Gets or sets a value indicating whether the title should be docked outside
the chart area rather than inside the chart area.
Ignored if DockToChartArea is not set.
|
|
DockToChartArea |
Gets or sets the name of the chart area on which to draw the legend.
If omitted (or does not match any chart area name),
the legend is drawn relative to the chart rather than a specific chart area.
|
|
EquallySpacedItems |
Gets or sets a value indicating whether legend items should be equally spaced.
Default: False. |
|
HeaderSeparator |
Gets or sets the type of separator to use for the legend header.
Default: None. |
|
HeaderSeparatorColor |
Gets or sets the color to use for the legend header separator.
Default: Black. |
|
Hidden |
Gets or sets a value indicating whether the legend is hidden.
|
|
InterlacedRows |
Gets or sets a value indicating whether legend rows should use interlaced colors.
|
|
InterlacedRowsColor |
Gets or sets the background color to use for interlaced legend rows.
If null (default), the chart area background color will be used. |
|
Layout |
Gets or sets the arrangement of labels within the legend.
Default: AutoTable. |
|
MaxAutoSize |
Gets or sets the maximum size for the legend, as percentage of the chart size.
Default: 50. |
|
MinFontSize |
Gets or sets the minimum size for autosized legend text.
Default: 7pt. |
|
Name |
Gets or sets the unique name of the current object.
If an item with the specified name already exists in the collection,
an exception is thrown.
(Inherited from NamedCollectionItem.) |
|
Owner |
Gets the NamedCollection containing the current object.
(Inherited from NamedCollectionItem.) |
|
Position |
Gets or sets the position of the legend.
Default: RightTop. |
|
Reversed |
Gets or sets a value indicating that the direction of the legend should be reversed.
Default: Auto. |
|
Style |
Gets the Style object defining style properties for the legend.
|
|
TextWrapThreshold |
Gets or sets the number of characters after which to wrap the legend text.
Default: 25 |
|
Title |
Gets the ChartLegendTitle object defining properties
of the legend's title.
|