ArcObjects Library Reference (Display)  

IRepresentationRule.RemoveLayer Method

Removes a layer from the representation rule.

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


index [in]   index is a parameter of type long

Product Availability

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


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