Padding Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the Padding class.
Overloads
Padding(Int32) |
Initializes a new instance of the Padding class using the supplied padding size for all edges. |
Padding(Int32, Int32, Int32, Int32) |
Initializes a new instance of the Padding class using a separate padding size for each edge. |
Padding(Int32)
Initializes a new instance of the Padding class using the supplied padding size for all edges.
public:
Padding(int all);
public Padding (int all);
new System.Windows.Forms.Padding : int -> System.Windows.Forms.Padding
Public Sub New (all As Integer)
Parameters
- all
- Int32
The number of pixels to be used for padding for all edges.
Remarks
This constructor sets the Right, Left, Bottom, Top and All properties to the value of the all
parameter.
See also
- All
- How to: Outline a Windows Forms Control Using Padding
- Margin and Padding in Windows Forms Controls
Applies to
Padding(Int32, Int32, Int32, Int32)
Initializes a new instance of the Padding class using a separate padding size for each edge.
public:
Padding(int left, int top, int right, int bottom);
public Padding (int left, int top, int right, int bottom);
new System.Windows.Forms.Padding : int * int * int * int -> System.Windows.Forms.Padding
Public Sub New (left As Integer, top As Integer, right As Integer, bottom As Integer)
Parameters
- 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.
Remarks
If all of the parameter values are equal, then the All property will reflect this common value.
See also
- Left
- Top
- Right
- Bottom
- How to: Outline a Windows Forms Control Using Padding
- Margin and Padding in Windows Forms Controls
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기