Class DisplayMode
Describes the display mode.
[DataContract]
public class DisplayMode
- Inheritance
-
DisplayMode
- Inherited Members
Properties
AspectRatio
Gets a value indicating the aspect ratio of the display mode
public float AspectRatio { get; }
Property Value
Format
Gets a value indicating the surface format of the display mode.
public SurfaceFormat Format { get; }
Property Value
Height
Gets a value indicating the screen height, in pixels.
public int Height { get; }
Property Value
TitleSafeArea
Gets the bounds of the display that is guaranteed to be visible by the users screen.
public Rectangle TitleSafeArea { get; }
Property Value
Width
Gets a value indicating the screen width, in pixels.
public int Width { get; }
Property Value
Methods
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Operators
operator ==(DisplayMode, DisplayMode)
Compares the current instance of the DisplayMode class to another instance to determine whether they are equal.
public static bool operator ==(DisplayMode left, DisplayMode right)
Parameters
left
DisplayModeThe DisplayMode object on the left of the equality operator.
right
DisplayModeThe DisplayMode object on the right of the equality operator.
Returns
- bool
true if the objects are equal; otherwise, false.
operator !=(DisplayMode, DisplayMode)
Compares the current instance of the DisplayMode class to another instance to determine whether they are different.
public static bool operator !=(DisplayMode left, DisplayMode right)
Parameters
left
DisplayModeThe DisplayMode object on the left of the inequality operator.
right
DisplayModeThe DisplayMode object on the right of the inequality operator.
Returns
- bool
true if the objects are different; otherwise, false.