ErrorProvider.GetIconPadding(Control) メソッド

定義

エラー アイコンの横に残す余分な領域の量を返します。

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

パラメーター

control
Control

パディングを取得するコントロール。

返品

アイコンとコントロールの間に残すピクセル数。

例外

controlnullです。

注釈

多くのアイコンは通常、中央の画像の周囲に余分なスペースがあるため、埋め込み値は追加の領域が必要な場合にのみ必要です。 埋め込み値は、正または負の値にすることができます。 負の値を指定すると、アイコンがコントロールの端に重なります。 既定のアイコンパディングは 0 です。

適用対象

こちらもご覧ください