MonobjcMonobjc Documented Class Library
DrawStrikethroughForGlyphRangeStrikethroughTypeBaselineOffsetLineFragmentRectLineFragmentGlyphRangeContainerOrigin Method (glyphRange, strikethroughVal, baselineOffset, lineRect, lineGlyphRange, containerOrigin)
NamespacesMonobjc.AppKitNSLayoutManagerDrawStrikethroughForGlyphRangeStrikethroughTypeBaselineOffsetLineFragmentRectLineFragmentGlyphRangeContainerOrigin(NSRange, NSInteger, CGFloat, NSRect, NSRange, NSPoint)

Draws a strikethrough for the glyphs in a given range.

Original signature is '- (void)drawStrikethroughForGlyphRange:(NSRange)glyphRange strikethroughType:(NSInteger)strikethroughVal baselineOffset:(CGFloat)baselineOffset lineFragmentRect:(NSRect)lineRect lineFragmentGlyphRange:(NSRange)lineGlyphRange containerOrigin:(NSPoint)containerOrigin'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void DrawStrikethroughForGlyphRangeStrikethroughTypeBaselineOffsetLineFragmentRectLineFragmentGlyphRangeContainerOrigin(
	NSRange glyphRange,
	NSInteger strikethroughVal,
	CGFloat baselineOffset,
	NSRect lineRect,
	NSRange lineGlyphRange,
	NSPoint containerOrigin
)
Public Overridable Sub DrawStrikethroughForGlyphRangeStrikethroughTypeBaselineOffsetLineFragmentRectLineFragmentGlyphRangeContainerOrigin ( _
	glyphRange As NSRange, _
	strikethroughVal As NSInteger, _
	baselineOffset As CGFloat, _
	lineRect As NSRect, _
	lineGlyphRange As NSRange, _
	containerOrigin As NSPoint _
)
public:
virtual void DrawStrikethroughForGlyphRangeStrikethroughTypeBaselineOffsetLineFragmentRectLineFragmentGlyphRangeContainerOrigin(
	NSRange glyphRange, 
	NSInteger strikethroughVal, 
	CGFloat baselineOffset, 
	NSRect lineRect, 
	NSRange lineGlyphRange, 
	NSPoint containerOrigin
)
Parameters
glyphRange (NSRange)
The range of glyphs for which to draw a strikethrough. The range must belong to a single line fragment rectangle (as returned by lineFragmentRectForGlyphAtIndex:effectiveRange:).
strikethroughVal (NSInteger)
The style of strikethrough to draw. This value is a mask derived from the value for NSUnderlineStyleAttributeName—for example, (NSUnderlinePatternDash | NSUnderlineStyleThick). Subclasses can define custom strikethrough styles.
baselineOffset (CGFloat)
Indicates how far above the text baseline the underline should be drawn.
lineRect (NSRect)
The line fragment rectangle containing the glyphs to draw strikethrough for.
lineGlyphRange (NSRange)
The range of all glyphs within lineRect.
containerOrigin (NSPoint)
The origin of the line fragment rectangle’s NSTextContainer 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)