ToolStripStatusLabel.BorderStyle Właściwość

Definicja

Pobiera lub ustawia styl obramowania obiektu ToolStripStatusLabel.

public:
 property System::Windows::Forms::Border3DStyle BorderStyle { System::Windows::Forms::Border3DStyle get(); void set(System::Windows::Forms::Border3DStyle value); };
public System.Windows.Forms.Border3DStyle BorderStyle { get; set; }
member this.BorderStyle : System.Windows.Forms.Border3DStyle with get, set
Public Property BorderStyle As Border3DStyle

Wartość właściwości

Jedna z Border3DStyle wartości. Wartość domyślna to Flat.

Wyjątki

Wartość nie BorderStyle jest jedną z Border3DStyle wartości.

Przykłady

Poniższy przykład kodu przedstawia składnię różnych ToolStripStatusLabel typowych właściwości, w tym BorderStyle właściwości.

// 
toolStripStatusLabel1.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)((((System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Top)
            | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right)
            | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom)));
toolStripStatusLabel1.BorderStyle = System.Windows.Forms.Border3DStyle.Raised;
toolStripStatusLabel1.IsLink = true;
toolStripStatusLabel1.Name = "toolStripStatusLabel1";
toolStripStatusLabel1.Size = new System.Drawing.Size(246, 20);
toolStripStatusLabel1.Spring = true;
toolStripStatusLabel1.Text = "toolStripStatusLabel1";
toolStripStatusLabel1.Alignment = ToolStripItemAlignment.Left;
' 
toolStripStatusLabel1.BorderSides = CType(System.Windows.Forms.ToolStripStatusLabelBorderSides.Left Or System.Windows.Forms.ToolStripStatusLabelBorderSides.Top Or System.Windows.Forms.ToolStripStatusLabelBorderSides.Right Or System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom, System.Windows.Forms.ToolStripStatusLabelBorderSides)
toolStripStatusLabel1.BorderStyle = System.Windows.Forms.Border3DStyle.Raised
toolStripStatusLabel1.IsLink = True
toolStripStatusLabel1.Name = "toolStripStatusLabel1"
toolStripStatusLabel1.Size = New System.Drawing.Size(246, 20)
toolStripStatusLabel1.Spring = True
toolStripStatusLabel1.Text = "toolStripStatusLabel1"
toolStripStatusLabel1.Alignment = ToolStripItemAlignment.Left

Dotyczy