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.ErrorIconAlignment
Public Function GetIconAlignment (control As Control) As ErrorIconAlignment
参数
- control
- Control
要获取其图标位置的控件。
返回
其中一个 ErrorIconAlignment 值。 默认图标对齐方式为 MiddleRight。
例外
control 是 null。