Previous Document Next Document

Object Model Reference : Classes : P : PatternFill : Properties : PatternFill.FilePath


PatternFill.FilePath

Property FilePath As String

Description

Member of PatternFill

The FilePath property returns the full file path of the vector-pattern file used in a pattern.

The FilePath property returns a read-only value.

VBA example

The following VBA example displays the file path of the full-color pattern of the selected shape.

Sub Test()
 Dim pf As PatternFill
 If ActiveShape.Fill.Type <> cdrPatternFill Then
  MsgBox "Select an object with a pattern fill"
  Exit Sub
 End If
 Set pf = ActiveShape.Fill.Pattern
 If pf.Type <> cdrFullColorPattern Then
  MsgBox "Select an object with a full color pattern fill"
  Exit Sub
 End If
 MsgBox pf.FilePath
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.