Compartilhar via


NSLayoutManager.DrawStrikethrough Método

Definição

Desenha uma linha de tachado pelos glifos em .

[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

Parâmetros

glyphRange
NSRange

O intervalo de glifos a serem atingidos.

strikethroughVal
NSUnderlineStyle

O estilo de desenho do tachado (por exemplo, tracejado ou sólido).

baselineOffset
nfloat

Distância acima da linha de base para desenhar o tachado.

lineRect
CGRect

O retângulo de fragmento de linha que contém .

lineGlyphRange
NSRange

Todos os glifos dentro de .

containerOrigin
CGPoint

A origem dos objetos que contêm NSTextContainer.

Atributos

Comentários

Os desenvolvedores geralmente devem usar o método mais Strikethrough(NSRange, NSUnderlineStyle, CGRect, NSRange, CGPoint) simples.

Aplica-se a