Padding Class

Represents the padding or margin information for a Forms control. Access using the Margin and Padding properties of the Control class which is inherited by Forms objects.

Namespace: elsystem.windows.forms

Properties

   Additional properties, methods, and events are described in the classes listed under Inheritance Hierarchy (see below).

  Name Type Description
Public property Bottom

int

Gets or sets the padding value for the bottom edge.
Public property Horizontal

int

Gets the combined padding for the right and left edges.
Public property Left

int

Gets or sets the padding value for the left edge.
Public property Right

int

Gets or sets the padding value for the right edge.
Public property Top

int

Gets or sets the padding value for the top edge.
Public property Vertical

int

Gets the combined padding for the top and bottom edges.
Methods
  Name Description
Public property Add(p1,p2) Computes the sum of the two specified padding values.
Public property Create(all) Initializes a new instance of the class using the supplied padding value for all edges.  
Public property Create(left,top,right,bottom) Initializes a new instance of the class using the specified padding sizefor each edge.
Public property Equals(p) Determines whether the value of the specified padding object is equivalent to the current Padding.
Public property Equals(obj) Determines whether the value of the specified object is equivalent to the current Padding.
Public property Subtract(p1,p2) Subtracts one specified padding value from another.
Operators
  Name Description
Public property operator+ Adds a specified Padding object to the current Padding instance, yielding a new Padding object.
Public property operator- Subtracts a specified Padding object from the current Padding instance, yielding a new Padding object.
Public property operator<> True if two specified Padding objects are not equivalent.
Public property operator= True if two specified Padding objects are equivalent
Inheritance Hierarchy

elsystem.Object

elsystem.windows.forms.Padding