次の方法で共有


ErrorProvider.GetIconAlignment メソッド

コントロールに対してエラー アイコンの配置される位置を示す値を取得します。

Public Function GetIconAlignment( _
   ByVal control As Control _) As ErrorIconAlignment
[C#]
public ErrorIconAlignment GetIconAlignment(Controlcontrol);
[C++]
public: ErrorIconAlignment GetIconAlignment(Control* control);
[JScript]
public function GetIconAlignment(
   control : Control) : ErrorIconAlignment;

パラメータ

  • control
    アイコンの位置を取得する対象となるコントロール。

戻り値

ErrorIconAlignment 値の 1 つ。既定のアイコンの配置は MiddleRight です。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

ErrorProvider クラス | ErrorProvider メンバ | System.Windows.Forms 名前空間 | SetIconPadding | SetIconAlignment