Previous Document Next Document

Object Model Reference : Classes : F : FountainColor : Properties : FountainColor.Position


FountainColor.Position

Property Position As Long

Description

Member of FountainColor

The Position property returns the position of a color point in a fountain fill. Valid positions range from 1 to 99.

The Position property returns a read-only value.

VBA example

The following VBA example deletes any color point with a position located at a distance greater than 50%.

Sub Test()
 Dim cl As FountainColor
 If ActiveShape.Fill.Type <> cdrFountainFill Then
  MsgBox "The selected shape must have a fountain fill."
  Exit Sub
 End If
 For Each cl In ActiveShape.Fill.Fountain.Colors
  If cl.Position > 50 Then cl.Delete
 Next cl
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.