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

TabControl.Style 属性 (访问)TabControl.Style Property (Access)

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

可以使用样式属性可以指定或确定选项卡控件上的选项卡的外观。读取/写入字节You can use the Style property to specify or determine the appearance of tabs on a tab control. Read/write Byte.

语法Syntax

表达式样式expression. Style

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

注解Remarks

样式属性使用以下设置。The Style property uses the following settings.

设置SettingVisual BasicVisual Basic说明Description
标签Tabs00(默认设置)选项卡显示为选项卡。(Default) Tabs appear as tabs.
按钮Buttons11选项卡显示为按钮。Tabs appear as buttons.
None22控件中不显示选项卡。No tabs appear in the control.

您还可以通过在 Visual Basic 中设置控件的DefaultControl属性设置此属性的默认值。You can also set the default for this property by setting a control's DefaultControl property in Visual Basic.

您可以在任何视图中设置样式属性。You can set the Style property in any view.

当选项卡控件的Style属性设置标签或按钮时,选项卡的外观选项卡固定高度选项卡固定宽度MultiRow属性由确定。When the tab control's Style property is set to Tabs or Buttons, the appearance of the tabs is determined by the TabFixedHeight, TabFixedWidth, and MultiRow properties.

如果希望完全控制何时用户能在选项卡之间移动,您可以在选项卡控件的Style属性设置为 None。在以前版本的 Microsoft Access 中,使用多页窗体创建向导对话框。现在可以使用选项卡控件来创建您自己的向导的包含在单独的页的选项卡控件的Style属性设置为无向导的每页。You could set the tab control's Style property to None if you wanted complete control over when a user could move between tabs. In prior versions of Microsoft Access, wizard dialogs were created by using multiple-page forms. You can now use a tab control create your own wizard with each page of the wizard contained on a separate page of a tab control with its Style property set to None.

示例Example

下面的示例将选项卡作为按钮出现在 Mailing List(邮件列表)窗体中名为 TabCtl1 的选项卡控件上。The following example causes tabs to appear as buttons on the tab control named "TabCtl1" on the "Mailing List" form.

Forms("Mailing List").Controls("TabCtl1").Style = 1

另请参阅See also

概念Concepts

卡对象TabControl Object

© 2018 Microsoft