Click or drag to resize
RadRectCenterRect Method
Centers the specified rectangle within the provided available one.

Namespace: Telerik.Charting
Assembly: Telerik.Windows.Controls.Chart (in Telerik.Windows.Controls.Chart.dll) Version: 2018.2.620.40 (2018.2.620.40)
Syntax
public static RadRect CenterRect(
	RadRect rect,
	RadRect bounds
)

Parameters

rect
Type: Telerik.ChartingRadRect
The RadRect that should be moved to the new location.
bounds
Type: Telerik.ChartingRadRect
The RadRect that specifies the available bounds.

Return Value

Type: RadRect
A new instance of RadRect with width and height as the given RadRect and placed in the center of the provided region.
See Also