Property: Font

 Standard 或更高

Font fontobject

方法:


属性:


活动:


通过名称、样式、效果和文本行的大小指定字体。

字体属性是一个说明字体不同属性的对象。

字体对象的用法如下:

更改尺寸:
Barcode1.Font.Size = 10

更改字体
Barcode1.Font.Name = "Arial"

改变风格和效果
Barcode1.Font.Bold = True
Barcode1.Font.Italic = True
Barcode1.Font.Underline = True
Barcode1.Font.Strikethrough = True

在某些开发环境中,这些属性由枚举类型决定,例如 Delphi。 请查看开发系统的帮助,了解如何处理这些问题。


实例:
ActiveBarcode: 条形码 @ Font: Arial, 12pt, Bold
Font: Arial, 12pt, Bold
ActiveBarcode: 条形码 @ Font: Comix, 14pt, Standard
Font: Comix, 14pt, Standard

代码示例

Delphi:
Barcode1.Font.name := 'Courier New';
Barcode1.Font.size := 14;
Barcode1.Font.style := [fsbold];