Previous Document Next Document

Object Model Reference : Classes : T : TextureFill : Properties : TextureFill.OriginX


TextureFill.OriginX

Property OriginX As Double

Description

Member of TextureFill

The OriginX property returns or specifies the horizontal offset of a texture-fill tile from the lower-left corner of its parent shape.

The OriginX property is measured in document units.

VBA example

The following VBA example applies a texture fill to a rectangle and offsets the tile by 1" to the left.

Sub Test()
 Dim s As Shape
 Dim tf As TextureFill
 Set s = ActiveLayer.CreateRectangle(0, 0, 4, 4)
 Set tf = s.Fill.ApplyTextureFill("Above the Storm", "Samples 9")
 tf.OriginX = 1
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.