HwndSourceParameters.Height 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個表示視窗高度的值。
public:
property int Height { int get(); void set(int value); };
public int Height { get; set; }
member this.Height : int with get, set
Public Property Height As Integer
屬性值
視窗高度,以裝置像素為單位。 預設值是 1。
備註
與大多數在 Windows Presentation Foundation(WPF)中測量矩形螢幕區域的方法不同,你指定這個視窗大小是以裝置像素為單位,而非典型的裝置無關單位。 如果你需要將視窗大小調整到內容,請設 SizeToContent 為 true。
不要設 Height 為 0(0)。 這樣做會大幅影響渲染效能。