MindFusion.Charting for Silverlight Programmer's Guide
Dock Enumeration
See Also
 






Specifies the docking of elements in a layout panel

Namespace: MindFusion.Charting.Silverlight
Assembly: MindFusion.Charting.Silverlight

 Syntax

C#  Copy Code

public enum Dock

Visual Basic  Copy Code

Public Enum Dock

 Members

  Member name Description

Bottom

the element is docked to the bottom of the panel.

Left

the element is docked to the left of the panel.

Right

the element is docked to the right of the panel.

Top

the element is docked to the top of the panel.

 Example

The following example adds a ChartLegend to a line chart and docks it to the left.

C#  Copy Code
ChartLegend legend = new ChartLegend();
legend.Series = lineChart1.Series;
LayoutPanel.SetDock(legend, Dock.Left);
lineChart1.Legends.Add(legend);
Visual Basic  Copy Code
Dim legend As ChartLegend = New ChartLegend
legend.Series = lineChart1.Series
LayoutPanel.SetDock(legend, Dock.Left)
lineChart1.Legends.Add(legend)

 See Also

MindFusion.Charting.Silverlight Namespace