Legend.Font 屬性

定義

取得或設定一個 Font 物件,用來設定圖例的字型屬性。

public:
 property System::Drawing::Font ^ Font { System::Drawing::Font ^ get(); void set(System::Drawing::Font ^ value); };
[System.ComponentModel.Bindable(true)]
public System.Drawing.Font Font { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.Font : System.Drawing.Font with get, set
Public Property Font As Font

屬性值

一個 Font 用來設定圖例字型屬性的物件。

屬性

備註

如果你在執行時嘗試更改這個 Font 物件的屬性,就會發生編譯錯誤。 要在執行時設定字型屬性,你必須建立一個新的 Font 物件。

備註

如果你設定 Legend.Font.Size 屬性,該 IsTextAutoFit 屬性會被設為 false。 另外,如果你把屬性 IsTextAutoFit 設為 true,這個屬性會被重置成預設值,也就是 8 點。

適用於