MonobjcMonobjc Documented Class Library
LineFragmentRectForProposedRectSweepDirectionMovementDirectionRemainingRect Method (proposedRect, sweepDirection, movementDirection, remainingRect)
NamespacesMonobjc.AppKitNSTextContainerLineFragmentRectForProposedRectSweepDirectionMovementDirectionRemainingRect(NSRect, NSLineSweepDirection, NSLineMovementDirection, NSRect%)

Overridden by subclasses to calculate and return the longest rectangle available in the proposed rectangle for displaying text, or NSZeroRect if there is none according to the receiver’s region definition.

Original signature is '- (NSRect)lineFragmentRectForProposedRect:(NSRect)proposedRect sweepDirection:(NSLineSweepDirection)sweepDirection movementDirection:(NSLineMovementDirection)movementDirection remainingRect:(NSRectPointer)remainingRect'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSRect LineFragmentRectForProposedRectSweepDirectionMovementDirectionRemainingRect(
	NSRect proposedRect,
	NSLineSweepDirection sweepDirection,
	NSLineMovementDirection movementDirection,
	ref NSRect remainingRect
)
Public Overridable Function LineFragmentRectForProposedRectSweepDirectionMovementDirectionRemainingRect ( _
	proposedRect As NSRect, _
	sweepDirection As NSLineSweepDirection, _
	movementDirection As NSLineMovementDirection, _
	ByRef remainingRect As NSRect _
) As NSRect
public:
virtual NSRect LineFragmentRectForProposedRectSweepDirectionMovementDirectionRemainingRect(
	NSRect proposedRect, 
	NSLineSweepDirection sweepDirection, 
	NSLineMovementDirection movementDirection, 
	NSRect% remainingRect
)
Parameters
proposedRect (NSRect)
The proposed rectangle in which to layout text.
sweepDirection (NSLineSweepDirection)
The line sweep direction.
movementDirection (NSLineMovementDirection)
The line movement direction.
remainingRect (NSRect%)
Upon return, the unused, possibly shifted, portion of proposedRect that’s available for further text, or NSZeroRect if there is no remainder.
Return Value
The longest rectangle available in the proposed rectangle for displaying text, or NSZeroRect if there is none according to the receiver’s region definition.
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)