Share via


NSAttributedString.LowLevelGetAttributes Method

Definition

Overloads

Name Description
LowLevelGetAttributes(IntPtr, NSRange)

Low-level version that provides an NSDictionary for the attributes in the specified range.

LowLevelGetAttributes(IntPtr, IntPtr)

LowLevelGetAttributes(IntPtr, NSRange)

Low-level version that provides an NSDictionary for the attributes in the specified range.

public IntPtr LowLevelGetAttributes(IntPtr location, out Foundation.NSRange effectiveRange);
member this.LowLevelGetAttributes : nativeint * NSRange -> nativeint

Parameters

location
IntPtr

nativeint

The location to probe.

effectiveRange
NSRange

The range to probe.

Returns

IntPtr

nativeint

IntPtr handle to a native NSDictionary class.

Remarks

In general, you should use the LowLevelGetAttributes(IntPtr, 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.

Applies to

LowLevelGetAttributes(IntPtr, IntPtr)

[Foundation.Export("attributesAtIndex:effectiveRange:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual IntPtr LowLevelGetAttributes(IntPtr location, IntPtr effectiveRange);
[<Foundation.Export("attributesAtIndex:effectiveRange:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member LowLevelGetAttributes : nativeint * nativeint -> nativeint
override this.LowLevelGetAttributes : nativeint * nativeint -> nativeint

Parameters

location
IntPtr

nativeint

effectiveRange
IntPtr

nativeint

Returns

IntPtr

nativeint

Attributes

Applies to