ErrorProvider.GetIconAlignment(Control) 方法    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取一个值,通过该值指示错误图标相对于控件的放置位置。
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.ErrorIconAlignmentPublic Function GetIconAlignment (control As Control) As ErrorIconAlignment参数
- control
- Control
要获取其图标位置的控件。
返回
ErrorIconAlignment 值之一。 默认的图标对齐方式是 MiddleRight。
例外
control 为 null。