MonobjcMonobjc Documented Class Library
WillSetLineFragmentRectForGlyphRangeUsedRectBaselineOffset Method (lineRect, glyphRange, usedRect, baselineOffset)
NamespacesMonobjc.AppKitNSTypesetterWillSetLineFragmentRectForGlyphRangeUsedRectBaselineOffset(NSRect%, NSRange, NSRect%, CGFloat%)

Called by the typesetter just prior to storing the actual line fragment rectangle location in the layout manager.

Original signature is '- (void)willSetLineFragmentRect:(NSRectPointer)lineRect forGlyphRange:(NSRange)glyphRange usedRect:(NSRectPointer)usedRect baselineOffset:(CGFloat *)baselineOffset'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void WillSetLineFragmentRectForGlyphRangeUsedRectBaselineOffset(
	ref NSRect lineRect,
	NSRange glyphRange,
	ref NSRect usedRect,
	out CGFloat baselineOffset
)
Public Overridable Sub WillSetLineFragmentRectForGlyphRangeUsedRectBaselineOffset ( _
	ByRef lineRect As NSRect, _
	glyphRange As NSRange, _
	ByRef usedRect As NSRect, _
	<OutAttribute> ByRef baselineOffset As CGFloat _
)
public:
virtual void WillSetLineFragmentRectForGlyphRangeUsedRectBaselineOffset(
	NSRect% lineRect, 
	NSRange glyphRange, 
	NSRect% usedRect, 
	[OutAttribute] CGFloat% baselineOffset
)
Parameters
lineRect (NSRect%)
The rectangle in which the glyphs in glyphRange are laid out.
glyphRange (NSRange)
The range of the glyphs to lay out.
usedRect (NSRect%)
The portion of lineRect, in the NSTextContainer object’s coordinate system, that actually contains glyphs or other marks that are drawn (including the text container’s line fragment padding). The usedRect must be equal to or contained within lineRect.
baselineOffset (CGFloat%)
The vertical distance in pixels from the line fragment origin to the baseline on which the glyphs align.
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)