Share via


NSAttributedString.GetAttribute Method

Definition

Overloads

GetAttribute(String, IntPtr, NSRange)

[Foundation.Export("attribute:atIndex:effectiveRange:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Foundation.NSObject GetAttribute(string attribute, IntPtr location, out Foundation.NSRange effectiveRange);
[<Foundation.Export("attribute:atIndex:effectiveRange:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetAttribute : string * nativeint * NSRange -> Foundation.NSObject
override this.GetAttribute : string * nativeint * NSRange -> Foundation.NSObject

Parameters

attribute
String
location
IntPtr

nativeint

effectiveRange
NSRange

Returns

Attributes

Applies to

GetAttribute(String, IntPtr, NSRange, NSRange)

[Foundation.Export("attribute:atIndex:longestEffectiveRange:inRange:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Foundation.NSObject GetAttribute(string attribute, IntPtr location, out Foundation.NSRange longestEffectiveRange, Foundation.NSRange rangeLimit);
[<Foundation.Export("attribute:atIndex:longestEffectiveRange:inRange:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetAttribute : string * nativeint * NSRange * Foundation.NSRange -> Foundation.NSObject
override this.GetAttribute : string * nativeint * NSRange * Foundation.NSRange -> Foundation.NSObject

Parameters

attribute
String
location
IntPtr

nativeint

longestEffectiveRange
NSRange
rangeLimit
NSRange

Returns

Attributes

Applies to