VectSharp 2.6.1
A light library for C# vector graphics
Loading...
Searching...
No Matches
VectSharp.LineDash Struct Reference

Represents instructions on how to paint a dashed line. More...

Public Member Functions

 LineDash (double unitsOn, double unitsOff, double phase)
 Define a new line dash pattern. More...
 
 LineDash (double units, double phase=0)
 Define a new line dash pattern. More...
 
 LineDash (double[] dashArray, double phase=0)
 Define a new line dash pattern. More...
 

Public Attributes

double UnitsOn
 Length of the "on" (painted) segment. More...
 
double UnitsOff
 Length of the "off" (not painted) segment. More...
 
double[] DashArray
 An array specifying lenghts of alternating dashes and gaps. More...
 
double Phase
 Position in the dash pattern at which the line starts. More...
 

Static Public Attributes

static LineDash SolidLine = new LineDash(0, 0, 0)
 A solid (not dashed) line More...
 

Detailed Description

Represents instructions on how to paint a dashed line.

Definition at line 232 of file Enums.cs.

Constructor & Destructor Documentation

◆ LineDash() [1/3]

VectSharp.LineDash.LineDash ( double  unitsOn,
double  unitsOff,
double  phase 
)

Define a new line dash pattern.

Parameters
unitsOnThe length of the "on" (painted) segment.
unitsOffThe length of the "off" (not painted) segment.
phaseThe position in the dash pattern at which the line starts.

Definition at line 267 of file Enums.cs.

◆ LineDash() [2/3]

VectSharp.LineDash.LineDash ( double  units,
double  phase = 0 
)

Define a new line dash pattern.

Parameters
unitsThe length of the dash segments and gaps.
phaseThe position in the dash pattern at which the line starts.

Definition at line 284 of file Enums.cs.

◆ LineDash() [3/3]

VectSharp.LineDash.LineDash ( double[]  dashArray,
double  phase = 0 
)

Define a new line dash pattern.

Parameters
dashArrayAn array specifying lenghts of alternating dashes and gaps.
phaseThe position in the dash pattern at which the line starts.

Definition at line 301 of file Enums.cs.

Member Data Documentation

◆ DashArray

double [] VectSharp.LineDash.DashArray

An array specifying lenghts of alternating dashes and gaps.

Definition at line 254 of file Enums.cs.

◆ Phase

double VectSharp.LineDash.Phase

Position in the dash pattern at which the line starts.

Definition at line 259 of file Enums.cs.

◆ SolidLine

LineDash VectSharp.LineDash.SolidLine = new LineDash(0, 0, 0)
static

A solid (not dashed) line

Definition at line 237 of file Enums.cs.

◆ UnitsOff

double VectSharp.LineDash.UnitsOff

Length of the "off" (not painted) segment.

Definition at line 249 of file Enums.cs.

◆ UnitsOn

double VectSharp.LineDash.UnitsOn

Length of the "on" (painted) segment.

Definition at line 243 of file Enums.cs.


The documentation for this struct was generated from the following file: