Class ChartMargins
Describes the margins of a frame around a rectangle. Four float values describe the Left, Top, Right, and Bottom sides of the rectangle, respectively.
Inheritance
Implements
Namespace: Syncfusion.Windows.Forms.Chart
Assembly: Syncfusion.Chart.Base.dll
Syntax
public class ChartMargins : Object, ICloneable
Constructors
ChartMargins()
Overloaded constructor. Creates a new ChartMargins instance.
Declaration
public ChartMargins()
ChartMargins(Int32, Int32, Int32, Int32)
Creates a new ChartMargins instance.
Declaration
public ChartMargins(int left, int top, int right, int bottom)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | left | Left. |
| System.Int32 | top | Top. |
| System.Int32 | right | Right. |
| System.Int32 | bottom | Bottom. |
Properties
Bottom
Gets or sets the bottom value of margin.
Declaration
[ChartTemplate]
public int Bottom { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Left
Gets or sets the left value of margin.
Declaration
[ChartTemplate]
public int Left { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Right
Gets or sets the right value of margin.
Declaration
[ChartTemplate]
public int Right { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Top
Gets or sets the top value of margin.
Declaration
[ChartTemplate]
public int Top { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Methods
Clone()
Creates a new object that is a copy of the current instance.
Declaration
public ChartMargins Clone()
Returns
| Type | Description |
|---|---|
| ChartMargins | A new object that is a copy of this instance. |
Equals(Object)
Determines whether the specified System.Object is equal to the current System.Object.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj | The System.Object to compare with the current System.Object. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true if the specified System.Object is equal to the current System.Object; otherwise, false. |
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 | A hash code for the current System.Object. |
Events
Changed
An event that is triggered when margin properties are changed.
Declaration
public event EventHandler Changed
Event Type
| Type |
|---|
| System.EventHandler |