本文為機器翻譯文章。如需檢視英文版,請選取 [原文] 核取方塊。您也可以將滑鼠指標移到文字上,即可在快顯視窗顯示英文原文。
譯文
原文

ListBox.Width 屬性

 

取得或設定 ListBox 的寬度 (以點為單位)。

命名空間:   Microsoft.Office.Tools.Excel.Controls
組件:  Microsoft.Office.Tools.Excel.v4.0.Utilities (在 Microsoft.Office.Tools.Excel.v4.0.Utilities.dll 中)

[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)]
public double Width { get; set; }

屬性值

Type: System.Double

ListBox 的寬度 (以點為單位)。

Changes made to the Width and left property values cause the Right property value of the ListBox to change.

The ListBox.Width property uses points, whereas Control.Width property uses pixels.

Setting the value to a negative number or a number higher than 12288 does not throw an exception but results in the control being set between 1 and 12288.

For a code example that demonstrates how to use this property, see Button.Width.All controls in the Microsoft.Office.Tools.Excel.Controls namespace have a functionally equivalent Width property.

回到頁首
顯示: