MonobjcMonobjc Documented Class Library
EnumerateAttributeInRangeOptionsUsingBlock Method (attrName, enumerationRange, opts, block)
NamespacesMonobjc.FoundationNSAttributedStringEnumerateAttributeInRangeOptionsUsingBlock(NSString, NSRange, NSAttributedStringEnumerationOptions, Action<(Of <<'(Id, NSRange, IntPtr>)>>))

Executes the Block for the specified attribute run in the specified range.

Original signature is '- (void)enumerateAttribute:(NSString *)attrName inRange:(NSRange)enumerationRange options:(NSAttributedStringEnumerationOptions)opts usingBlock:(void (^)(id value, NSRange range, BOOL *stop))block'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void EnumerateAttributeInRangeOptionsUsingBlock(
	NSString attrName,
	NSRange enumerationRange,
	NSAttributedStringEnumerationOptions opts,
	Action<Id, NSRange, IntPtr> block
)
Public Overridable Sub EnumerateAttributeInRangeOptionsUsingBlock ( _
	attrName As NSString, _
	enumerationRange As NSRange, _
	opts As NSAttributedStringEnumerationOptions, _
	block As Action(Of Id, NSRange, IntPtr) _
)
public:
virtual void EnumerateAttributeInRangeOptionsUsingBlock(
	NSString^ attrName, 
	NSRange enumerationRange, 
	NSAttributedStringEnumerationOptions opts, 
	Action<Id^, NSRange, IntPtr>^ block
)
Parameters
attrName (NSString)
The name of an attribute.
enumerationRange (NSRange)
If non-NULL, contains the maximum range over which the attributes and values are enumerated, clipped to enumerationRange.
opts (NSAttributedStringEnumerationOptions)
The options used by the enumeration. The values can be combined using C-bitwise OR. The values are described in “NSAttributedStringEnumerationOptions.”
block (Action<(Of <(<'Id, NSRange, IntPtr>)>)>)
The Block to apply to ranges of the attribute in the attributed string.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

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