Share via


CGPoint.ToDictionary Method

Definition

Serializes a CGPoint into an NSDictionary.

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

Returns

A NSDictionary with the values from this CGPoint.

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 a CGPoint from an NSDictionary using the TryParse(NSDictionary, CGPoint) method.

Applies to

See also