control.Region(n).Grid.Left/Top/Width/Height

Type:Long
Purpose:Sets the left corner / the top corner / the width or the height of the grid in pixel.
Default:0.
Accessible:Runtime
Remarks:

Normally there is no need to define the grid's Left, Top, Width and Height. RMChart calculates the boundary of the grid, if these properties are omitted, depending of the region's size, the caption's and the legend's size, the size of the axis labels and so on. This should be the preferred way because it assures that everything fits together.

The only reason to set these values may be if you design a chart with e.g. 2 regions on top of each other and you want to assure that the left corners and the width of both grids are congruent. For an example load the file 2 regions.rmc into RMCDesigner.

NOTE: Even if you omit setting these properties, you can retrieve the calculated values although at runtime. These can be done either after a successful call of Draw, or after calling Calc. This may be helpful if you want to add, for example, some annotations with the help of CustomObjects to your chart.

Example:RMChartX1.AddRegion
RMChartX1.Region(1).AddGrid
RMChartX1.Region(1).Grid.Left = 10
RMChartX1.Region(1).Grid.Top = 20
RMChartX1.Region(1).Grid.Width = 400
RMChartX1.Region(1).Grid.Height = 300