Rect.

CenterRect(Rect) Method

Summary

Centers another rectangle in this rectangle.
Namespace
Avalonia
Containing Type
Rect

Syntax

public Rect CenterRect(Rect rect)

Parameters

Name Type Description
rect Rect The rectangle to center.

Return Value

Type Description
Rect The centered rectangle.