Previous Document Next Document

Object Model Reference : Classes : S : ShapeRange : Methods : ShapeRange.AddRange


ShapeRange.AddRange

Sub AddRange(ShapeRange As ShapeRange)

Description

Member of ShapeRange

The AddRange method adds a specified shape range to the current range.

Parameter
Description
ShapeRange
Specifies the shape range to add

VBA example

The following VBA example finds all the ellipses and rectangles on a page, and it then fills the shapes with a radial fountain fill.

Sub Test()
 Dim sr As ShapeRange
 Set sr = ActivePage.FindShapes(Type:=cdrEllipseShape)
 sr.AddRange ActivePage.FindShapes(Type:=cdrRectangleShape)
 sr.ApplyFountainFill CreateRGBColor(255, 0, 0), CreateRGBColor(255, 255, 0), cdrRadialFountainFill
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.