NSMutableAttributedString.AddAttributes Method

Definition

Overloads

AddAttributes(NSStringAttributes, NSRange)
AddAttributes(CTStringAttributes, NSRange)

Adds an attribute and its value to the specified range of characters in the string.

AddAttributes(NSDictionary, NSRange)

Adds the specified attributes in the dictionary to the specified range of characters in the string.

AddAttributes(UIStringAttributes, NSRange)

AddAttributes(NSStringAttributes, NSRange)

public void AddAttributes (AppKit.NSStringAttributes attributes, Foundation.NSRange range);
member this.AddAttributes : AppKit.NSStringAttributes * Foundation.NSRange -> unit

Parameters

attributes
NSStringAttributes
range
NSRange

Applies to

AddAttributes(CTStringAttributes, NSRange)

Adds an attribute and its value to the specified range of characters in the string.

public void AddAttributes (CoreText.CTStringAttributes attrs, Foundation.NSRange range);
member this.AddAttributes : CoreText.CTStringAttributes * Foundation.NSRange -> unit

Parameters

attrs
CTStringAttributes

The CoreText attributes to add.

range
NSRange

Range to which the attribute will be applied.

Applies to

AddAttributes(NSDictionary, NSRange)

Adds the specified attributes in the dictionary to the specified range of characters in the string.

[Foundation.Export("addAttributes:range:")]
public virtual void AddAttributes (Foundation.NSDictionary attrs, Foundation.NSRange range);
abstract member AddAttributes : Foundation.NSDictionary * Foundation.NSRange -> unit
override this.AddAttributes : Foundation.NSDictionary * Foundation.NSRange -> unit

Parameters

attrs
NSDictionary

User-defined attributes as key/value pair dictionary.

range
NSRange

Range to which the attribute will be applied.

Attributes

Applies to

AddAttributes(UIStringAttributes, NSRange)

public void AddAttributes (UIKit.UIStringAttributes attrs, Foundation.NSRange range);
member this.AddAttributes : UIKit.UIStringAttributes * Foundation.NSRange -> unit

Parameters

range
NSRange

Applies to