Edytuj

Udostępnij za pośrednictwem


NSLayoutManager.DrawStrikethrough Method

Definition

Draws a strikethrough line through the glyphs in .

[Foundation.Export("drawStrikethroughForGlyphRange:strikethroughType:baselineOffset:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:")]
public virtual void DrawStrikethrough (Foundation.NSRange glyphRange, Foundation.NSUnderlineStyle strikethroughVal, nfloat baselineOffset, CoreGraphics.CGRect lineRect, Foundation.NSRange lineGlyphRange, CoreGraphics.CGPoint containerOrigin);
abstract member DrawStrikethrough : Foundation.NSRange * Foundation.NSUnderlineStyle * nfloat * CoreGraphics.CGRect * Foundation.NSRange * CoreGraphics.CGPoint -> unit
override this.DrawStrikethrough : Foundation.NSRange * Foundation.NSUnderlineStyle * nfloat * CoreGraphics.CGRect * Foundation.NSRange * CoreGraphics.CGPoint -> unit

Parameters

glyphRange
NSRange

The range of glyphs to be struck through.

strikethroughVal
NSUnderlineStyle

The drawing style of the strikethrough (for instance, dashed or solid).

baselineOffset
nfloat

Distance above the baseline to draw the strikethrough.

lineRect
CGRect

The line fragment rectangle containing .

lineGlyphRange
NSRange

All glyphs within .

containerOrigin
CGPoint

The origin of the objects containing NSTextContainer.

Attributes

Remarks

Developers should generally use the simpler Strikethrough(NSRange, NSUnderlineStyle, CGRect, NSRange, CGPoint) method.

Applies to