TCustomTeePanel.MarginUnits
TCustomTeePanel
property MarginUnits: TTeeUnits;
Unit
TeeProcs
Description
Default value: muPercent
Determines the units of the four margin properties:
TCustomTeePanel.MarginLeft
TCustomTeePanel.MarginTop
TCustomTeePanel.MarginRight
TCustomTeePanel.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:
Chart1.MarginUnits := muPixels ;
Chart1.MarginLeft := 10 ; // 10 pixels
Chart1.MarginRight := 10 ; // 10 pixels