MonobjcMonobjc Documented Class Library
TemporaryAttributeAtCharacterIndexLongestEffectiveRangeInRange Method (attrName, location, range, rangeLimit)
NamespacesMonobjc.AppKitNSLayoutManagerTemporaryAttributeAtCharacterIndexLongestEffectiveRangeInRange(NSString, NSUInteger, NSRange%, NSRange)

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

Original signature is '- (id)temporaryAttribute:(NSString *)attrName atCharacterIndex:(NSUInteger)location longestEffectiveRange:(NSRangePointer)range inRange:(NSRange)rangeLimit'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id TemporaryAttributeAtCharacterIndexLongestEffectiveRangeInRange(
	NSString attrName,
	NSUInteger location,
	ref NSRange range,
	NSRange rangeLimit
)
Public Overridable Function TemporaryAttributeAtCharacterIndexLongestEffectiveRangeInRange ( _
	attrName As NSString, _
	location As NSUInteger, _
	ByRef range As NSRange, _
	rangeLimit As NSRange _
) As Id
public:
virtual Id^ TemporaryAttributeAtCharacterIndexLongestEffectiveRangeInRange(
	NSString^ attrName, 
	NSUInteger location, 
	NSRange% range, 
	NSRange rangeLimit
)
Parameters
attrName (NSString)
The name of a temporary attribute.
location (NSUInteger)
The index for which to return attributes. This value must not exceed the bounds of the receiver.
range (NSRange%)
If non-NULL:
rangeLimit (NSRange)
The range over which to search for continuous presence of attrName. This value must not exceed the bounds of the receiver.
Return Value
The value for the attribute named attrName of the character at location, 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.AppKit (Module: Monobjc.AppKit)