Search
LegendRenderer Members
Constructors Properties Methods
 


A component that renders chart legend.

The following tables list the members exposed by the LegendRenderer type.

 Public Constructors

  Name Description

LegendRenderer

Initializes a new instance of the LegendRenderer class.

 Public Properties

  Name Description

ActualHeight

A double value specifying the component's assigned height. Valid only after calling Arrange. (Inherited from Component.)

ActualWidth

A double value specifying the component's assigned width. Valid only after calling Arrange. (Inherited from Component.)

AllowMove

Gets or sets a value indicating whether users are allowed to move this legend.

Background

Gets or sets the Brush that should be used to fill the background of this legend.

BorderStroke

Gets or sets the Brush that should be used to stroke the borders of this legend.

BorderStrokeDashStyle

Gets or sets the stroke dash style of legend borders.

BorderStrokeThickness

Gets or sets the stroke thickness of legend borders.

Content

Gets or sets a list of SeriesRenderer objects whose Series should be displayed in this legend.

DesiredHeight

A nullable double value specifying the component's desired height. Valid only after calling Measure. (Inherited from Component.)

DesiredWidth

A nullable double value specifying the component's desired width. Valid only after calling Measure. (Inherited from Component.)

ElementLabelKind

Gets or sets the type of label to show for series elements. This property is used only when ShowSeriesElements is set to true.

GridColumn

Gets or sets the column index of this component when placed inside a GridPanel. (Inherited from Component.)

GridRow

Gets or sets the row index of this component when placed inside a GridPanel. (Inherited from Component.)

Height

Gets or sets a fixed height for this component. (Inherited from Component.)

HitTestVisibility

Gets or sets the hit-test visibility of this component. (Inherited from Component.)

HorizontalAlignment

Gets or sets the horizontal alignment of this component inside the layout rectangle allocated by its parent panel. (Inherited from Component.)

Margin

Gets or sets the margin space around this component relative to the layout rectangle allocated by its parent panel. (Inherited from Component.)

MaxItemsPerColumn

Gets or sets the maximum number ot items per display column.

Padding

Gets or sets the padding space between content and borders of this legend.

RectInParent

Gets the boundaries of this component relative to its parent. (Inherited from Component.)

ShowSeriesElements

Gets or sets a value, indicatating whether this legend will display individual series element labels instead of the series titles.

ShowTitle

Gets or sets a value indicating whether to display the legend title.

Spacing

Gets or sets the distance between adjacent entries in the legend.

Title

Gets or sets the legend's title.

TitleBrush

Gets or sets the Brush that should be used to draw the legend's Title.

TitleFontName

Gets or sets the name of font that should be used to draw the legend's Title.

TitleFontSize

Gets or sets the size of font that should be used to draw the legend's Title.

TitleFontStyle

Gets or sets the style of font that should be used to draw the legend's Title.

ToolTip

Gets or sets the component's tooltip text. (Inherited from Component.)

VerticalAlignment

Gets or sets the vertical alignment of this component inside the layout rectangle allocated by its parent panel. (Inherited from Component.)

Visibility

Gets or sets the visibility of this component. (Inherited from Component.)

Width

Gets or sets a fixed width for this component. (Inherited from Component.)

XInParent

A double value specifying the component's horizontal position relative to its parent. (Inherited from Component.)

YInParent

A double value specifying the component's vertical position relative to its parent. (Inherited from Component.)

 Public Methods

  Name Description

Arrange

Sets the location and size of this component relatively to its parent. (Inherited from Component.)

CreateController

Component.CreateController override. Returns a ComponentController used to interact with this component.

Draw

Component.Draw override. Draws legend elements in specified RenderContext.

EffectiveBorderStroke

Gets the Brush that should be used to stroke the legend borders.

EffectiveFill

Gets the Brush that should be used to fill the legend background.

HitTest

Returns the component containing specified point. (Inherited from Component.)

Invalidate

Overloaded. Invalidates the appearance of this component. (Inherited from Component.)

InvalidateLayout

Invalidates the current layout and runs a new layout pass before next draw operation. (Inherited from Component.)

LocalToRoot

Transforms the specified point to the coordinate system of the root panel. (Inherited from Component.)

Measure

Component.Measure override. Measures the desired size of this component.

RootToLocal

Transforms the specified point to the coordinate system of this component. (Inherited from Component.)

Visit

Implements the visitor design pattern. (Inherited from Component.)

 Protected Methods

  Name Description

Add

Sums specified nullable double values. (Inherited from Component.)

ArrangeInRect

Arranges a child component in specified layout rectangle. (Inherited from Component.)

EffectiveBorderPen

Gets the Pen that should be used to draw the legend borders.

EffectiveBorderStrokeThickness

Gets the thickness of border strokes.

EffectiveStrokeDashStyle

Gets the dash style of border strokes.

EffectiveTitleBrush

Gets the Brush that should be used to draw the legend's Title.

EffectiveTitleFont

Gets the Font that should be used to draw the legend's Title.

Max

Returns the larger of specified values. (Inherited from Component.)

 See Also