Previous Document Next Document

Object Model Reference : Classes : S : Shape : Properties : Shape.Polygon


Shape.Polygon

Property Polygon As Polygon

Description

Member of Shape

The Polygon property returns a Polygon object that represents the settings for a symmetrical polygon shape.

The Polygon property returns a read-only value.

VBA example

The following VBA example converts all symmetrical polygon shapes on the active page to five-point star polygons.

Sub Test()
 Dim s As Shape
 For Each s In ActivePage.Shapes
  If s.Type = cdrPolygonShape Then
   s.Polygon.Sides = 5
   s.Polygon.Type = cdrStar
  End If
 Next s
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.