Previous Document Next Document

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


Shape.Rectangle

Property Rectangle As Rectangle

Description

Member of Shape

The Rectangle property returns a Rectangle object that represents the settings for a rectangle shape.

The Rectangle property returns a read-only value.

VBA example

The following VBA example sets the roundness of all rectangles on a page to 30%.

Sub Test()
 Dim s As Shape
 For Each s In ActivePage.Shapes
  If s.Type = cdrRectangleShape Then
   s.Rectangle.SetRoundness 30
  End If
 Next s
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.