ScreenPixelsHeight Property
.NET Framework 1.1
Returns the approximate height of the display, in pixels. The default value is 72.
public virtual int ScreenPixelsHeight {
get
}
Remarks
This value can be derived from the assumed character size and actual screen pixel size. The algorithm for determining the height uses a combination of the default sizes (from the .config file), device-specific sizes (again, in the .config file) and explicit headers sent by the devices. These values are not necessarily exact (some devices might rely on default values).
This value is calculated using the following algorithm.
if this["screenPixelsHeight"] is not null, then return this["screenPixelsHeight"]; else, if this["screenCharactersHeight"] is not(null) and this["characterHeight"] is not null, then return this["screenCharactersHeight"] * this["characterHeight"]; else, if this["screenCharactersHeight"] is not null, then return this["screenCharactersHeight"] * this["defaultCharacterHeight"]; else, if this["characterHeight"] is not null, then return this["defaultScreenCharacterHeight"] * this["characterHeight"]; else, return this["defaultScreenPixelsHeight"]
Note You cannot rely on the following statement.
this.ScreenPixelsHeight == this["screenPixelsHeight"]
See Also
Applies to: MobileCapabilities Class