編集

次の方法で共有


NSLayoutManager.DrawUnderline Method

Definition

Underlines the glyphs in .

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

Parameters

glyphRange
NSRange

The range of glyphs to be underlined.

underlineVal
NSUnderlineStyle

The drawing style of the underline.

baselineOffset
nfloat

The distance from the baseline to draw the underline.

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 Underline(NSRange, NSUnderlineStyle, CGRect, NSRange, CGPoint) method.

Applies to