MonoMac.CoreAnimation.CATextLayer.AttributedString Property
Sets the attributed string to display.

Syntax

public virtual MonoMac.Foundation.NSAttributedString AttributedString { get; set; }

Value

Remarks

This sets the attributed string to display on the layer. The attributed string should contain CoreText attributes.

c# Example

void DrawHelloWorld (CATextLayer myTextLayer)
{
    var hello = new NSAttributedString ("Hello, world",
           new CTStringAttributes () {
                  ForegroundColorFromContext =  true,
                  Font = new CTFont ("Arial", 24)
           });

    myTextLayer.AttributedString = hello;
}    

Requirements

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