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

埋め込みを取得する対象となるコントロール。

戻り値

Int32

アイコンとコントロールの間に空ける間隔のピクセル数。

例外

controlnullです。

注釈

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

適用対象

こちらもご覧ください