CALayer CALayer Class

Definition

Layers hold the images that are rendered into the screen.

[Foundation.Register("CALayer", true)]
public class CALayer : Foundation.NSObject, CoreAnimation.ICAMediaTiming, Foundation.INSSecureCoding, IDisposable
type CALayer = class
    inherit NSObject
    interface ICAMediaTiming
    interface INativeObject
    interface IDisposable
    interface INSCoding
    interface INSSecureCoding
Inheritance
Derived
Attributes
Implements

Remarks

CALayers hold the image content that is rendered into the screen. They encapsulate position, styling, size and transformation components. They also implement the CAMediaTiming methods which allows them to participate in animations.

There are several subclasses of CALayer that developers can use: CAEmitterLayer, CAGradientLayer, T:CoreAnimation.CAEAGLLayer/CAOpenGLLayer, CAReplicatorLayer, CAScrollLayer, CAShapeLayer, CATextLayer, CATiledLayer, CATransformLayer and T:CoreAnimation.QCCompositionLayer.

Layer Content

There are three ways of providing content to a layer: subclassing the layer class and overriding the draw methods, using a layer delegate to implement the drawing or assigning a static image to the layer.

To set the contents of the layer with a static image or from one of the rendering approaches, app devs must assign a CGImage to the Contents property. For static content, they can just assign this property and the changes will be reflected directly.

Contents by Subclassing CALayer

If you choose to subclass the CALayer class, you can either subclass the Display() method which is then requires to set the Contents property or you can override the DrawInContext(CGContext) method which provides you with a graphics context that you can use to render into the display.


// Overriding DrawInContext
public class DemoLayer : CALayer {
  public override void DrawInContext (CGContext context)
  {
     base.DrawInContext (context);
  
     // Fill in circle
     context.SetFillColor (Color);
     context.SetShadowWithColor (SizeF.Empty, 10.0f, glowColor);
     context.EOFillPath();
  }
}

// Overriding Display public class DemoLayer2 : CALayer { CGImage image = UIImage.FromBundle ("demo.png").CGImage;

public override void Display () { Contents = image; } } ]></code> </example> <format type="text/html"> <h3>Contents by Providing a CALayerDelegate</h3> </format> <para>

