Specifies the docking of elements in a layout panel
Namespace: MindFusion.Charting.Silverlight
Assembly: MindFusion.Charting.Silverlight
C#
![]() |
---|
public enum Dock |
Visual Basic
![]() |
---|
Public Enum Dock |
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. |
The following example adds a ChartLegend to a line chart and docks it to the left.
C#
![]() |
---|
ChartLegend legend = new ChartLegend(); legend.Series = lineChart1.Series; LayoutPanel.SetDock(legend, Dock.Left); lineChart1.Legends.Add(legend); |
Visual Basic
![]() |
---|
Dim legend As ChartLegend = New ChartLegend legend.Series = lineChart1.Series LayoutPanel.SetDock(legend, Dock.Left) lineChart1.Legends.Add(legend) |