NSMutableAttributedString.SetAttributes Method

Definition

Overloads

SetAttributes(UIStringAttributes, NSRange)
SetAttributes(CTStringAttributes, NSRange)

Sets the attributes for the specified ranges. Any previous attributes in that range are replaces with the new values.

SetAttributes(NSDictionary, NSRange)

Sets the attributes for the specified ranges. Any previous attributes in that range are replaces with the new values.

SetAttributes(UIStringAttributes, NSRange)

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

Parameters

range
NSRange

Applies to

SetAttributes(CTStringAttributes, NSRange)

Sets the attributes for the specified ranges. Any previous attributes in that range are replaces with the new values.

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

Parameters

attrs
CTStringAttributes

CoreText attributes to be set on the string.

range
NSRange

Range to which the attribute will be applied.

Applies to

SetAttributes(NSDictionary, NSRange)

Sets the attributes for the specified ranges. Any previous attributes in that range are replaces with the new values.

public void SetAttributes (Foundation.NSDictionary attributes, Foundation.NSRange range);
member this.SetAttributes : Foundation.NSDictionary * Foundation.NSRange -> unit

Parameters

attributes
NSDictionary
range
NSRange

Range to which the attribute will be applied.

Applies to