Previous Document Next Document
Outline.Style.DashCount

Property DashCount As Long

Member of OutlineStyle

The DashCount property specifies how many pairs of dashes and gaps appear in an outline style. In an outline style, the number of dash and gap pairs can range from 1 to 5.

The following code example applies a custom outline style to the selected shape. The new outline appears as a small dot followed by a long dash, with equal gaps between each dash.

Sub Test() 
 With ActiveShape.Outline 
  .Width = 0.03 
  .Style.DashCount = 2 
  .Style.DashLength(1) = 1 
  .Style.DashLength(2) = 10 
  .Style.GapLength(1) = 4 
  .Style.GapLength(2) = 4 
 End With 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.