ComboBox.FlatStyle 屬性

定義

取得或設定 ComboBox 的外觀。

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

屬性值

FlatStyle

一個列舉值,指定控制項的外觀。 這些選項包括 FlatPopupStandardSystem。 預設為 Standard

例外狀況

指定值不是 FlatStyle 的其中一個值。

備註

從 .NET Framework 4.5.2 開始,如果 FlatStyle 屬性設定為 FlatPopup ,則下拉式箭號可能會調整大小。 當app.config檔案包含下列專案時,調整大小是由系統 DPI 設定所決定:

<appSettings>  
  <add key="EnableWindowsFormsHighDpiAutoResizing" value="true" />  
</appSettings>  

適用於