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

OptionButton.LabelAlign 属性 (访问)OptionButton.LabelAlign Property (Access)

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

该属性指定新控件附加标签中的文本对齐方式。读取/写入字节The property specifies the text alignment within attached labels on new controls. Read/write Byte.

语法Syntax

表达式标签对齐方式expression. LabelAlign

表达式_一个表示一个选项按钮对象的变量。_expression A variable that represents an OptionButton object.

注解Remarks

标签对齐方式属性使用以下设置。The LabelAlign property uses the following settings.

设置Setting说明Description
00(默认值)标签文本左对齐。(Default) The label text aligns to the left.
11标签文本左对齐。The label text aligns to the left.
22标签文本居中。The label text is centered.
33标签文本右对齐。The label text aligns to the right.
44标签文本两端对齐。The label text is evenly distributed.

在 Visual Basic 中使用控件的默认控件样式或DefaultControl属性,可以设置标签对齐方式属性。You can set the LabelAlign property by using a control's default control style or the DefaultControl property in Visual Basic.

在创建时,控件将具有一个附加的标签,(只要他们自动标签属性设置为是)。标签对齐方式的默认控件样式设置的更改只影响控件在当前窗体或报表上创建。When created, controls have an attached label (as long as their AutoLabel property is set to Yes). Changes to the LabelAlign default control style setting affect only controls created on the current form or report.

另请参阅See also

概念Concepts

OptionButton 对象OptionButton Object

© 2018 Microsoft