Edytuj

Udostępnij za pośrednictwem


CGRect.ToDictionary Method

Definition

Serializes the state of the rectangle into an NSDictionary.

public Foundation.NSDictionary ToDictionary ();
member this.ToDictionary : unit -> Foundation.NSDictionary

Returns

An NSDictionary representing the rectangle.

Remarks

The returned dictionary conforms to the serialization standard of Cocoa and CocoaTouch and can be used to serialize the state into objects that can be parsed by other Apple APIs.

It is possible to create CGRect from a Dictionary using the TryParse(NSDictionary, CGRect) method.

Applies to