Previous Document Next Document

Object Model Reference : Classes : P : PostScriptFill : Methods : PostScriptFill.Select


PostScriptFill.Select

Sub Select(IndexOrName As Variant)

Description

Member of PostScriptFill

The Select method chooses a specified PostScript fill by referencing the index number of name of the fill.

Parameter
Description
IndexOrName
Specifies the PostScript fill by its index number or name:
 
Index — Specifies the preset placeholder that uniquely identifies each PostScript fill
 
Name — Specifies the string that uniquely identifies each PostScript fill

VBA example

The following VBA example replaces the Birds pattern with the ColorBubbles for all shapes on the page.

Sub Test()
 Dim s As Shape
 For Each s In ActivePage.Shapes
  If s.Fill.Type = cdrPostscriptFill Then
   If s.Fill.PostScript.Name = "Birds" Then
    s.Fill.PostScript.Select "ColorBubbles"
   End If
  End If
 Next s
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.