Foundation.NSAttributedString.LowLevelGetAttributes Method
Low-level version that provides an NSDictionary for the attributes in the specified range.

Syntax

[Foundation.Export("attributesAtIndex:effectiveRange:")]
public virtual IntPtr LowLevelGetAttributes (out NSRange effectiveRange, nint location)

Parameters

location
The location to probe.
effectiveRange
The range to probe.

Returns

IntPtr handle to a native NSDictionary class.

Remarks

In general, you should use the NSAttributedString.GetAttributes 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.

Requirements

Namespace: Foundation
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0