Previous Document Next Document

Object Model Reference : Classes : T : TextureFillProperty : Properties : TextureFillProperty.Value


TextureFillProperty.Value

Property Value As Variant

Description

Member of TextureFillProperty

The Value property returns or specifies the value (numeric or color) of a property of a texture fill. It is the default property of the TextureFillProperty class.

VBA example

The following VBA example creates a rectangle, applies a texture fill to it, and then modifies two parameters of the fill.

Sub Test()
 Dim s As Shape
 Dim tf As TextureFill
 Set s = ActiveLayer.CreateRectangle(0, 0, 2, 2)
 Set tf = s.Fill.ApplyTextureFill("Dark Cloud", "Samples 8")
 tf.Properties("Texture #:").Value = 150
 tf.Properties("Top left:").Value = CreateRGBColor(255, 0, 0)
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.