MonobjcMonobjc Documented Class Library
RangeOfTextBlockAtIndex Method (__target, block, location)
NamespacesMonobjc.AppKitNSAttributedString_AppKitAdditionsRangeOfTextBlockAtIndex(NSAttributedString, NSTextBlock, NSUInteger)

Returns the range of the individual text block that contains the given location.

Original signature is '- (NSRange)rangeOfTextBlock:(NSTextBlock *)block atIndex:(NSUInteger)location'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSRange RangeOfTextBlockAtIndex(
	this NSAttributedString __target,
	NSTextBlock block,
	NSUInteger location
<ExtensionAttribute> _
Public Shared Function RangeOfTextBlockAtIndex ( _
	__target As NSAttributedString, _
	block As NSTextBlock, _
	location As NSUInteger _
) As NSRange
static NSRange RangeOfTextBlockAtIndex(
	NSAttributedString^ __target, 
	NSTextBlock^ block, 
	NSUInteger location
__target (NSAttributedString)
The target instance.
block (NSTextBlock)
location (NSUInteger)
Return Value

[Missing <returns> documentation for "M:Monobjc.AppKit.NSAttributedString_AppKitAdditions.RangeOfTextBlockAtIndex(Monobjc.Foundation.NSAttributedString,Monobjc.AppKit.NSTextBlock,Monobjc.Foundation.NSUInteger)"]

Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type NSAttributedString. When you use instance method syntax to call this method, omit the first parameter.
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)