MonobjcMonobjc Documented Class Library
AttributeAtIndexEffectiveRange Method (attributeName, index, aRange)
NamespacesMonobjc.FoundationNSAttributedStringAttributeAtIndexEffectiveRange(NSString, NSUInteger, NSRange%)

Returns the value for an 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 effectiveRange:(NSRangePointer)aRange'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id AttributeAtIndexEffectiveRange(
	NSString attributeName,
	NSUInteger index,
	ref NSRange aRange
)
Public Overridable Function AttributeAtIndexEffectiveRange ( _
	attributeName As NSString, _
	index As NSUInteger, _
	ByRef aRange As NSRange _
) As Id
public:
virtual Id^ AttributeAtIndexEffectiveRange(
	NSString^ attributeName, 
	NSUInteger index, 
	NSRange% aRange
)
Parameters
attributeName (NSString)
The name of an attribute.
index (NSUInteger)
The index for which to return attributes. This value must not exceed the bounds of the receiver.
aRange (NSRange%)
If non-NULL:
Return Value
The value for the attribute named attributeName of the character at index 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)