WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Struct Insets

    Show / Hide Table of Contents

    Struct Insets

    Specifies the inset padding, in pixels, for a component. Used by the GridBagLayout manager.

    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public struct Insets
    Remarks

    This is the extra space that the manager adds around a component's preferred bounds before laying out the component.

    Constructors

    Insets(Int32, Int32, Int32, Int32)

    Creates an instance on the Insets class.

    Declaration
    public Insets(int left, int top, int right, int bottom)
    Parameters
    Type Name Description
    System.Int32 left

    Number of pixels added to the left of the component.

    System.Int32 top

    Number of pixels added to the top of the component.

    System.Int32 right

    Number of pixels added to the right of the component.

    System.Int32 bottom

    Number of pixels added to the bottom of the component.

    Properties

    Bottom

    Gets or sets the insets to the bottom of the component.

    Declaration
    public int Bottom { get; set; }
    Property Value
    Type Description
    System.Int32

    Left

    Gets or sets the insets to the left of the component.

    Declaration
    public int Left { get; set; }
    Property Value
    Type Description
    System.Int32

    Right

    Gets or sets the insets to the right of the component.

    Declaration
    public int Right { get; set; }
    Property Value
    Type Description
    System.Int32

    Top

    Gets or sets the insets to the top of the component.

    Declaration
    public int Top { get; set; }
    Property Value
    Type Description
    System.Int32

    Methods

    Equals(Object)

    Overriden. See System.Boolean.Equals(System.Object).

    Declaration
    public override bool Equals(object o)
    Parameters
    Type Name Description
    System.Object o
    Returns
    Type Description
    System.Boolean
    Overrides
    System.ValueType.Equals(System.Object)

    GetHashCode()

    Overriden.See System.Object.GetHashCode().

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

    ToString()

    Overriden.See System.Object.ToString().

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

    Operators

    Equality(Insets, Insets)

    The basic == operator.

    Declaration
    public static bool operator ==(Insets lhs, Insets rhs)
    Parameters
    Type Name Description
    Insets lhs

    The left-hand side of the operator.

    Insets rhs

    The right-hand side of the operator.

    Returns
    Type Description
    System.Boolean

    Boolean value.

    Inequality(Insets, Insets)

    The basic != operator.

    Declaration
    public static bool operator !=(Insets lhs, Insets rhs)
    Parameters
    Type Name Description
    Insets lhs

    The left-hand side of the operator.

    Insets rhs

    The right-hand side of the operator.

    Returns
    Type Description
    System.Boolean

    Boolean value.

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