OverrideFillMode

<< Click to Display Table of Contents >>

 

OverrideFillMode

Enum This property specifies a fill mode for this object's picture, when displaying a Windows Metafile. It changes the picture's original fill mode without changing the file defined in the Filename property. The next table contains valid values for this property.

Available options for the OverrideFillMode property

Option

Description

0 - NoOverride

Picture keeps its original fill (default)

1 - Wideframe

Picture is not filled

2 - SolidFill

Picture is filled with the color specified by the OverrideFillColor property

3 - ByBrightness

Picture is filled with the color specified by the OverrideFillColor property, but considers the intensity of picture's original color

 

The next script contains an example of using this property.

Sub DrawPicture1_Click()
  ' When clicking this object sets the
  ' Override mode to solid
  ' and changes picture's fill
  ' color to blue
  OverrideFillMode = 2
  OverrideFillColor = RGB(0, 0, 255)
End Sub

 

NOTE

This property is only effective when a Picture object works with Metafiles (WMF or EMF).

Was this page useful?