PixelRect.

CenterRect(PixelRect) Method

Summary

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

Syntax

public PixelRect CenterRect(PixelRect rect)

Parameters

Name Type Description
rect PixelRect The rectangle to center.

Return Value

Type Description
PixelRect The centered rectangle.