NSMutableAttributedString.SetAttributes NSMutableAttributedString.SetAttributes Method

Definition

Overloads

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

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

Parameters

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

CoreText attributes to be set on the string.

range
NSRange NSRange

Range to which the attribute will be applied.

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

range
NSRange NSRange

Range to which the attribute will be applied.

Applies to