MonobjcMonobjc Documented Class Library
AttributeAtIndexLongestEffectiveRangeInRange Method (attributeName, index, aRange, rangeLimit)
NamespacesMonobjc.FoundationNSAttributedStringAttributeAtIndexLongestEffectiveRangeInRange(NSString, NSUInteger, NSRange%, NSRange)

Returns the value for the attribute with a given name of the character at a given index, and by reference the range over which the attribute applies.

Original signature is '- (id)attribute:(NSString *)attributeName atIndex:(NSUInteger)index longestEffectiveRange:(NSRangePointer)aRange inRange:(NSRange)rangeLimit'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id AttributeAtIndexLongestEffectiveRangeInRange(
	NSString attributeName,
	NSUInteger index,
	ref NSRange aRange,
	NSRange rangeLimit
)
Public Overridable Function AttributeAtIndexLongestEffectiveRangeInRange ( _
	attributeName As NSString, _
	index As NSUInteger, _
	ByRef aRange As NSRange, _
	rangeLimit As NSRange _
) As Id
public:
virtual Id^ AttributeAtIndexLongestEffectiveRangeInRange(
	NSString^ attributeName, 
	NSUInteger index, 
	NSRange% aRange, 
	NSRange rangeLimit
)
Parameters
attributeName (NSString)
The name of an attribute.
index (NSUInteger)
The index at which to test for attributeName.
aRange (NSRange%)
If non-NULL:
rangeLimit (NSRange)
The range over which to search for continuous presence of attributeName. This value must not exceed the bounds of the receiver.
Return Value
The value for the attribute named attributeName of the character at index, or nil if there is no such attribute.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)