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 值。 默认图标对齐方式为 MiddleRight

例外

controlnull

适用于

另请参阅