ArcObjects Library Reference (Display)  

IRepresentationRule.RemoveLayer Method

Removes a layer from the representation rule.

[Visual Basic .NET]
Public Sub RemoveLayer ( _
    ByVal index As Integer _
)
[C#]
public void RemoveLayer (
    int index
);
[C++]
HRESULT RemoveLayer(
  long index
);
[C++]

Parameters

index [in]   index is a parameter of type long

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

If RemoveLayer method is used to remove the very last symbol layer present in a representation rule, it is the responsibility of the developer to add atleast one symbol layer. Use InsertLayer or IRepresentationRuleInit::InitWithSymbol methods to achieve this.

See Also

IRepresentationRule Interface