menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChartMargins - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    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
    System.Object
    ChartMargins
    Implements
    System.ICloneable
    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Forms.Chart
    Assembly: Syncfusion.Chart.Base.dll
    Syntax
    public class ChartMargins : 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(ChartTemplateSet.SimpleBehavior)]
    public int Bottom { get; set; }
    Property Value
    Type
    System.Int32

    Left

    Gets or sets the left value of margin.

    Declaration
    [ChartTemplate(ChartTemplateSet.SimpleBehavior)]
    public int Left { get; set; }
    Property Value
    Type
    System.Int32

    Right

    Gets or sets the right value of margin.

    Declaration
    [ChartTemplate(ChartTemplateSet.SimpleBehavior)]
    public int Right { get; set; }
    Property Value
    Type
    System.Int32

    Top

    Gets or sets the top value of margin.

    Declaration
    [ChartTemplate(ChartTemplateSet.SimpleBehavior)]
    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.

    Overrides
    System.Object.Equals(System.Object)

    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.

    Overrides
    System.Object.GetHashCode()

    Events

    Changed

    An event that is triggered when margin properties are changed.

    Declaration
    public event EventHandler Changed
    Event Type
    Type
    System.EventHandler

    Explicit Interface Implementations

    ICloneable.Clone()

    Creates a new object that is a copy of the current instance.

    Declaration
    object ICloneable.Clone()
    Returns
    Type Description
    System.Object

    A new object that is a copy of this instance.

    Implements

    System.ICloneable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved