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 點。

適用於