Table of Contents

Class DisplayMode

Namespace
Microsoft.Xna.Framework.Graphics
Assembly
MonoGame.Framework.dll
[DataContract]
public class DisplayMode
Inheritance
DisplayMode
Inherited Members

Properties

AspectRatio

public float AspectRatio { get; }

Property Value

float

Format

public SurfaceFormat Format { get; }

Property Value

SurfaceFormat

Height

public int Height { get; }

Property Value

int

TitleSafeArea

public Rectangle TitleSafeArea { get; }

Property Value

Rectangle

Width

public int Width { get; }

Property Value

int

Methods

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

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)

public static bool operator ==(DisplayMode left, DisplayMode right)

Parameters

left DisplayMode
right DisplayMode

Returns

bool

operator !=(DisplayMode, DisplayMode)

public static bool operator !=(DisplayMode left, DisplayMode right)

Parameters

left DisplayMode
right DisplayMode

Returns

bool