TableLayoutPanelCellBorderStyle Enumerazione
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Specifica lo stile del bordo di una cella in un controllo layout di tabella.
public enum class TableLayoutPanelCellBorderStyle
public enum TableLayoutPanelCellBorderStyle
type TableLayoutPanelCellBorderStyle =
Public Enum TableLayoutPanelCellBorderStyle
- Ereditarietà
Campi
| Nome | Valore | Descrizione |
|---|---|---|
| None | 0 | Nessun bordo. |
| Single | 1 | Bordo a riga singola. |
| Inset | 2 | Bordo incassato a riga singola. |
| InsetDouble | 3 | Bordo incassato a doppia riga. |
| Outset | 4 | Bordo a riga singola alzata. |
| OutsetDouble | 5 | Bordo a linee doppie alzate. |
| OutsetPartial | 6 | Bordo a riga singola contenente una parte sollevata. |
Esempio
Nell'esempio seguente viene illustrato come utilizzare l'enumerazione TableLayoutPanelCellBorderStyle per impostare per CellBorderStyle un TableLayoutPanel controllo . Questo esempio di codice fa parte di un esempio più ampio fornito per il TableLayoutPanel controllo .
private void borderStyleOutsetRadioBtn_CheckedChanged(
System.Object sender,
System.EventArgs e)
{
this.TableLayoutPanel1.CellBorderStyle =
TableLayoutPanelCellBorderStyle.Outset;
}
private void borderStyleNoneRadioBtn_CheckedChanged(
System.Object sender,
System.EventArgs e)
{
this.TableLayoutPanel1.CellBorderStyle =
TableLayoutPanelCellBorderStyle.None;
}
private void borderStyleInsetRadioBtn_CheckedChanged(
System.Object sender,
System.EventArgs e)
{
this.TableLayoutPanel1.CellBorderStyle =
TableLayoutPanelCellBorderStyle.Inset;
}
Private Sub borderStyleOutsetRadioBtn_CheckedChanged( _
ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles borderStyleOutsetRadioBtn.CheckedChanged
Me.TableLayoutPanel1.CellBorderStyle = TableLayoutPanelCellBorderStyle.Outset
End Sub
Private Sub borderStyleNoneRadioBtn_CheckedChanged( _
ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles borderStyleNoneRadioBtn.CheckedChanged
Me.TableLayoutPanel1.CellBorderStyle = TableLayoutPanelCellBorderStyle.None
End Sub
Private Sub borderStyleInsetRadioBtn_CheckedChanged( _
ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles borderStyleInsetRadioBtn.CheckedChanged
Me.TableLayoutPanel1.CellBorderStyle = TableLayoutPanelCellBorderStyle.Inset
End Sub
Commenti
L'enumerazione TableLayoutPanelCellBorderStyle rappresenta le diverse opzioni di stile del bordo per una cella in un oggetto TableLayoutPanel. La larghezza del bordo della cella per ogni stile è determinata dalla TableLayoutPanel classe . Lo spazio per il bordo viene ricavato dall'oggetto TableLayoutPanel del DisplayRectanglecontrollo .