IPanel.MarginUnits
IPanel
property MarginUnits: EMarginUnits;
Type Library
TeeChartx
Description
Default value: muPercent
Determines the units of the four margin properties:
MarginLeft
MarginTop
MarginRight
MarginBottom
When MarginUnits is muPercent, chart margins are calculated as percentage of total chart width and height.
Percent margins are useful to obtain the same margin proportions, no matter the chart size.
When MarginUnits is muPixels, chart margins are just the pixel quantity.
Example[Visual Basic]:
TChart1.Panel.MarginUnits = muPixels
TChart1.Panel.MarginLeft = 10 '10 pixels
TChart1.Panel.MarginBottom = 10 '10 pixels