NSMutableAttributedString.LowLevelSetAttributes(IntPtr, NSRange) Method

Definition

Low-level version of SetAttributes for high throughput attribute setting.

[Foundation.Export("setAttributes:range:")]
public virtual void LowLevelSetAttributes (IntPtr dictionaryAttrsHandle, Foundation.NSRange range);
abstract member LowLevelSetAttributes : nativeint * Foundation.NSRange -> unit
override this.LowLevelSetAttributes : nativeint * Foundation.NSRange -> unit

Parameters

dictionaryAttrsHandle
IntPtr

nativeint

Handle to an NSDictionary with the attributes to set.

range
NSRange

Range to apply the attributes to.

Attributes

Remarks

In general, you should use the LowLevelGetAttributes(nint, NSRange) methods, which will return a high-level NSDictionary.

This is the low-level interface to NSMutableAttributedString and in general is only used when you must subclass and override the behavior. You are expected to consume the provided IntPtr that represents a handle to an NSDictionary. This API is kept as a low-level API, since it is consumed by NSTextStorage which might call this method thousands of times per character insertion, so it is very important that this is kept as fast as possible.

Applies to