menu

WinForms

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

    Show / Hide Table of Contents

    Struct ChartThickness

    Describes the thickness of a frame around a rectangle. Four float values describe the Left, Top, Right, and Bottom sides of the rectangle, respectively.

    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Syncfusion.Windows.Forms.Chart
    Assembly: Syncfusion.Chart.Base.dll
    Syntax
    public struct ChartThickness

    Constructors

    ChartThickness(Single)

    Initializes a new instance of the ChartThickness class.

    Declaration
    public ChartThickness(float value)
    Parameters
    Type Name Description
    System.Single value

    The value.

    ChartThickness(Single, Single, Single, Single)

    Initializes a new instance of the ChartThickness class.

    Declaration
    public ChartThickness(float left, float top, float right, float bottom)
    Parameters
    Type Name Description
    System.Single left

    The left.

    System.Single top

    The top.

    System.Single right

    The right.

    System.Single bottom

    The bottom.

    Properties

    Bottom

    Gets the bottom.

    Declaration
    public float Bottom { get; set; }
    Property Value
    Type Description
    System.Single

    The bottom.

    Left

    Gets the left.

    Declaration
    public float Left { get; set; }
    Property Value
    Type Description
    System.Single

    The left.

    Right

    Gets the right.

    Declaration
    public float Right { get; set; }
    Property Value
    Type Description
    System.Single

    The right.

    Top

    Gets the top.

    Declaration
    public float Top { get; set; }
    Property Value
    Type Description
    System.Single

    The top.

    Methods

    Add(ChartThickness, ChartThickness)

    Adds the specified x to the specified y.

    Declaration
    public static ChartThickness Add(ChartThickness x, ChartThickness y)
    Parameters
    Type Name Description
    ChartThickness x

    The x.

    ChartThickness y

    The y.

    Returns
    Type
    ChartThickness

    Deflate(Rectangle)

    Deflates the specified rect.

    Declaration
    public Rectangle Deflate(Rectangle rect)
    Parameters
    Type Name Description
    System.Drawing.Rectangle rect

    The rect.

    Returns
    Type
    System.Drawing.Rectangle

    Deflate(RectangleF)

    Deflates the specified rect.

    Declaration
    public RectangleF Deflate(RectangleF rect)
    Parameters
    Type Name Description
    System.Drawing.RectangleF rect

    The rect.

    Returns
    Type
    System.Drawing.RectangleF

    Deflate(Size)

    Deflates the specified size.

    Declaration
    public Size Deflate(Size size)
    Parameters
    Type Name Description
    System.Drawing.Size size

    The size.

    Returns
    Type
    System.Drawing.Size

    Deflate(SizeF)

    Deflates the specified size.

    Declaration
    public SizeF Deflate(SizeF size)
    Parameters
    Type Name Description
    System.Drawing.SizeF size

    The size.

    Returns
    Type
    System.Drawing.SizeF

    Equals(Object)

    Indicates whether this instance and a specified object are equal.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj

    Another object to compare to.

    Returns
    Type Description
    System.Boolean

    true if obj and this instance are the same type and represent the same value; otherwise, false.

    Overrides
    System.ValueType.Equals(System.Object)

    GetHashCode()

    Returns the hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    A 32-bit signed integer that is the hash code for this instance.

    Overrides
    System.ValueType.GetHashCode()

    Inflate(Rectangle)

    Inflates the specified rect.

    Declaration
    public Rectangle Inflate(Rectangle rect)
    Parameters
    Type Name Description
    System.Drawing.Rectangle rect

    The rect.

    Returns
    Type
    System.Drawing.Rectangle

    Inflate(RectangleF)

    Inflates the specified rect.

    Declaration
    public RectangleF Inflate(RectangleF rect)
    Parameters
    Type Name Description
    System.Drawing.RectangleF rect

    The rect.

    Returns
    Type
    System.Drawing.RectangleF

    Inflate(Size)

    Inflates the specified size.

    Declaration
    public Size Inflate(Size size)
    Parameters
    Type Name Description
    System.Drawing.Size size

    The size.

    Returns
    Type
    System.Drawing.Size

    Inflate(SizeF)

    Inflates the specified size.

    Declaration
    public SizeF Inflate(SizeF size)
    Parameters
    Type Name Description
    System.Drawing.SizeF size

    The size.

    Returns
    Type
    System.Drawing.SizeF

    Parse(String)

    Parses the specified text.

    Declaration
    public static ChartThickness Parse(string text)
    Parameters
    Type Name Description
    System.String text

    The text.

    Returns
    Type
    ChartThickness

    ToString()

    Returns the fully qualified type name of this instance.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    A System.String containing a fully qualified type name.

    Overrides
    System.ValueType.ToString()

    Operators

    Equality(ChartThickness, ChartThickness)

    Implements the operator ==.

    Declaration
    public static bool operator ==(ChartThickness x, ChartThickness y)
    Parameters
    Type Name Description
    ChartThickness x

    The x.

    ChartThickness y

    The y.

    Returns
    Type Description
    System.Boolean

    The result of the operator.

    Inequality(ChartThickness, ChartThickness)

    Implements the operator !=.

    Declaration
    public static bool operator !=(ChartThickness x, ChartThickness y)
    Parameters
    Type Name Description
    ChartThickness x

    The x.

    ChartThickness y

    The y.

    Returns
    Type Description
    System.Boolean

    The result of the operator.

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