Mac Guides | Samples

MonoMac.Foundation.NSValue Class

Binding to the Objective-C way of boxing value types.

See Also: NSValue

Syntax

[MonoMac.Foundation.Register("NSValue", true)]
public class NSValue : NSObject

Requirements

Namespace: MonoMac.Foundation
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0

The members of MonoMac.Foundation.NSValue are listed below.

See Also: NSObject

Public Constructors

A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes when the derived class has an [Export] constructor.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
CMTimeMappingValueCMTimeMapping. Returns the CMTimeMapping value wrapped by this NSValue object.
[read-only]
CMTimeRangeValueCMTimeRange. Returns the CMTimeRange value wrapped by this NSValue object.
[read-only]
CMTimeValueCMTime. Returns the CMTime value wrapped by this NSValue object.
[read-only]
NonretainedObjectValueNSObject. Returns the NSObject value wrapped by this NSValue object.
[read-only]
ObjCTypeString.
[read-only]
PointerValueIntPtr. Returns the IntPtr value wrapped by this NSValue object.
[read-only]
PointFValuePointF. Returns the PointF value wrapped by this NSValue object.
[read-only]
RangeValueNSRange.
[read-only]
RectangleFValueRectangleF. Returns the RectangleF value wrapped by this NSValue object.
[read-only]
SizeFValueSizeF. Returns the SizeF value wrapped by this NSValue object.
[read-only]
Vector3ValueVector3.
[read-only]
Vector4ValueVector4.

Public Methods

static
FromCMTime(CMTime) : NSValue
Creates an NSValue that wraps a CMTime object..
static
FromCMTimeMapping(CMTimeMapping) : NSValue
Creates an NSValue that wraps a CMTimeMapping object.
static
FromCMTimeRange(CMTimeRange) : NSValue
Creates an NSValue that wraps a CMTimeRange object.
static
FromPointF(PointF) : NSValue
Creates an NSValue that wraps a PointF object.
static
FromRectangleF(RectangleF) : NSValue
Creates an NSValue that wraps a RectangleF object.
static
FromSizeF(SizeF) : NSValue
Creates an NSValue that wraps a SizeF object.
static
FromVector(Vector3) : Vector3
static
FromVector(Vector4) : Vector3
IsEqualTo(NSValue) : Boolean
StoreValueAtAddress(IntPtr)
static
ValueFromNonretainedObject(NSObject) : NSValue
Creates an NSValue object that is wrapped in an NSValue without being retained.
static
ValueFromPointer(IntPtr) : NSValue
Wraps the specified IntPtr object as an NSValue.

Protected Methods

override
Dispose(Boolean)
Releases the resourced used by the NSValue object.