NSAttributedString.LowLevelGetAttributes(nint, NSRange) 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.
Low-level version that provides an NSDictionary for the attributes in the specified range.
[Foundation.Export("attributesAtIndex:effectiveRange:")]
public virtual IntPtr LowLevelGetAttributes (nint location, out Foundation.NSRange effectiveRange);
abstract member LowLevelGetAttributes : nint * -> nativeint
override this.LowLevelGetAttributes : nint * -> nativeint
Parameters
- location
- System.System.IntPtr System.nativeint
The location to probe.
- effectiveRange
- NSRange
The range to probe.
Returns
nativeint
IntPtr handle to a native NSDictionary class.
- 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 NSAttributedString and in general is only useful for subclasses. You are expected to return an 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, possibly even caching or reusing existing dictionary instances.