CenterRect Method
Centers another rectangle in this rectangle.
Definition
Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public Rect CenterRect(
Rect rect
)
Public Function CenterRect (
rect As Rect
) As Rect
member CenterRect :
rect : Rect -> Rect
Parameters
- Rect
- The rectangle to center.
Return Value
Rect
The centered rectangle.