UIView.Center Property

Definition

The center of the view, in the container coordinate space.

[get: Foundation.Export("center")]
[set: Foundation.Export("setCenter:")]
public virtual CoreGraphics.CGPoint Center { get; set; }
member this.Center : CoreGraphics.CGPoint with get, set

Property Value

CGPoint

This value is measured in points, not pixels.

Implements

Attributes

Remarks

When you update this property, this will automatically adjust corresponding Frame.

Applies to