Previous Document Next Document

Object Model Reference : Classes : F : Fill : Properties : Fill.Texture


Fill.Texture

Property Texture As TextureFill

Description

Member of Fill

The Texture property returns a TextureFill object that represents the settings for a texture fill.

VBA example

The following VBA example creates a rectangle and applies a texture fill to it. The background color of the fill is then changed to red.

Sub Test()
 Dim s As Shape
 Set s = ActiveLayer.CreateRectangle(0, 0, 2, 2)
 s.Fill.ApplyTextureFill "Patches 2C"
 s.Fill.Texture.Properties("Background:").Value = CreateRGBColor(255, 0, 0)
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.