iText 7 7.1.9 API
iText.Kernel.Pdf.Canvas.Draw.DashedLine Class Reference

Implementation of ILineDrawer which draws a dashed horizontal line over the middle of the specified rectangle. More...

Inheritance diagram for iText.Kernel.Pdf.Canvas.Draw.DashedLine:
iText.Kernel.Pdf.Canvas.Draw.ILineDrawer

Public Member Functions

  DashedLine (float lineWidth)
  Creates an instance of DashedLine with the specified line width. More...
 
virtual void  Draw (PdfCanvas canvas, Rectangle drawArea)
  Performs configurable drawing operations related to specific region coordinates on a canvas. More...
 
virtual float  GetLineWidth ()
  Gets line width in points More...
 
virtual void  SetLineWidth (float lineWidth)
  Sets line width in points More...
 
virtual Color  GetColor ()
  Gets the color of the line More...
 
virtual void  SetColor (Color color)
  Sets line color More...
 

Detailed Description

Implementation of ILineDrawer which draws a dashed horizontal line over the middle of the specified rectangle.

Constructor & Destructor Documentation

◆ DashedLine()

iText.Kernel.Pdf.Canvas.Draw.DashedLine.DashedLine ( float  lineWidth )
inline

Creates an instance of DashedLine with the specified line width.

Parameters
lineWidth

Member Function Documentation

◆ Draw()

virtual void iText.Kernel.Pdf.Canvas.Draw.DashedLine.Draw ( PdfCanvas  canvas,
Rectangle  drawArea 
)
inlinevirtual

Performs configurable drawing operations related to specific region coordinates on a canvas.

Parameters
canvas the canvas to draw on
drawArea the rectangle in relation to which to fulfill drawing instructions

Implements iText.Kernel.Pdf.Canvas.Draw.ILineDrawer.

◆ GetColor()

virtual Color iText.Kernel.Pdf.Canvas.Draw.DashedLine.GetColor ( )
inlinevirtual

Gets the color of the line

Returns
color of the line

Implements iText.Kernel.Pdf.Canvas.Draw.ILineDrawer.

◆ GetLineWidth()

virtual float iText.Kernel.Pdf.Canvas.Draw.DashedLine.GetLineWidth ( )
inlinevirtual

Gets line width in points

Returns
line thickness

Implements iText.Kernel.Pdf.Canvas.Draw.ILineDrawer.

◆ SetColor()

virtual void iText.Kernel.Pdf.Canvas.Draw.DashedLine.SetColor ( Color  color )
inlinevirtual

Sets line color

Parameters
color new line color

Implements iText.Kernel.Pdf.Canvas.Draw.ILineDrawer.

◆ SetLineWidth()

virtual void iText.Kernel.Pdf.Canvas.Draw.DashedLine.SetLineWidth ( float  lineWidth )
inlinevirtual

Sets line width in points

Parameters
lineWidth new line width

Implements iText.Kernel.Pdf.Canvas.Draw.ILineDrawer.