Search Results for

    Show / Hide Table of Contents

    Class SquigglyLinePainter

    Mark painter that draws squiggly lines, similar to the mis-spelled word marks in Microsoft Word.

    Inheritance
    System.Object
    AbstractMarkPainter
    HorizontalLinePainter
    SquigglyLinePainter
    Implements
    ITextMarkPainter
    Inherited Members
    HorizontalLinePainter.GetLineRectangle(Rectangle, Int32)
    HorizontalLinePainter.DrawLine(Graphics, Rectangle)
    AbstractMarkPainter.ConvertToRectangle(RectangleF)
    AbstractMarkPainter.Color
    AbstractMarkPainter.Location
    AbstractMarkPainter.PenWidth
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Sdl.DesktopEditor.EditorApi.Implementation
    Assembly: Sdl.DesktopEditor.EditorApi.dll
    Syntax
    public class SquigglyLinePainter : HorizontalLinePainter, ITextMarkPainter

    Constructors

    SquigglyLinePainter()

    Initialize the painter to draw angular quiggly red underlines size 3 by 3 with pen width 1, which is how spelling errors in Word are formatted.

    Declaration
    public SquigglyLinePainter()

    Properties

    Shape

    Shape of the squiggles.

    Declaration
    public SquigglyLinePainter.SquiggleShape Shape { get; set; }
    Property Value
    Type Description
    SquigglyLinePainter.SquiggleShape

    SquiggleHeight

    Total height of a the squiggle line

    Declaration
    public int SquiggleHeight { get; set; }
    Property Value
    Type Description
    System.Int32

    SquiggleWidth

    Width of a single 180 degree squiggle arc (i.e. "half a squiggle")

    Declaration
    public int SquiggleWidth { get; set; }
    Property Value
    Type Description
    System.Int32

    Methods

    DrawMarkPart(Graphics, ITextMark, Rectangle, Rectangle, Boolean, Boolean)

    Draw the squiggly underline.

    Declaration
    public override void DrawMarkPart(Graphics g, ITextMark mark, Rectangle boundingRectangle, Rectangle contentRectangle, bool isFirstLine, bool isLastLine)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    ITextMark mark
    System.Drawing.Rectangle boundingRectangle
    System.Drawing.Rectangle contentRectangle
    System.Boolean isFirstLine
    System.Boolean isLastLine
    Overrides
    HorizontalLinePainter.DrawMarkPart(Graphics, ITextMark, Rectangle, Rectangle, Boolean, Boolean)

    GetMarkPartBounds(Graphics, ITextMark, Rectangle, Boolean, Boolean)

    Returns a box that is SquiggleHeight high in the location.

    Declaration
    public override Rectangle GetMarkPartBounds(Graphics g, ITextMark mark, Rectangle contentRectangle, bool isFirstLine, bool isLastLine)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    ITextMark mark
    System.Drawing.Rectangle contentRectangle
    System.Boolean isFirstLine
    System.Boolean isLastLine
    Returns
    Type Description
    System.Drawing.Rectangle
    Overrides
    HorizontalLinePainter.GetMarkPartBounds(Graphics, ITextMark, Rectangle, Boolean, Boolean)

    Implements

    ITextMarkPainter

    Extension Methods

    WindowsControlUtils.ForWindowFromFrameworkElement(Object, Action<Window>)

    On this page

    • Constructors
      • SquigglyLinePainter()
    • Properties
      • Shape
      • SquiggleHeight
      • SquiggleWidth
    • Methods
      • DrawMarkPart(Graphics, ITextMark, Rectangle, Rectangle, Boolean, Boolean)
      • GetMarkPartBounds(Graphics, ITextMark, Rectangle, Boolean, Boolean)
    • Implements
    • Extension Methods
    Back to top Generated by DocFX