Edytuj

Udostępnij za pośrednictwem


NSCoder_UIGeometryKeyedCoding.Encode Method

Definition

Overloads

Encode(NSCoder, CGAffineTransform, String)

Encodes the affine transform and also associates it with the designated key.

Encode(NSCoder, CGPoint, String)
Encode(NSCoder, CGRect, String)
Encode(NSCoder, CGSize, String)
Encode(NSCoder, CGVector, String)

Encodes the vector and also associates it with the designated key.

Encode(NSCoder, NSDirectionalEdgeInsets, String)
Encode(NSCoder, UIEdgeInsets, String)

Encodes the edge insets and also associates them with the designated key.

Encode(NSCoder, UIOffset, String)

Encodes the offset and also associates it with the designated key.

Encode(NSCoder, CGAffineTransform, String)

Encodes the affine transform and also associates it with the designated key.

[Foundation.Export("encodeCGAffineTransform:forKey:")]
public static void Encode (this Foundation.NSCoder This, CoreGraphics.CGAffineTransform transform, string forKey);
static member Encode : Foundation.NSCoder * CoreGraphics.CGAffineTransform * string -> unit

Parameters

This
NSCoder

Foundation.NSCoder.

transform
CGAffineTransform

The specified affine transform.

forKey
String

Designated key in the receiver archive.

Attributes

Applies to

Encode(NSCoder, CGPoint, String)

[Foundation.Export("encodeCGPoint:forKey:")]
public static void Encode (this Foundation.NSCoder This, CoreGraphics.CGPoint point, string forKey);
static member Encode : Foundation.NSCoder * CoreGraphics.CGPoint * string -> unit

Parameters

This
NSCoder
point
CGPoint
forKey
String
Attributes

Applies to

Encode(NSCoder, CGRect, String)

[Foundation.Export("encodeCGRect:forKey:")]
public static void Encode (this Foundation.NSCoder This, CoreGraphics.CGRect rect, string forKey);
static member Encode : Foundation.NSCoder * CoreGraphics.CGRect * string -> unit

Parameters

This
NSCoder
rect
CGRect
forKey
String
Attributes

Applies to

Encode(NSCoder, CGSize, String)

[Foundation.Export("encodeCGSize:forKey:")]
public static void Encode (this Foundation.NSCoder This, CoreGraphics.CGSize size, string forKey);
static member Encode : Foundation.NSCoder * CoreGraphics.CGSize * string -> unit

Parameters

This
NSCoder
size
CGSize
forKey
String
Attributes

Applies to

Encode(NSCoder, CGVector, String)

Encodes the vector and also associates it with the designated key.

[Foundation.Export("encodeCGVector:forKey:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static void Encode (this Foundation.NSCoder This, CoreGraphics.CGVector vector, string forKey);
static member Encode : Foundation.NSCoder * CoreGraphics.CGVector * string -> unit

Parameters

This
NSCoder

Foundation.NSCoder.

vector
CGVector

The specified vector.

forKey
String

Designated key in the receiver archive.

Attributes

Applies to

Encode(NSCoder, NSDirectionalEdgeInsets, String)

[Foundation.Export("encodeDirectionalEdgeInsets:forKey:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static void Encode (this Foundation.NSCoder This, UIKit.NSDirectionalEdgeInsets directionalEdgeInsets, string forKey);
static member Encode : Foundation.NSCoder * UIKit.NSDirectionalEdgeInsets * string -> unit

Parameters

This
NSCoder

The instance on which this method operates.

directionalEdgeInsets
NSDirectionalEdgeInsets
forKey
String
Attributes

Applies to

Encode(NSCoder, UIEdgeInsets, String)

Encodes the edge insets and also associates them with the designated key.

[Foundation.Export("encodeUIEdgeInsets:forKey:")]
public static void Encode (this Foundation.NSCoder This, UIKit.UIEdgeInsets edgeInsets, string forKey);
static member Encode : Foundation.NSCoder * UIKit.UIEdgeInsets * string -> unit

Parameters

This
NSCoder

Foundation.NSCoder.

edgeInsets
UIEdgeInsets

The specified edge insets.

forKey
String

Designated key in the receiver archive.

Attributes

Applies to

Encode(NSCoder, UIOffset, String)

Encodes the offset and also associates it with the designated key.

[Foundation.Export("encodeUIOffset:forKey:")]
public static void Encode (this Foundation.NSCoder This, UIKit.UIOffset uiOffset, string forKey);
static member Encode : Foundation.NSCoder * UIKit.UIOffset * string -> unit

Parameters

This
NSCoder

Foundation.NSCoder.

uiOffset
UIOffset

The specified offset.

forKey
String

Designated key in the receiver archive.

Attributes

Applies to