Table of contents
TOC
折叠目录
展开目录

TextBox.FontUnderline 属性 (访问)TextBox.FontUnderline Property (Access)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

下划线属性用于指定在以下情况下是否带下划线的文本: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.

读/写boolean 类型的值Read/write Boolean.

语法Syntax

表达式下划线expression. FontUnderline

表达式_一个表示文本框对象的变量。_expression A variable that represents a TextBox object.

注解Remarks

下划线属性使用以下设置。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

概念Concepts

TextBox 对象TextBox Object

© 2018 Microsoft