RadControls for WinForms

Retrieves a Rectangle structure, that is aligned within the specified bounds, and is with the desired size.

Namespace: Telerik.WinControls.UI.Docking
Assembly: Telerik.WinControls.RadDock (in Telerik.WinControls.RadDock.dll) Version: 2013.1.321.40 (2013.1.321.40)

Syntax

C#
public static Rectangle CenterRect(
	Rectangle bounds,
	Size size
)
Visual Basic
Public Shared Function CenterRect ( _
	bounds As Rectangle, _
	size As Size _
) As Rectangle

Parameters

bounds
Type: System.Drawing..::..Rectangle
The outer Rectangle structure, used as an alignment
size
Type: System.Drawing..::..Size
The size of the newly created rectangle.

Return Value

See Also