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。
備註
只有當 設定為 Text 時,才適用 LegendCellColumnType 這個屬性,而且 string 會為 Text 屬性定義值。 您可以使用 Font 屬性來設定圖例資料格資料行的字型屬性。
如果您嘗試在執行時間變更這個 Font 物件的屬性,就會發生編譯錯誤。 若要在執行時間設定字型屬性,您必須建立新的 Font 物件。