This approach can be used if the developer does not want to change the
class used for their CALayer rendering, and all they need to do is
assign the &lt;see cref="P:MonoTouch.CoreAnimation.CALayer.Delegate" /&gt; property
to an instance of a subclass of &lt;see cref="T:MonoTouch.CoreAnimation.CALayerDelegate" /&gt; where they
either override the &lt;see cref="M:MonoTouch.CoreAnimation.CALayerDelegate.DisplayLayer(MonoTouch.CoreAnimation.CALayer)" /&gt;
method in which they must set the &lt;see cref="P:MonoTouch.CoreAnimation.CALayer.Contents" /&gt; property,
or they override the &lt;see cref="M:MonoTouch.CoreAnimation.CALayerDelegate.DrawLayer(MonoTouch.CoreAnimation.CALayer,CoreGraphics.CGContext)" /&gt;
method and provide their own rendering code there.

  &lt;/para&gt;
  &lt;example&gt;
    &lt;code lang="C#"&gt;&lt;![CDATA[

// Overriding DisplayLayer public class DemoLayerDelegate : CALayerDelegate { CGImage image = UIImage.FromBundle ("demo.png").CGImage;

public override void DisplayLayer (CALayer layer) { layer.Contents = image; } }

// Overriding DrawLayer public class DemoLayerDelegate2 : CALayerDelegate { public override DrawLayer (CALayer layer, CGContext context) { // Fill in circle context.SetFillColor (Color); context.SetShadowWithColor (SizeF.Empty, 10.0f, glowColor); context.EOFillPath(); } }

// To use the code:

void SetupViews (UIView view, UIView view2) { view.Layer.Delegate = new DemoLayerDelegate (); view2.Layer.Delegate = new DemoLayerDelegate2 (); }

Using Custom Layers with your UIViews or NSViews.

On iOS, every UIView automatically has a CALayer associated with it. When you want to use one of the CALayer subclasses as your UIView's backing layer, you need to add the following code snippet to your class:


class MyView : UIView {
    //
    // This instructs the runtime that whenever a MyView is created
    // that it should instantiate a CATiledLayer and assign that to the
    // UIView.Layer property
    //
    [Export ("layerClass")]
    public static Class LayerClass () {
        return new Class (typeof (CATiledLayer));
    }
}

If you want to subclass the CALayer class, you must provide a constructor that takes a CALayer and is annotated with an [Export ("initWithLayer:")] attribute. When you do this, you should also override the Clone(CALayer) as these two are used to create copies of your layer state on demand in response to CoreAnimation creating a mirror of your object hierarchy if anyone accesses the PresentationLayer property.


public class MyLayer : CALayer {
	UIColor FirstColor, SecondColor;
//
// Invoked by CoreAnimation if it needs to create a copy of your layer
// with a specific state in response to the user fetching the PresentationLayer
// property
//
[Export ("initWithLayer:")]
public MyLayer (Mylayer other) : base (layer)
{
	// Do nothing, since we override Clone, but we could
	// just clone the data here as well if we wanted to.
}

//
// This is the constructor you would use to create your new CALayer
public MyLayer (UIColor firstColor, UIColor secondColor)
{
	FirstColor = firstColor;
	SecondColor = secondColor;
}

// We must copy our own state here from the original layer
public override void Clone (CALayer _other)
{
	MyLayer other = (MyLayer) _other;
	FirstColor = other.FirstColor;
	SecondColor = other.SecondColor;
}

}

On OSX, CALayers are optional. To enable them, you must set the P:AppKit.NSView.WantsLayer property to true. You can change the layer for an NSView by setting the P:AppKit.NSView.Layer property.

On OSX, to change the default layer class used for a given NSView, you can override the M:AppKit.MakeBackingLayer* method.

Constructors

CALayer() CALayer()

Default constructor that initializes a new instance of this class with no parameters.

CALayer(CALayer) CALayer(CALayer)

This method must be implemented by derived classes to make a copy of the original layer.

CALayer(IntPtr) CALayer(IntPtr)

A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

CALayer(NSCoder) CALayer(NSCoder)

A constructor that initializes the object from the data stored in the unarchiver object.

CALayer(NSObjectFlag) CALayer(NSObjectFlag)

Constructor to call on derived classes to skip initialization and merely allocate the object.

Properties

Actions Actions

NSDictionary containing the layer's actions.

AffineTransform AffineTransform

The affine version of the layer's Transform.

AllowsEdgeAntialiasing AllowsEdgeAntialiasing

Whether edge antialiasing is allowed.

AllowsGroupOpacity AllowsGroupOpacity

Whether group opacity is allowed.

AnchorPoint AnchorPoint

The anchor point for the Bounds rectangle.

AnchorPointZ AnchorPointZ

The anchor point for the Bounds, defined along the Z axis.

AnimationKeys AnimationKeys

Identifiers for the animations associated with this layer.

AutoresizingMask AutoresizingMask
AutoresizinMask AutoresizinMask
AutoReverses AutoReverses
BackgroundColor BackgroundColor

The background color of the layer.

BackgroundFilters BackgroundFilters

An array of Core Image filters that are applied to the content behind this layer.

BeginTime BeginTime
BorderColor BorderColor

The color of the border of the layer.

BorderWidth BorderWidth

The width of the border of the layer.

Bounds Bounds
Class Class Inherited from NSObject
ClassHandle ClassHandle

The handle for this class.

CompositingFilter CompositingFilter

A Core Image filter that is used for compositing the layer and the content behind it.

Constraints Constraints
Contents Contents

The contents of this layer, as a CGImage.

ContentsAreFlipped ContentsAreFlipped

Whether the layer's contents are implicitly flipped when the layer is rendered.

ContentsCenter ContentsCenter
ContentsFormat ContentsFormat

Gets the contents format for the layer.

ContentsGravity ContentsGravity
ContentsRect ContentsRect
ContentsScale ContentsScale

The scale factor applied to the layer.

CornerRadius CornerRadius

The radius used when drawing rounded corners.

DebugDescription DebugDescription

A developer-meaningful description of this object.

(Inherited from NSObject)
Delegate Delegate

An instance of the CoreAnimation.ICALayerDelegate model class which acts as the class delegate.

Description Description

Description of the object, the Objective-C version of ToString.

(Inherited from NSObject)
DoubleSided DoubleSided

Whether the layer draws its content when facing away from the viewer.

DrawsAsynchronously DrawsAsynchronously

Whether drawing commands are deferred and processed asynchronously on a background thread.

Duration Duration

The animation duration of this layer, in seconds.

EdgeAntialiasingMask EdgeAntialiasingMask
FillMode FillMode

The fill mode for this layer, as defined by the values in CAFillMode.

FilterLinear FilterLinear

Represents the value associated with the constant kCAFilterLinear

FilterNearest FilterNearest

Represents the value associated with the constant kCAFilterNearest

Filters Filters

An array of Core Image filters applied to the content of this layer and its sublayers.

FilterTrilinear FilterTrilinear

Represents the value associated with the constant kCAFilterTrilinear

Frame Frame
GeometryFlipped GeometryFlipped
GravityBottom GravityBottom

Represents the value associated with the constant kCAGravityBottom

GravityBottomLeft GravityBottomLeft

Represents the value associated with the constant kCAGravityBottomLeft

GravityBottomRight GravityBottomRight

Represents the value associated with the constant kCAGravityBottomRight

GravityCenter GravityCenter

Represents the value associated with the constant kCAGravityCenter

GravityLeft GravityLeft

Represents the value associated with the constant kCAGravityLeft

GravityResize GravityResize

Represents the value associated with the constant kCAGravityResize

GravityResizeAspect GravityResizeAspect

Represents the value associated with the constant kCAGravityResizeAspect

GravityResizeAspectFill GravityResizeAspectFill

Represents the value associated with the constant kCAGravityResizeAspectFill

GravityRight GravityRight

Represents the value associated with the constant kCAGravityRight

GravityTop GravityTop

Represents the value associated with the constant kCAGravityTop

GravityTopLeft GravityTopLeft

Represents the value associated with the constant kCAGravityTopLeft

GravityTopRight GravityTopRight

Represents the value associated with the constant kCAGravityTopRight

Handle Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from NSObject)
Hidden Hidden

Whether the layer is not displayed.

IsDirectBinding IsDirectBinding Inherited from NSObject
IsProxy IsProxy Inherited from NSObject
LayoutManager LayoutManager
MagnificationFilter MagnificationFilter
Mask Mask

An optional layer, the alpha channel of which is used to mask the contents of this layer.

MaskedCorners MaskedCorners
MasksToBounds MasksToBounds

Whether sublayers are clipped to the Bounds of this layer.

MinificationFilter MinificationFilter
MinificationFilterBias MinificationFilterBias
ModelLayer ModelLayer
Name Name
NeedsDisplay NeedsDisplay

Whether the layer has been marked as requiring an update.

NeedsDisplayOnBoundsChange NeedsDisplayOnBoundsChange
OnOrderIn OnOrderIn

Represents the value associated with the constant kCAOnOrderIn

OnOrderOut OnOrderOut

Represents the value associated with the constant kCAOnOrderOut

Opacity Opacity

The transparency of the layer, in the range 0 (transparent) to 1.0 (opaque).

Opaque Opaque

Whether the layer and its contents are completely opaque.

Position Position

The layer's position in the coordinate space of its SuperLayer.

PresentationLayer PresentationLayer
RasterizationScale RasterizationScale
RepeatCount RepeatCount
RepeatDuration RepeatDuration
RetainCount RetainCount

Returns the current Objective-C retain count for the object.

(Inherited from NSObject)
Self Self Inherited from NSObject
ShadowColor ShadowColor
ShadowOffset ShadowOffset
ShadowOpacity ShadowOpacity
ShadowPath ShadowPath
ShadowRadius ShadowRadius
ShouldRasterize ShouldRasterize
Speed Speed
Style Style
Sublayers Sublayers
SublayerTransform SublayerTransform
Superclass Superclass Inherited from NSObject
SuperHandle SuperHandle

Handle used to represent the methods in the base class for this NSObject.

(Inherited from NSObject)
SuperLayer SuperLayer
TimeOffset TimeOffset
Transform Transform
Transition Transition

Represents the value associated with the constant kCATransition

VisibleRect VisibleRect
WeakDelegate WeakDelegate

An object that can respond to the delegate protocol for this type

Zone Zone Inherited from NSObject
ZPosition ZPosition

Methods

ActionForKey(String) ActionForKey(String)

Returns the Actions value associated with the specified key.

AddAnimation(CAAnimation, String) AddAnimation(CAAnimation, String)

Adds the animation to the render tree for the layer and associates it in Actions with the key key.

AddConstraint(CAConstraint) AddConstraint(CAConstraint)
AddObserver(NSObject, NSString, NSKeyValueObservingOptions, IntPtr) AddObserver(NSObject, NSString, NSKeyValueObservingOptions, IntPtr)

Registers an object for being observed externally (using NSString keyPath).   Observed changes are dispatched to the observer’s object ObserveValue(NSString, NSObject, NSDictionary, IntPtr) method.

(Inherited from NSObject)
AddObserver(NSObject, String, NSKeyValueObservingOptions, IntPtr) AddObserver(NSObject, String, NSKeyValueObservingOptions, IntPtr)

Registers an object for being observed externally (using string keyPath).   Observed changes are dispatched to the observer’s object ObserveValue(NSString, NSObject, NSDictionary, IntPtr) method.

(Inherited from NSObject)
AddObserver(NSString, NSKeyValueObservingOptions, Action<NSObservedChange>) AddObserver(NSString, NSKeyValueObservingOptions, Action<NSObservedChange>)

Registers an object for being observed externally using an arbitrary method.

(Inherited from NSObject)
AddObserver(String, NSKeyValueObservingOptions, Action<NSObservedChange>) AddObserver(String, NSKeyValueObservingOptions, Action<NSObservedChange>)

Registers an object for being observed externally using an arbitrary method.

(Inherited from NSObject)
AddSublayer(CALayer) AddSublayer(CALayer)

Appends the layer to this layer's Sublayers.

AnimationForKey(String) AnimationForKey(String)

Returns the animation associated with the key.

AwakeFromNib() AwakeFromNib()

Called after the object has been loaded from the nib file. Overriders must call base.AwakeFromNib().

(Inherited from NSObject)
BeginInvokeOnMainThread(Action) BeginInvokeOnMainThread(Action) Inherited from NSObject
BeginInvokeOnMainThread(Selector, NSObject) BeginInvokeOnMainThread(Selector, NSObject)

Invokes asynchrously the specified code on the main UI thread.

(Inherited from NSObject)
Bind(NSString, NSObject, String, NSDictionary) Bind(NSString, NSObject, String, NSDictionary) Inherited from NSObject
Bind(String, NSObject, String, NSDictionary) Bind(String, NSObject, String, NSDictionary) Inherited from NSObject
BindingInfo(String) BindingInfo(String) Inherited from NSObject
BindingOptionDescriptions(String) BindingOptionDescriptions(String) Inherited from NSObject
BindingValueClass(String) BindingValueClass(String) Inherited from NSObject
Clone(CALayer) Clone(CALayer)

This method should be overwritten to provide cloning capabilities for the layer.

CommitEditing() CommitEditing() Inherited from NSObject
CommitEditing(NSObject, Selector, IntPtr) CommitEditing(NSObject, Selector, IntPtr) Inherited from NSObject
ConformsToProtocol(IntPtr) ConformsToProtocol(IntPtr)

Invoked to determine if this object implements the specified protocol.

(Inherited from NSObject)
Contains(CGPoint) Contains(CGPoint)
ConvertPointFromLayer(CGPoint, CALayer) ConvertPointFromLayer(CGPoint, CALayer)
ConvertPointToLayer(CGPoint, CALayer) ConvertPointToLayer(CGPoint, CALayer)
ConvertRectFromLayer(CGRect, CALayer) ConvertRectFromLayer(CGRect, CALayer)
ConvertRectToLayer(CGRect, CALayer) ConvertRectToLayer(CGRect, CALayer)
ConvertTimeFromLayer(Double, CALayer) ConvertTimeFromLayer(Double, CALayer)
ConvertTimeToLayer(Double, CALayer) ConvertTimeToLayer(Double, CALayer)
Copy() Copy()

Performs a copy of the underlying Objective-C object.

(Inherited from NSObject)
Create() Create()

Factory method to create a new CALayer.

DangerousAutorelease() DangerousAutorelease() Inherited from NSObject
DangerousRelease() DangerousRelease() Inherited from NSObject
DangerousRetain() DangerousRetain() Inherited from NSObject
DefaultActionForKey(String) DefaultActionForKey(String)
DefaultValue(String) DefaultValue(String)
DidChange(NSKeyValueChange, NSIndexSet, NSString) DidChange(NSKeyValueChange, NSIndexSet, NSString)

Indicates a change occurred to the indexes for a to-many relationship.

(Inherited from NSObject)
DidChange(NSString, NSKeyValueSetMutationKind, NSSet) DidChange(NSString, NSKeyValueSetMutationKind, NSSet) Inherited from NSObject
DidChangeValue(String) DidChangeValue(String)

Indicates that a change occurred on the specified key.

(Inherited from NSObject)
Display() Display()
DisplayIfNeeded() DisplayIfNeeded()
Dispose() Dispose()

Releases the resources used by the NSObject object.

(Inherited from NSObject)
Dispose(Boolean) Dispose(Boolean)

Releases the resources used by the CALayer object.

DoesNotRecognizeSelector(Selector) DoesNotRecognizeSelector(Selector)

Indicates that this object does not recognize the specified selector.

(Inherited from NSObject)
DrawInContext(CGContext) DrawInContext(CGContext)

Draws the layer on the specified context.

EncodeTo(NSCoder) EncodeTo(NSCoder)

Encodes the state of the object on the provided encoder

Equals(NSObject) Equals(NSObject) Inherited from NSObject
Equals(Object) Equals(Object) Inherited from NSObject
ExposedBindings() ExposedBindings() Inherited from NSObject
GetBindingInfo(NSString) GetBindingInfo(NSString) Inherited from NSObject
GetBindingOptionDescriptions(NSString) GetBindingOptionDescriptions(NSString) Inherited from NSObject
GetBindingValueClass(NSString) GetBindingValueClass(NSString) Inherited from NSObject
GetContentsAs<T>() GetContentsAs<T>()
GetDictionaryOfValuesFromKeys(NSString[]) GetDictionaryOfValuesFromKeys(NSString[])

Retrieves the values of the specified keys.

(Inherited from NSObject)
GetHashCode() GetHashCode()

Generates a hash code for the current instance.

(Inherited from NSObject)
GetMethodForSelector(Selector) GetMethodForSelector(Selector) Inherited from NSObject
GetNativeField(String) GetNativeField(String) Inherited from NSObject
GetNativeHash() GetNativeHash() Inherited from NSObject
HitTest(CGPoint) HitTest(CGPoint)

The furthest descendant in this layer's hierarchy that contains the point p.

Init() Init() Inherited from NSObject
InitializeHandle(IntPtr) InitializeHandle(IntPtr) Inherited from NSObject
InitializeHandle(IntPtr, String) InitializeHandle(IntPtr, String) Inherited from NSObject
InsertSublayer(CALayer, Int32) InsertSublayer(CALayer, Int32)

Inserts the specified layer into the Sublayers array at the specified index.

InsertSublayerAbove(CALayer, CALayer) InsertSublayerAbove(CALayer, CALayer)

Inserts the specified layer into the Sublayers array immediately after sibling.

InsertSublayerBelow(CALayer, CALayer) InsertSublayerBelow(CALayer, CALayer)

Inserts the specified layer into the Sublayers array immediately prior to sibling.

Invoke(Action, Double) Invoke(Action, Double) Inherited from NSObject
Invoke(Action, TimeSpan) Invoke(Action, TimeSpan) Inherited from NSObject
InvokeOnMainThread(Action) InvokeOnMainThread(Action) Inherited from NSObject
InvokeOnMainThread(Selector, NSObject) InvokeOnMainThread(Selector, NSObject)

Invokes synchrously the specified code on the main UI thread.

(Inherited from NSObject)
IsEqual(NSObject) IsEqual(NSObject) Inherited from NSObject
IsKindOfClass(Class) IsKindOfClass(Class) Inherited from NSObject
IsMemberOfClass(Class) IsMemberOfClass(Class) Inherited from NSObject
LayoutIfNeeded() LayoutIfNeeded()
LayoutSublayers() LayoutSublayers()
MarkDirty() MarkDirty()

Promotes a regular peer object (IsDirectBinding is true) into a toggleref object.

(Inherited from NSObject)
MutableCopy() MutableCopy()

Creates a mutable copy of the specified NSObject.

(Inherited from NSObject)
NeedsDisplayForKey(String) NeedsDisplayForKey(String)
NeedsLayout() NeedsLayout()
ObjectDidEndEditing(NSObject) ObjectDidEndEditing(NSObject) Inherited from NSObject
ObserveValue(NSString, NSObject, NSDictionary, IntPtr) ObserveValue(NSString, NSObject, NSDictionary, IntPtr)

Indicates that the value at the specified keyPath relative to this object has changed.

(Inherited from NSObject)
PerformSelector(Selector) PerformSelector(Selector) Inherited from NSObject
PerformSelector(Selector, NSObject) PerformSelector(Selector, NSObject) Inherited from NSObject
PerformSelector(Selector, NSObject, Double) PerformSelector(Selector, NSObject, Double)

Invokes the selector on the current instance and if the obj is not null, it passes this as its single parameter.

(Inherited from NSObject)
PerformSelector(Selector, NSObject, Double, NSString[]) PerformSelector(Selector, NSObject, Double, NSString[]) Inherited from NSObject
PerformSelector(Selector, NSObject, NSObject) PerformSelector(Selector, NSObject, NSObject) Inherited from NSObject
PerformSelector(Selector, NSThread, NSObject, Boolean) PerformSelector(Selector, NSThread, NSObject, Boolean) Inherited from NSObject
PerformSelector(Selector, NSThread, NSObject, Boolean, NSString[]) PerformSelector(Selector, NSThread, NSObject, Boolean, NSString[]) Inherited from NSObject
PreferredFrameSize() PreferredFrameSize()

The preferred size for this layer, in the coordinate of its SuperLayer.

PrepareForInterfaceBuilder() PrepareForInterfaceBuilder() Inherited from NSObject
RemoveAllAnimations() RemoveAllAnimations()

Removes all animations currently attached to the layer.

RemoveAnimation(String) RemoveAnimation(String)

Removes the specified animation from the layer.

RemoveFromSuperLayer() RemoveFromSuperLayer()

Removes this from its SuperLayer.

RemoveObserver(NSObject, NSString) RemoveObserver(NSObject, NSString)

Stops the specified observer from receiving further notifications of changed values for the specified keyPath.

(Inherited from NSObject)
RemoveObserver(NSObject, NSString, IntPtr) RemoveObserver(NSObject, NSString, IntPtr)

Stops the specified observer from receiving further notifications of changed values for the specified keyPath and context.

(Inherited from NSObject)
RemoveObserver(NSObject, String) RemoveObserver(NSObject, String)

Stops the specified observer from receiving further notifications of changed values for the specified keyPath.

(Inherited from NSObject)
RemoveObserver(NSObject, String, IntPtr) RemoveObserver(NSObject, String, IntPtr)

Stops the specified observer from receiving further notifications of changed values for the specified keyPath and context.

(Inherited from NSObject)
RenderInContext(CGContext) RenderInContext(CGContext)

Renders the layer into the specified CGContext.

ReplaceSublayer(CALayer, CALayer) ReplaceSublayer(CALayer, CALayer)
Resize(CGSize) Resize(CGSize)
ResizeSublayers(CGSize) ResizeSublayers(CGSize)
RespondsToSelector(Selector) RespondsToSelector(Selector)

Whether this object recognizes the specified selector.

