CoreAnimation.CATextLayer Class
Simple text layour and rendering of regular or attributed text.

See Also: CATextLayer Members

Syntax

[Foundation.Register("CATextLayer", true)]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_3_2)]
public class CATextLayer : CALayer

Remarks

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:

C# Example

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

Related content

Requirements

Namespace: CoreAnimation
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0