NSMutableAttributedStringKitAdditions.FixAttributesInRange Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.