(Inherited from NSObject)
ScrollPoint(CGPoint) ScrollPoint(CGPoint)
ScrollRectToVisible(CGRect) ScrollRectToVisible(CGRect)
SetContents(NSObject) SetContents(NSObject)
SetNativeField(String, NSObject) SetNativeField(String, NSObject) Inherited from NSObject
SetNeedsDisplay() SetNeedsDisplay()
SetNeedsDisplayInRect(CGRect) SetNeedsDisplayInRect(CGRect)
SetNeedsLayout() SetNeedsLayout()
SetNilValueForKey(NSString) SetNilValueForKey(NSString)

Sets the value of the specified key to null.

(Inherited from NSObject)
SetValueForKey(NSObject, NSString) SetValueForKey(NSObject, NSString)

Sets the value of the property specified by the key to the specified value.

(Inherited from NSObject)
SetValueForKeyPath(IntPtr, NSString) SetValueForKeyPath(IntPtr, NSString)

A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

(Inherited from NSObject)
SetValueForKeyPath(NSObject, NSString) SetValueForKeyPath(NSObject, NSString)

Sets the value of a property that can be reached using a keypath.

(Inherited from NSObject)
SetValueForUndefinedKey(NSObject, NSString) SetValueForUndefinedKey(NSObject, NSString)

Indicates an attempt to write a value to an undefined key. If not overridden, raises an NSUndefinedKeyException.

(Inherited from NSObject)
SetValuesForKeysWithDictionary(NSDictionary) SetValuesForKeysWithDictionary(NSDictionary)

Sets the values of this NSObject to those in the specified dictionary.

(Inherited from NSObject)
ToString() ToString()

Returns a string representation of the value of the current instance.

(Inherited from NSObject)
Unbind(NSString) Unbind(NSString) Inherited from NSObject
Unbind(String) Unbind(String) Inherited from NSObject
ValueForKey(NSString) ValueForKey(NSString)

Returns the value of the property associated with the specified key.

(Inherited from NSObject)
ValueForKeyPath(NSString) ValueForKeyPath(NSString)

Returns the value of a property that can be reached using a keypath.

(Inherited from NSObject)
ValueForUndefinedKey(NSString) ValueForUndefinedKey(NSString)

Indicates an attempt to read a value of an undefined key. If not overridden, raises an NSUndefinedKeyException.

(Inherited from NSObject)
WillChange(NSKeyValueChange, NSIndexSet, NSString) WillChange(NSKeyValueChange, NSIndexSet, NSString)

Indicates that the values of the specified indices in the specified key are about to change.

(Inherited from NSObject)
WillChange(NSString, NSKeyValueSetMutationKind, NSSet) WillChange(NSString, NSKeyValueSetMutationKind, NSSet) Inherited from NSObject
WillChangeValue(String) WillChangeValue(String)

Indicates that the value of the specified key is about to change.

(Inherited from NSObject)

Extension Methods

ObjectDidBeginEditing(NSObject, INSEditor) ObjectDidBeginEditing(NSObject, INSEditor)
ObjectDidEndEditing(NSObject, INSEditor) ObjectDidEndEditing(NSObject, INSEditor)
GetValidModes(NSObject, NSFontPanel) GetValidModes(NSObject, NSFontPanel)
ValidateToolbarItem(NSObject, NSToolbarItem) ValidateToolbarItem(NSObject, NSToolbarItem)
GetDebugDescription(INSObjectProtocol) GetDebugDescription(INSObjectProtocol)
AcceptsPreviewPanelControl(NSObject, QLPreviewPanel) AcceptsPreviewPanelControl(NSObject, QLPreviewPanel)
BeginPreviewPanelControl(NSObject, QLPreviewPanel) BeginPreviewPanelControl(NSObject, QLPreviewPanel)
EndPreviewPanelControl(NSObject, QLPreviewPanel) EndPreviewPanelControl(NSObject, QLPreviewPanel)
GetAccessibilityCustomRotors(NSObject) GetAccessibilityCustomRotors(NSObject)

Gets the array of UIAccessibilityCustomRotor objects appropriate for this object.

SetAccessibilityCustomRotors(NSObject, UIAccessibilityCustomRotor[]) SetAccessibilityCustomRotors(NSObject, UIAccessibilityCustomRotor[])

Sets the array of UIAccessibilityCustomRotor objects appropriate for this object.

Applies to

See also