Rectangle.Center Property (Microsoft.Xna.Framework)

A Point located in the center of this Rectangle.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public Point Center { get; }

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Property Value

Type: Microsoft.Xna.Framework.Point
If Width or Height is an odd number, the center point will be rounded down.
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop