Previous Document Next Document

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


PatternFill.BackColor

Property BackColor As Color

Description

Member of PatternFill

The BackColor property returns or specifies the background 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 background 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.BackColor.RGBAssign 255, 0, 0
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.