Show / Hide Table of Contents

    Class Display

    Display metrics.

    Inheritance
    Object
    Display
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: FormsGestures
    Assembly: FormsGestures.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

    true if is landscape; otherwise, false.

    IsPortrait

    Gets a value indicating whether this Display is portrait.

    Declaration
    public static bool IsPortrait { get; }
    Property Value
    Type Description
    Boolean

    true if is portrait; otherwise, false.

    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)

    Back to top Copyright © 2018 42nd Parallel