Telerik UI for Windows Phone by Progress

Gets a rectangle that has equal width and height and is centered within the specified rect.

Namespace: Telerik.Charting
Assembly: Telerik.Windows.Controls.Chart (in Telerik.Windows.Controls.Chart.dll) Version: 2013.1.422.2040 (2013.1.0422.2040)

Syntax

C#
public static RadRect ToSquare(
	RadRect rect,
	bool offset
)
Visual Basic
Public Shared Function ToSquare ( _
	rect As RadRect, _
	offset As Boolean _
) As RadRect
Visual C++
public:
static RadRect ToSquare(
	RadRect rect, 
	bool offset
)

Parameters

rect
Type: Telerik.Charting..::..RadRect
offset
Type: System..::..Boolean

See Also