MonobjcMonobjc Documented Class Library
LineBreakBeforeIndexWithinRange Method (__target, index, aRange)
NamespacesMonobjc.AppKitNSAttributedString_AppKitAdditionsLineBreakBeforeIndexWithinRange(NSAttributedString, NSUInteger, NSRange)

Returns the index of the closest character before the given index, and within the given range, that can be placed on a new line when laying out text.

Original signature is '- (NSUInteger)lineBreakBeforeIndex:(NSUInteger)index withinRange:(NSRange)aRange'

Available in Mac OS X v10.0 and later.

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

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

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)