通过


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

适用于