In This Topic

SetLineDash Method (GdPicturePDF)

In This Topic
Sets the dash pattern to be used when paths are stroked.
Overload List
OverloadDescription
Sets the dash pattern to be used when paths are stroked, for example, when you use the DrawLine method or the DrawRectangle method. The line dash pattern controls the pattern of dashes and gaps used to stroke paths. The specified values need to be expressed in the current units defined in the PDF document. The initial value is a solid line. You can reset the dash pattern to its initial value simply by using the SetLineNoDash method.

The dash pattern parameter is one of the graphics state parameters. These parameters are initialized to their default values at the beginning of each page (see PDF Reference, Section "Graphics State").

You can use the GetMeasurementUnit method to determine the currently defined units and you can use the SetMeasurementUnit method to reset the units according to your preference.

 
Sets the dash pattern to be used when paths are stroked, for example, when you use the DrawLine method or the DrawRectangle method. The line dash pattern controls the pattern of dashes and gaps used to stroke paths. You are allowed to define dashes and gaps with the various length using this method. All specified values need to be expressed in the current units defined in the PDF document. The initial value is set to be a solid line. You can reset the dash pattern to its initial value simply by using the SetLineNoDash method.

The dash pattern parameter is one of the graphics state parameters. These parameters are initialized to their default values at the beginning of each page (see PDF Reference, Section "Graphics State").

You can use the GetMeasurementUnit method to determine the currently defined units and you can use the SetMeasurementUnit method to reset the units according to your preference.

 
See Also