DataGridViewAdvancedBorderStyle.All 屬性

定義

取得或設定儲存格之所有框線的框線樣式。Gets or sets the border style for all of the borders of a cell.

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

屬性值

例外狀況

在設定這個屬性時所指定的值並非有效的 DataGridViewAdvancedCellBorderStyle 值。The specified value when setting this property is not a valid DataGridViewAdvancedCellBorderStyle values.

設定這個屬性時所指定的值是 NotSetThe specified value when setting this property is NotSet.

-或--or- 在設定這個屬性時所指定的值為 OutsetDoubleOutsetPartialInsetDouble,而且這個 DataGridViewAdvancedBorderStyle 執行個體是經由 AdvancedCellBorderStyle 屬性來擷取。The specified value when setting this property is OutsetDouble, OutsetPartial, or InsetDouble and this DataGridViewAdvancedBorderStyle instance was retrieved through the AdvancedCellBorderStyle property.

備註

DataGridViewAdvancedCellBorderStyle All NotSet如果、 Right、和屬性Bottom未設定為相同的值, 則屬性值為。 Top LeftIf the Left, Right, Top, and Bottom properties are not set to the same DataGridViewAdvancedCellBorderStyle value, the All property value is NotSet.

適用於