Skip to main content

CenterRect Method

Centers another rectangle in this rectangle.

Definition

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

public PixelRect CenterRect(
PixelRect rect
)

Parameters

  PixelRect
The rectangle to center.

Return Value

PixelRect
The centered rectangle.

See Also

Reference

PixelRect Structure
Avalonia Namespace