Represents padding or margin information associated with a gdi+ element. (padding: top, right, bottom, left)
Padding
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 3 | Initializes a new instance of the Padding class using a separate padding size for each edge. |
| Horizontal | 1 | Gets the combined padding for the right and left edges. |
| Vertical | 1 | Gets the combined padding for the top and bottom edges. |
| ToString | 1 | padding: top, right, bottom, left |
| LayoutVector | 1 | padding: top, right, bottom, left |
| op_Explicit | 1 | 转换为css字符串 |
| op_Implicit | 1 | 同时兼容padding css,以及使用size表达式统一赋值 |
| Equals | 1 | Determines whether the value of the specified object is equivalent to the current System.Windows.Forms.Padding. |
| op_Equality | 1 | Tests whether two specified System.Windows.Forms.Padding objects are equivalent. |
| op_Inequality | 1 | Tests whether two specified System.Windows.Forms.Padding objects are not equivalent. |
| GetCanvasRegion | 1 | |
| Offset2D | 1 | |
| TryParse | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| Zero | 1 | A empty padding layout css data |
| Top | 1 | Gets or sets the padding value for the top edge. |
| Right | 1 | Gets or sets the padding value for the right edge. |
| Left | 1 | Gets or sets the padding value for the left edge. |
| Bottom | 1 | Gets or sets the padding value for the bottom edge. |
| IsEmpty | 1 | all padding value is ZERO then it means empty |
04 Members
Int32)Initializes a new instance of the Padding class using the supplied padding size for all edges.
| Name | Type | Description |
|---|---|---|
all | Int32 | The number of pixels to be used for padding for all edges. |
Int32, Int32, Int32, Int32)Initializes a new instance of the Padding class using a separate padding size for each edge.
| Name | Type | Description |
|---|---|---|
left | Int32 | The padding size, in pixels, for the left edge. |
top | Int32 | The padding size, in pixels, for the top edge. |
right | Int32 | The padding size, in pixels, for the right edge. |
bottom | Int32 | The padding size, in pixels, for the bottom edge. |
Int32())create padding object with a given layout pixels vector: top, right, bottom, left
| Name | Type | Description |
|---|---|---|
layoutVector | Int32() |
Gets the combined padding for the right and left edges.
Gets the combined padding for the top and bottom edges.
padding: top, right, bottom, left
padding: top, right, bottom, left
转换为css字符串
| Name | Type | Description |
|---|---|---|
padding | Padding | - |
String)同时兼容padding css,以及使用size表达式统一赋值
| Name | Type | Description |
|---|---|---|
css$ | String | - |
Object)Determines whether the value of the specified object is equivalent to the current System.Windows.Forms.Padding.
| Name | Type | Description |
|---|---|---|
other | Object | The object to compare to the current System.Windows.Forms.Padding. |
true if the System.Windows.Forms.Padding objects are equivalent; otherwise, false.
Tests whether two specified System.Windows.Forms.Padding objects are equivalent.
| Name | Type | Description |
|---|---|---|
p1 | Padding | A System.Windows.Forms.Padding to test. |
p2 | Padding | A System.Windows.Forms.Padding to test. |
true if the two System.Windows.Forms.Padding objects are equal; otherwise, false.
Tests whether two specified System.Windows.Forms.Padding objects are not equivalent.
| Name | Type | Description |
|---|---|---|
p1 | Padding | A System.Windows.Forms.Padding to test. |
p2 | Padding | A System.Windows.Forms.Padding to test. |
true if the two System.Windows.Forms.Padding objects are different; otherwise, false.
A empty padding layout css data
zero padding layout element, but not empty
Gets or sets the padding value for the top edge.
The padding, in pixels, for the top edge.
Gets or sets the padding value for the right edge.
The padding, in pixels, for the right edge.
Gets or sets the padding value for the left edge.
The padding, in pixels, for the left edge.
Gets or sets the padding value for the bottom edge.
The padding, in pixels, for the bottom edge.
all padding value is ZERO then it means empty
String, Padding)