Gets or sets a string which automatically sets multiple margins as a shortcut.
Syntax
Visual Basic (Declaration) |
|
Public WriteOnly Property Margin |
Visual Basic (Usage) |
Copy Code |
Dim instance As Chart
instance.Margin = value
|
C# |
|
public void Margin {set;} |
Example
C# |
Copy Code |
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 |
Visual Basic |
Copy Code |
Chart.Margin = "10" Chart.Margin = "10,20" Chart.Margin = "5,10,15" Chart.Margin = "5,10,15,20"
|
Remarks
See Also