ArcObjects Library Reference  (Schematic)    

INgElementType.ElementTypeEffects Property

List of the effects set for the element type.

[Visual Basic 6.0]
Property ElementTypeEffects As INgElementTypeEffects
[Visual Basic .NET]
Public ReadOnly Property ElementTypeEffects As INgElementTypeEffects
[C#]
public INgElementTypeEffects ElementTypeEffects {get;}
[Java]
public INgElementTypeEffects getElementTypeEffects()
throws
    IOException,
    AutomationException
[C++]
HRESULT get_ElementTypeEffects(
  INgElementTypeEffects** pVal
);
[C++]

Parameters

pVal [out, retval]

  pVal is a parameter of type INgElementTypeEffects

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Schematics Extension.

Description

The returned effects are either all the effects set for the current element type itself, when the element type is a group, or the effects set for its first ancestor element type, the latter being itself a group, if this element type inherits from another element type.

Note that if this property returns all the element type effects, you can get a specific effect by using the GetEffect method.

[Visual Basic 6.0]

The following program code lines can be used to extract all the effects associated with the sub-symbols used to represent a graphic element.

Dim pElementType As INgElementType
Dim pElementTypeEffect As INgElementTypeEffect
Dim pElementTypeEffects As INgElementTypeEffects
Dim pSubSymbolsEffects As INgElementTypeEffects
...
Set pElementTypeEffects = pElementType.ElementTypeEffects
Set pSubSymbolsEffects = New NgElementTypeEffects
For Each pElementTypeEffect In pElementTypeEffects
    If pElementTypeEffect.SubSymbolName <> "" Then pSubSymbolsEffects.Add pElementTypeEffect
Next pElementTypeEffect

See Also

INgElementType Interface

 


Feedback Send feedback on this page