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

ComboBox.ScrollBarAlign 属性 (访问)ComboBox.ScrollBarAlign Property (Access)

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

您可以使用滚动条对齐可以指定或确定垂直滚动条的对齐方式。读取/写入字节You can use the ScrollBarAlign to specify or determine the alignment of a vertical scroll bar. Read/write Byte.

语法Syntax

表达式滚动条对齐expression. ScrollBarAlign

表达式_表示组合框对象变量。_expression A variable that represents a ComboBox object.

注解Remarks

滚动条对齐属性使用以下设置。The ScrollBarAlign property uses the following settings.

设置SettingVisual BasicVisual Basic说明Description
系统System00垂直滚动条放在左边,如果窗体或报表的方向属性是从右到左;和右如果窗体或报表的方向属性从左到右。Vertical scroll bar is placed on the left if the form or report Orientation property is right to left; and on the right if the form or report Orientation property is left to right.
Right11在控件右侧对齐垂直滚动条。Aligns vertical scroll bar on the right side of the control.
Left22在控件左侧对齐垂直滚动条。Aligns vertical scroll bar on the left side of the control.

对于组合框和列表框,滚动条对齐还控制滚动条上方的框中按钮的位置。For combo and list boxes, ScrollBarAlign also controls the placement of the box button above the scroll bar.

示例Example

下面的示例在“International Shipping”窗体中“Country”组合框左侧对齐垂直滚动条。The following example aligns the vertical scroll bar on the left side of the "Country" combo box in the "International Shipping" form.

Forms("International Shipping").Controls("Country").ScrollBarAlign = 2

另请参阅See also

概念Concepts

组合框对象ComboBox Object

© 2018 Microsoft