CommandButton.FontUnderline 属性 (Access)CommandButton.FontUnderline property (Access)

FontUnderline属性可用于指定在下列情况下是否文本是否加下划线:You can use the FontUnderline property to specify whether text is underlined in the following situations:

  • 在显示或打印窗体和报表上的控件时。When displaying or printing controls on forms and reports.

  • 当在报表中使用Print方法。When using the Print method on a report.

可读写 BooleanRead/write Boolean.

语法Syntax

expressionexpression. FontUnderline

_表达式_一个代表CommandButton对象的变量。expression A variable that represents a CommandButton object.

说明Remarks

FontUnderline属性使用下列设置。The FontUnderline property uses the following settings.

设置Setting 说明Description
TrueTrue 文本加下划线。The text is underlined.
FalseFalse (默认值)文本不加下划线。(Default) The text isn't underlined.

对于报表,您可以使用此属性只能在事件过程中或在宏中指定OnPrint事件属性设置。For reports, you can use this property only in an event procedure or in a macro specified by the OnPrint event property setting.

可以通过 Visual Basic 中使用的默认控件样式或DefaultControl属性来设置此属性的默认值。You can set the default for this property by using the default control style or the DefaultControl property in Visual Basic.

另请参阅See also

命令按钮对象CommandButton Object