ComboBox.ScrollBarAlign 屬性 (Access)ComboBox.ScrollBarAlign property (Access)

您可以使用ScrollBarAlign屬性來指定或決定的垂直捲軸列對齊方式。You can use the ScrollBarAlign property to specify or determine the alignment of a vertical scroll bar. 可讀寫的 ByteRead/write Byte.

語法Syntax

運算式ScrollBarAlignexpression.ScrollBarAlign

_運算式_代表**ComboBox** 物件的變數。expression A variable that represents a ComboBox object.

註解Remarks

ScrollBarAlign 屬性使用下列設定值。The ScrollBarAlign property uses the following settings.

設定Setting Visual BasicVisual Basic 描述Description
系統System 00 垂直捲軸置於左側,如果表單或報表的Orientation屬性為從右到左,並在右邊如果表單或報表的Orientation屬性從左至右。A 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.
Right 11 對齊控制項右側的垂直捲軸。Aligns the vertical scroll bar on the right side of the control.
Left 22 對齊控制項左側的垂直捲軸。Aligns the vertical scroll bar on the left side of the control.

對於下拉式方塊和清單方塊, ScrollBarAlign 也會控制捲軸列上方方塊按鈕的位置。For combo and list boxes, ScrollBarAlign also controls the placement of the box button above the scroll bar.

範例Example

下列範例會對齊左邊的國家/地區] 下拉式方塊中International Shipping表單上的垂直捲軸。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

支援和意見反應Support and feedback

有關於 Office VBA 或這份文件的問題或意見反應嗎?Have questions or feedback about Office VBA or this documentation? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.