ErrorProvider.GetIconPadding(Control) Method
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.
Returns the amount of extra space to leave next to the error icon.
public:
int GetIconPadding(System::Windows::Forms::Control ^ control);
public int GetIconPadding (System.Windows.Forms.Control control);
member this.GetIconPadding : System.Windows.Forms.Control -> int
Public Function GetIconPadding (control As Control) As Integer
Parameters
- control
- Control
The control to get the padding for.
Returns
The number of pixels to leave between the icon and the control.
Exceptions
control
is null
.
Remarks
Many icons typically have extra space around their central images, so the padding value is only necessary if additional space is necessary. Padding values can be positive or negative. Negative values cause the icon to overlap the edge of the control. The default icon padding is 0.
Applies to
See also
.NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示