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 | |
Bottom |
int |
Gets or sets the padding value for the bottom edge. | |
Horizontal |
int |
Gets the combined padding for the right and left edges. | |
Left |
int |
Gets or sets the padding value for the left edge. | |
Right |
int |
Gets or sets the padding value for the right edge. | |
Top |
int |
Gets or sets the padding value for the top edge. | |
Vertical |
int |
Gets the combined padding for the top and bottom edges. |
Methods
Name | Description | |
Add(p1,p2) | Computes the sum of the two specified padding values. | |
Create(all) | Initializes a new instance of the class using the supplied padding value for all edges. | |
Create(left,top,right,bottom) | Initializes a new instance of the class using the specified padding sizefor each edge. | |
Equals(p) | Determines whether the value of the specified padding object is equivalent to the current Padding. | |
Equals(obj) | Determines whether the value of the specified object is equivalent to the current Padding. | |
Subtract(p1,p2) | Subtracts one specified padding value from another. |
Operators
Name | Description | |
operator+ | Adds a specified Padding object to the current Padding instance, yielding a new Padding object. | |
operator- | Subtracts a specified Padding object from the current Padding instance, yielding a new Padding object. | |
operator<> | True if two specified Padding objects are not equivalent. | |
operator= | True if two specified Padding objects are equivalent |
Inheritance Hierarchy
elsystem.windows.forms.Padding