Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

ChartLegend Class

Represents the properties that can be used to display instances of the series groups in a chart legend.

Namespace:  Microsoft.ReportingServices.RdlObjectModel
Assembly:  Microsoft.ReportingServices.Designer.Controls (in Microsoft.ReportingServices.Designer.Controls.dll)

type ChartLegend =  
        inherit ReportObject 
        interface INamedObject 

The ChartLegend type exposes the following members.

Public methodChartLegendCreates a new instance of the ChartLegend class.

Public propertyAutoFitTextDisabledIndicates text will not be autosized to fit in the legend area.
Public propertyChartElementPositionDefines a custom position for the legend.
Public propertyChartLegendColumnsGets the legend columns.
Public propertyChartLegendTitleTitle display in the legend.
Public propertyColumnSeparatorIndicates what type of separator to use for the columns.
Public propertyColumnSeparatorColorIndicates what color to use for the column separator.
Public propertyColumnSpacingSpacing between columns as a percent of the font size.
Public propertyComponentMetadataGets or sets the component metadata. (Inherited from ReportObject.)
Public propertyDockOutsideChartAreaIndicates the title should be docked outside the chart area rather than inside the chart area.
Public propertyDockToChartAreaName of the chart area on which to draw the legend.
Public propertyEquallySpacedItemsIndicated legend items should be equally spaced.
Public propertyHeaderSeparatorIndicates what type of separator to use for the legend header.
Public propertyHeaderSeparatorColorIndicates what color to use for the legend header separator.
Public propertyHiddenIndicates the legend is hidden.
Public propertyInterlacedRowsIndicates legend rows should use interlaced colors.
Public propertyInterlacedRowsColorThe background color to use for interlaced legend rows.
Public propertyLayoutThe arrangement of labels within the legend.
Public propertyMaxAutoSizeMaximum size for the legend, as a percent of the chart size.
Public propertyMinFontSizeMinimum size for autosized legend text.
Public propertyNameName of the legend.
Public propertyParentThe parent of this report object. (Inherited from ReportObjectBase.)
Public propertyPositionThe position of the legend.
Public propertyReversedIndicates the direction of the legend should be reversed.
Public propertySiteInfrastructure. Gets or sets the site associated with the ReportObject object. (Inherited from ReportObject.)
Public propertyStyleGets the style properties of this report definition object.
Public propertyTextWrapThresholdNumber of characters after which to wrap the legend text.

Public methodDeepCloneReturns a deep clone of this ReportObject instance. (Inherited from ReportObject.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetContainingDataScopesInfrastructure. Returns the list of report object that contains data scopes. (Inherited from ReportObject.)
Protected methodGetDataScopesForDefaultImplInfrastructure. Returns the data scopes for default implementation. (Inherited from ReportObject.)
Protected methodGetDependenciesCoreInfrastructure. Returns the dependencies core for the ReportObject object. (Inherited from ReportObject.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodInitializeInitializes an instance of the ChartLegend class. (Overrides ReportObject.Initialize().)
Protected methodInitializeForDesignerInfrastructure. Initializes the report object for designer. (Inherited from ReportObject.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodOnChildPropertyChangedInfrastructure. Raises an event when the property of the child was changed. (Inherited from ReportObject.)
Protected methodOnPropertyChangedInfrastructure. Raises an event when the property was changed. (Inherited from ReportObject.)
Protected methodRdlSemanticEqualsCoreInfrastructure. Returns whether the report definition language semantic is the same with the core object. (Inherited from ReportObject.)
Protected methodSavePropertyValue(T)Infrastructure. Saves the property value of the report object. (Inherited from ReportObject.)
Public methodToString (Inherited from Object.)

Explicit interface implemetationPrivate methodIDisposable.DisposeInfrastructure. Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from ReportObject.)
Explicit interface implemetationPrivate eventIComponent.DisposedInfrastructure. Occurs when the ReportObject object is disposed. (Inherited from ReportObject.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

© 2015 Microsoft