ErrorProvider.GetIconAlignment(Control) 方法

定义

获取一个值,通过该值指示错误图标相对于控件的放置位置。

public:
 System::Windows::Forms::ErrorIconAlignment GetIconAlignment(System::Windows::Forms::Control ^ control);
public System.Windows.Forms.ErrorIconAlignment GetIconAlignment (System.Windows.Forms.Control control);
member this.GetIconAlignment : System.Windows.Forms.Control -> System.Windows.Forms.ErrorIconAlignment
Public Function GetIconAlignment (control As Control) As ErrorIconAlignment

参数

control
Control

要获取其图标位置的控件。

返回

ErrorIconAlignment

ErrorIconAlignment 值之一。 默认的图标对齐方式是 MiddleRight

例外

controlnull

适用于

另请参阅