ChartDirector 6.2 (.NET Edition)

FinanceChart.setMargins


Usage

[C#] public void setMargins(int leftMargin, int topMargin, int rightMargin, int bottomMargin);
[VB] Public Sub setMargins(leftMargin As Integer, topMargin As Integer, rightMargin As Integer, bottomMargin As Integer)

Description

Sets the margins around the plot area. The default is 40 pixels for the left and right margins, and 30 pixels for the top and bottom margins.

Arguments

ArgumentDefaultDescription
leftMargin(Mandatory)The distance from the left side of the plot area to the left side of the chart.
topMargin(Mandatory)The distance from the top of the plot area to the top of the chart.
rightMargin(Mandatory)The distance from the right side of the plot area to the right side of the chart.
bottomMargin(Mandatory)The distance from the bottom of the plot area to the bottom of the chart.

Return Value

None