NSMutableAttributedString.AddAttributes NSMutableAttributedString.AddAttributes Method

Definition

Overloads

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

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

AddAttributes(NSDictionary, NSRange) AddAttributes(NSDictionary, NSRange)

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

AddAttributes(UIStringAttributes, NSRange) AddAttributes(UIStringAttributes, NSRange)

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

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

Parameters

AddAttributes(CTStringAttributes, NSRange) 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 CTStringAttributes

The CoreText attributes to add.

range
NSRange NSRange

Range to which the attribute will be applied.

AddAttributes(NSDictionary, NSRange) 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 NSDictionary

User-defined attributes as key/value pair dictionary.

range
NSRange NSRange

Range to which the attribute will be applied.

AddAttributes(UIStringAttributes, NSRange) AddAttributes(UIStringAttributes, NSRange)

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

Parameters

Applies to