ComponentOne True DBInput Pro 8.0
Parent Property (Effect)

 

Reference> Effect Object> Effect Object Properties> Parent Property (Effect)

Parent Property (Effect)

This property sets or returns the parent effect of a named object.

Syntax

object.Parent= Effect

Read/Write at run time. Not available at design time.

Remarks

When the object is first created, Nothing will be set by default.

The Parent property is used at run time to change the parent effect from which the effect object settings inherit. This property makes it easier and faster for the user by creating a complete clone of the parent object. Typically, this is done when creating a new Effect object in code, as in the following example:

Dim objEffect As TDBContainer3D6Ctl.Effect

Set objEffect = TDBContainer3D1.Effects.Add(, "DblRaised")

objEffect.Parent = "Raised"

objEffect.BevelInner = 1

This code first creates a new 3D effect named "DblRaised", then sets its parent to the built-in Raised effect. This causes the new effect to inherit all attributes from the built-in effect. The BevelInner property of the new effect is then overridden. Note that the Parent property should not be defined after setting the Effect object properties. If do so, this will cause all property settings to be initialized to the parent style again.

This property also allows you to pass in an object or an index number that points to an element within the Effects collection.

See Also

BevelInner Property (Effect)

Effect object properties

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback