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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om