Previous Document Next Document

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


PatternFill.FrontColor

Property FrontColor As Color

Description

Member of PatternFill

The FrontColor property returns or specifies the foreground color in a two-color bitmap pattern fill.

VBA example

The following VBA example creates a rectangle, applies a two-color bitmap pattern to it, and changes the foreground color to red.

Sub Test()
 Dim s As Shape
 Dim pf As PatternFill
 Set s = ActiveLayer.CreateRectangle(0, 0, 2, 2)
 Set pf = s.Fill.ApplyPatternFill(cdrTwoColorPattern, , 6)
 pf.FrontColor.RGBAssign 255, 0, 0
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.