Bewerken

Delen via


NSMutableAttributedStringKitAdditions.FixAttributesInRange Method

Definition

Cleans up inconsistencies that can accumulate over many edits.

[Foundation.Export("fixAttributesInRange:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static void FixAttributesInRange (this Foundation.NSMutableAttributedString This, Foundation.NSRange range);
static member FixAttributesInRange : Foundation.NSMutableAttributedString * Foundation.NSRange -> unit

Parameters

This
NSMutableAttributedString

The instance on which this method operates.

range
NSRange
Attributes

Remarks

After edits, NSMutableAttributedStrings may accumulate inconsistencies. For instance, paragraph styles must apply to entire paragraphs, scripts may be assigned to fonts that support them, and deleting attachment characters requires the corresponding attachment objects to be released. This method performs necessary cleanup.

Applies to