HttpCapabilitiesBase.ScreenPixelsHeight 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳顯示器的大致高度,以像素為單位。
public:
virtual property int ScreenPixelsHeight { int get(); };
public virtual int ScreenPixelsHeight { get; }
member this.ScreenPixelsHeight : int
Public Overridable ReadOnly Property ScreenPixelsHeight As Integer
屬性值
顯示器的大致高度,以像素為單位。 預設值為 72。
備註
回傳的值可由假設的字元大小與字元高度推導而來。 決定像素高度的演算法結合預設字型大小(來自 .config 檔案)、裝置特定大小(同樣來自 .config 檔案)以及裝置傳送的明確標頭。 這些數值不一定完全精確。 有些裝置可能依賴內部預設值,這只是近似的實際高度。