Class Display
Provides characteristics of the display in which the app is presented
Inherited Members
Namespace: Forms9Patch
Assembly: Forms9Patch.dll
Syntax
public static class Display
Properties
Height
The hieght (pixels) of the screen
Declaration
public static float Height { get; }
Property Value
Type | Description |
---|---|
Single | screen height (pixels) |
IsLandscape
Gets a value indicating whether this Display is landscape.
Declaration
public static bool IsLandscape { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
IsPortrait
Gets a value indicating whether this Display is portrait.
Declaration
public static bool IsPortrait { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
Orientation
Gets the orientation.
Declaration
public static DisplayOrientation Orientation { get; }
Property Value
Type | Description |
---|---|
DisplayOrientation | The orientation. |
SafeAreaInset
Gets or sets the safe area inset (I'm looking at you, iPhone X).
Declaration
public static Thickness SafeAreaInset { get; }
Property Value
Type | Description |
---|---|
Thickness | The safe area inset. |
Scale
The scale (relative to 160 dpi) of the screen
Declaration
public static float Scale { get; }
Property Value
Type | Description |
---|---|
Single | screen scale (1x=160dpi) |
StatusBarOffset
Gets the status bar offset - the offset needed for MainPage to be in the right place at app start.
Declaration
public static double StatusBarOffset { get; }
Property Value
Type | Description |
---|---|
Double | The status bar offset. |
Width
The width (pixels) of the screen
Declaration
public static float Width { get; }
Property Value
Type | Description |
---|---|
Single | screen width (pixels) |