Class SquigglyLinePainter
Mark painter that draws squiggly lines, similar to the mis-spelled word marks in Microsoft Word.
Implements
Inherited Members
      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, ITextMarkPainterConstructors
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
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 |