通过


LegendCellColumn.Font 属性

定义

获取或设置图例列文本的字体。

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该属性且 stringText 该属性定义值时。 可以使用该 Font 属性设置图例单元格列的字体属性。

如果在运行时尝试更改此 Font 对象的属性,将发生编译错误。 若要在运行时设置字体属性,必须创建新 Font 对象。

适用于