.netCHARTING v10.5 Documentation
Example 


Margin Property
Gets or sets a string which automatically sets multiple margins as a shortcut.
Syntax
'Declaration
 
Public WriteOnly Property Margin As String
'Usage
 
Dim instance As Chart
 
instance.Margin = value
public string Margin {set;}
Remarks
Controls the margins or amount of space in pixels that will be left around the charting elements including the Legend and title box. This property can be used in conjunction with the Chart.Background property to easily implement attractive custom borders or just pad the chart as you please. The property accepts margins "Left, Top, Right, Bottom" in pixels. Negative values are allowed.
Example
Chart.Margin = "10"; //set all 4 Margins to 10 
Chart.Margin = "10,20"; // set MarginLeft and MarginRight to 10 and MarginTop and Bottom to 20 
Chart.Margin = "5,10,15"; // set MarginLeft to 5, MarginTop to 10 and MarginRight to 15 
Chart.Margin = "5,10,15,20"; // set MarginLeft to 5, MarginTop to 10, MarginRight to 15 and MarginBottom to 20
Chart.Margin = "10"    'set all 4 Margins to 10 
Chart.Margin = "10,20"    'set MarginLeft and MarginRight to 10 and MarginTop and Bottom to 20 
Chart.Margin = "5,10,15"    'set MarginLeft to 5, MarginTop to 10 and MarginRight to 15 
Chart.Margin = "5,10,15,20"    'set MarginLeft to 5, MarginTop to 10, MarginRight to 15 and MarginBottom to 20
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also