NSLayoutManager.DrawUnderline Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Underlines the glyphs in glyphRange.
[Foundation.Export("drawUnderlineForGlyphRange:underlineType:baselineOffset:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void DrawUnderline(Foundation.NSRange glyphRange, Foundation.NSUnderlineStyle underlineVal, System.Runtime.InteropServices.NFloat baselineOffset, CoreGraphics.CGRect lineRect, Foundation.NSRange lineGlyphRange, CoreGraphics.CGPoint containerOrigin);
[<Foundation.Export("drawUnderlineForGlyphRange:underlineType:baselineOffset:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member DrawUnderline : Foundation.NSRange * Foundation.NSUnderlineStyle * System.Runtime.InteropServices.NFloat * CoreGraphics.CGRect * Foundation.NSRange * CoreGraphics.CGPoint -> unit
override this.DrawUnderline : Foundation.NSRange * Foundation.NSUnderlineStyle * System.Runtime.InteropServices.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 glyphRange.
- lineGlyphRange
- NSRange
All glyphs within lineRect.
- containerOrigin
- CGPoint
The origin of the lineRect objects containing NSTextContainer.
- Attributes
Remarks
Developers should generally use the simpler Underline(NSRange, NSUnderlineStyle, CGRect, NSRange, CGPoint) method.