MonobjcMonobjc Documented Class Library
DrawUnderlineForGlyphRangeUnderlineTypeBaselineOffsetLineFragmentRectLineFragmentGlyphRangeContainerOrigin Method (glyphRange, underlineVal, baselineOffset, lineRect, lineGlyphRange, containerOrigin)
NamespacesMonobjc.AppKitNSLayoutManagerDrawUnderlineForGlyphRangeUnderlineTypeBaselineOffsetLineFragmentRectLineFragmentGlyphRangeContainerOrigin(NSRange, NSInteger, CGFloat, NSRect, NSRange, NSPoint)

Draws underlining for the glyphs in a given range.

Original signature is '- (void)drawUnderlineForGlyphRange:(NSRange)glyphRange underlineType:(NSInteger)underlineVal baselineOffset:(CGFloat)baselineOffset lineFragmentRect:(NSRect)lineRect lineFragmentGlyphRange:(NSRange)lineGlyphRange containerOrigin:(NSPoint)containerOrigin'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void DrawUnderlineForGlyphRangeUnderlineTypeBaselineOffsetLineFragmentRectLineFragmentGlyphRangeContainerOrigin(
	NSRange glyphRange,
	NSInteger underlineVal,
	CGFloat baselineOffset,
	NSRect lineRect,
	NSRange lineGlyphRange,
	NSPoint containerOrigin
)
Public Overridable Sub DrawUnderlineForGlyphRangeUnderlineTypeBaselineOffsetLineFragmentRectLineFragmentGlyphRangeContainerOrigin ( _
	glyphRange As NSRange, _
	underlineVal As NSInteger, _
	baselineOffset As CGFloat, _
	lineRect As NSRect, _
	lineGlyphRange As NSRange, _
	containerOrigin As NSPoint _
)
public:
virtual void DrawUnderlineForGlyphRangeUnderlineTypeBaselineOffsetLineFragmentRectLineFragmentGlyphRangeContainerOrigin(
	NSRange glyphRange, 
	NSInteger underlineVal, 
	CGFloat baselineOffset, 
	NSRect lineRect, 
	NSRange lineGlyphRange, 
	NSPoint containerOrigin
)
Parameters
glyphRange (NSRange)
A range of glyphs, which must belong to a single line fragment rectangle (as returned by lineFragmentRectForGlyphAtIndex:effectiveRange:).
underlineVal (NSInteger)
The style of underlining to draw. This value is a mask derived from the value for NSUnderlineStyleAttributeName—for example, (NSUnderlinePatternDash | NSUnderlineStyleThick). Subclasses can define custom underlining styles.
baselineOffset (CGFloat)
Specifies the distance from the bottom of the bounding box of the specified glyphs in the specified range to their baseline.
lineRect (NSRect)
The line fragment rectangle containing the glyphs to draw underlining for.
lineGlyphRange (NSRange)
The range of all glyphs within lineRect.
containerOrigin (NSPoint)
The origin of the lineRectNSTextContainer in its NSTextView.
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)