CGRect.TryParse(NSDictionary, CGRect) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.