UIKit.UIStringAttributes Class
Strongly helper to define UIKit attributes for use with Foundation.NSAttributedString.

See Also: UIStringAttributes Members

Syntax

[ObjCRuntime.iOS(6, 0)]
public class UIStringAttributes : Foundation.DictionaryContainer

Remarks

You use this class to create attributes that can be used with both Foundation.NSAttributedString and Foundation.NSMutableAttributedString. Since this class is strongly typed, you will get code completion as well as avoid common mistakes when using attributed strings with UIKit.

C# Example

// 
// Using NSAttributedString with UIKit
//
var myText = new NSAttributedString ("Hello, world",
       new UIStringAttributes () {
              ForegroundColor =  UIColor.Red,
	      KerningAdjustment = 3
       });
label.AttributedText = myText;
	

Requirements

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