Click or drag to resize
RadRectToSquare Method
Gets a RadRect that has equal width and height and fits within the specified RadRect.

Namespace: Telerik.Charting
Assembly: Telerik.Windows.Controls.Chart (in Telerik.Windows.Controls.Chart.dll) Version: 2017.3.1018.40 (2017.3.1018.40)
Syntax
public static RadRect ToSquare(
	RadRect rect,
	bool offset
)

Parameters

rect
Type: Telerik.ChartingRadRect
The RadRect.
offset
Type: SystemBoolean
Specifies whether the resulting RadRect should keep the original Top-Left location or it should be centered within the original RadRect.

Return Value

Type: RadRect
A new instance of RadRect with equal width and height, that fits within the provided bounds.
See Also