Struct Insets
Specifies the inset padding, in pixels, for a component. Used by the GridBagLayout manager.
Inherited Members
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 |
|---|
| System.Int32 |
Left
Gets or sets the insets to the left of the component.
Declaration
public int Left { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Right
Gets or sets the insets to the right of the component.
Declaration
public int Right { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Top
Gets or sets the insets to the top of the component.
Declaration
public int Top { get; set; }
Property Value
| Type |
|---|
| 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 |
|---|
| System.Boolean |
Overrides
GetHashCode()
Overriden.See System.Object.GetHashCode().
Declaration
public override int GetHashCode()
Returns
| Type |
|---|
| System.Int32 |
Overrides
ToString()
Overriden.See System.Object.ToString().
Declaration
public override string ToString()
Returns
| Type |
|---|
| System.String |
Overrides
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. |