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 对象。