Gets or sets the border style for the control.
[Visual Basic] Overridable Public Property BorderStyle As BorderStyle [C#] public BorderStyle BorderStyle {virtual get; virtual set;} [C++] public: __property virtual BorderStyle get_BorderStyle(); public: __property virtual void set_BorderStyle(BorderStyle); [JScript] public function get BorderStyle() : BorderStyle; public function set BorderStyle(BorderStyle);
One of the BorderStyle values. The default is None.
Exception Type | Condition |
---|---|
InvalidEnumArgumentException | The value assigned is not one of the BorderStyle values. |
You can specify this property at design time or run time.
Label Class | Label Members | System.WinForms Namespace | BorderStyle