ArcGIS Pro 2.7 API Reference Guide
CenterAt Method (Envelope)
Example 

ArcGIS.Core.Geometry Namespace > Envelope Class : CenterAt Method
x value.
y value.
Center the envelope at the specified x and y coordinate.
Syntax
public Envelope CenterAt( 
   double x,
   double y
)
Public Function CenterAt( _
   ByVal x As Double, _
   ByVal y As Double _
) As Envelope

Parameters

x
x value.
y
y value.

Return Value

The centered envelope.
Example
Envelope env = EnvelopeBuilder.CreateEnvelope(1.0, 1.0, 5.0, 5.0);
Envelope centered = GeometryEngine.Instance.CenterAt(env, 2.0, 2.0);

// centered.Center.X = 2.0
// centered.Center.Y = 2.0
// centered.XMin = 0
// centered.YMin = 0
// centered.XMax = 4
// centered.YMax = 4

centered = env.CenterAt(4.0, 3.0);
// centered.Center.X == 4.0
// centered.Center.Y == 3.0
// centered.XMin == 2.0
// centered.YMin == 1.0
// centered.XMax == 6.0
// centered.YMax == 5.0
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Envelope Class
Envelope Members