DataGridView.Height 屬性

取得或設定 DataGridView 的高度。

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

語法

'宣告
Public Property Height As Single
public float Height { get; set; }

屬性值

型別:System.Single
DataGridView 高度 (以點為單位)。

備註

對 Height 和 Top 屬性值所做的變更,會造成 DataGridViewBottom 屬性值變更。

DataGridView.Height 屬性使用點數,而 Control.Height 屬性則使用像素。

範例

如需取得示範如何使用此屬性的程式碼範例,請參閱 Button.HeightMicrosoft.Office.Tools.Word.Controls 命名空間內所有控制項都有一個功能對等的 Height 屬性。

.NET Framework 安全性

請參閱

參考

DataGridView 類別

Microsoft.Office.Tools.Word.Controls 命名空間