LegendCellColumn.Font 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定圖例欄位文字的字型。
public:
virtual property System::Drawing::Font ^ Font { System::Drawing::Font ^ get(); void set(System::Drawing::Font ^ value); };
public virtual System.Drawing.Font Font { get; set; }
member this.Font : System.Drawing.Font with get, set
Public Overridable Property Font As Font
屬性值
一個 Font 指定圖例欄位文字字型的物件。 預設值為 null。
備註
此性質僅在 被 LegendCellColumnType 設定為 Text,且 string 該性質的值被定義 Text 時適用。 你可以用這個 Font 屬性來設定圖例儲存格欄位的字型屬性。
如果你在執行時嘗試更改這個 Font 物件的屬性,就會發生編譯錯誤。 要在執行時設定字型屬性,你必須建立一個新的 Font 物件。