Modifies the effect 'effect' set for the element type (see esriNgElementTypeEffect).
[Visual Basic 6.0] Sub SetEffect(
ByVal effect As esriNgElementTypeEffect, _
ByVal effValue As Variant _
) As Empty
[Visual Basic .NET] Public Sub SetEffect ( _ ByVal effect As esriNgElementTypeEffect, _ ByVal effValue As Object _ )
[C#] public void SetEffect ( esriNgElementTypeEffect effect, object effValue );
[Java] public void setEffect ( esriNgElementTypeEffect effect, Object effValue ) throws IOException, AutomationException
[C++] HRESULT SetEffect( esriNgElementTypeEffect effect, VARIANT effValue );
Parameters
effect [in]
effect is a parameter of type esriNgElementTypeEffect
effValue [in]
effValue is a parameter of type VARIANT
If the IsElementGroup property returns False
- Either the ElementGroup property is defined (that is, the element type inherits from another element type that is a group) and using the SetEffect method for the current element type will set the given effect for the ElementGroup element type (that is, for the ancestor element type that is a group)
- Or the ElementGroup associated property is not defined, and in this case, the IsElementGroup property must be set to True before calling the SetEffect method.
INgElementType Interface | INgElementType.GetEffect Method | INgElementType.IsEffectSet Method | INgElementType.RemoveEffect Method