Share via


PenStyle Class

Methods | Fields | This Package | All Packages

Defines constants for the seven built-in pen styles supported by the Windows operating system.

Enum
  |
  +--PenStyle

package com.ms.wfc.ui

public class PenStyle
extends
Enum****

Remarks

When you create a Pen object, you can associate one of the styles that this class defines with that pen. The following example illustrates how to create a Pen object, specifying a DASH style. When a Pen based on this style is used to draw lines, the lines consist of an evenly spaced series of dashes.

Pen p = new Pen(new Color(0,0,0), PenStyle.DASH);