Skip to main content

CenterRect Method

Centers another rectangle in this rectangle.

Definition

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public Rect CenterRect(
Rect rect
)

Parameters

  Rect
The rectangle to center.

Return Value

Rect
The centered rectangle.

See Also

Reference

Rect Structure
Avalonia Namespace