Specifies an array of custom dashes and spaces for this Pen object. The SetCustomDash method allows you to set the DashArray and DashOffset properties at the same time.
The Dash parameter is an array of real numbers that specifies the length of the custom dashes and spaces. All elements in the array must be positive real numbers. The offset parameter specifies the distance from the start of the line to the start of the first dash in a dashed line.
The elements in the dash array set the length of each dash and space in the dash pattern. The first element sets the length of a dash, the second element sets the length of a space, the third element sets the length of a dash, and so forth.
The length of each dash and space in the dash pattern is the product of the element value in the array and the width of the Pen object.