CGRect.TryParse(NSDictionary, CGRect) Method

Definition

public static bool TryParse (Foundation.NSDictionary dictionaryRepresentation, out CoreGraphics.CGRect rect);
static member TryParse : Foundation.NSDictionary *  -> bool

Parameters

dictionaryRepresentation
NSDictionary

Dictionary containing a serialized CGRect.

rect
CGRect

The rectangle value with the contents if the return value is true.

Returns

True if the NSDictionary contained a serialized CGRect and the initialized rect with the contents on return. False on failure, and the contents of rect are set to Empty in that case.

Remarks

Used to create a CGRect from a dictionary containing keys for X, Y, Widht and Height.

Applies to