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

會指定控制項框線的顯示方式。Specifies how a control's border appears. 可讀寫的 ByteRead/write Byte.



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


如果控制項, BorderStyle 屬性使用下列設定值。For controls, the BorderStyle property uses the following settings.

設定Setting Visual BasicVisual Basic 描述Description
透明Transparent 00 (預設值,僅適用標籤、圖表和子報表)。透明的(Default only for label, chart, and subreport) Transparent
原色Solid 11 (預設值) 實線(Default) Solid line
虛線Dashes 22 虛線Dashed line
短虛線Short dashes 33 有短虛線的虛線Dashed line with short dashes
點線Dots 44 點線Dotted line
稀點狀線Sparse dots 55 點距離較寬的點線Dotted line with dots spaced far apart
虛線-點Dash dot 66 使用虛線-點組合的直線Line with a dash-dot combination
虛線-點-點Dash dot dot 77 使用虛線-點-點組合的直線Line with a dash-dot-dot combination
雙實線Double solid 8 8 雙實線Double solid lines

您可以在 Visual Basic 使用控制項的預設控制項樣式或**DefaultControl** 屬性來設定此屬性的預設值。You can set the default for this property by using a control's default control style or the DefaultControl property in Visual Basic.

控制項的框線樣式可見時才是其 SpecialEffect 屬性設定為平面或陰影。A control's border style is visible only when its SpecialEffect property is set to Flat or Shadowed. 如果以外 SpecialEffect 屬性設為平面或陰影, BorderStyle 屬性設定變更 SpecialEffect 屬性設定為普通。If the SpecialEffect property is set to something other than Flat or Shadowed, setting the BorderStyle property changes the SpecialEffect property setting to Flat.

支援和意見反應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.