MonobjcMonobjc Documented Class Library
GetLineStartEndContentsEndForRange Method (startIndex, lineEndIndex, contentsEndIndex, aRange)
NamespacesMonobjc.FoundationNSStringGetLineStartEndContentsEndForRange(NSUInteger%, NSUInteger%, NSUInteger%, NSRange)

Returns by reference the beginning of the first line and the end of the last line touched by the given range.

Original signature is '- (void)getLineStart:(NSUInteger *)startIndex end:(NSUInteger *)lineEndIndex contentsEnd:(NSUInteger *)contentsEndIndex forRange:(NSRange)aRange'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void GetLineStartEndContentsEndForRange(
	ref NSUInteger startIndex,
	ref NSUInteger lineEndIndex,
	ref NSUInteger contentsEndIndex,
	NSRange aRange
)
Public Overridable Sub GetLineStartEndContentsEndForRange ( _
	ByRef startIndex As NSUInteger, _
	ByRef lineEndIndex As NSUInteger, _
	ByRef contentsEndIndex As NSUInteger, _
	aRange As NSRange _
)
public:
virtual void GetLineStartEndContentsEndForRange(
	NSUInteger% startIndex, 
	NSUInteger% lineEndIndex, 
	NSUInteger% contentsEndIndex, 
	NSRange aRange
)
Parameters
startIndex (NSUInteger%)
Upon return, contains the index of the first character of the line containing the beginning of aRange. Pass NULL if you do not need this value (in which case the work to compute the value isn’t performed).
lineEndIndex (NSUInteger%)
Upon return, contains the index of the first character past the terminator of the line containing the end of aRange. Pass NULL if you do not need this value (in which case the work to compute the value isn’t performed).
contentsEndIndex (NSUInteger%)
Upon return, contains the index of the first character of the terminator of the line containing the end of aRange. Pass NULL if you do not need this value (in which case the work to compute the value isn’t performed).
aRange (NSRange)
A range within the receiver. The value must not exceed the bounds of the receiver.
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)