This document is archived and information here might be outdated.  Recommended version.


IRepresentationRule.RemoveLayer Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > IR > IRepresentationRule Interface > IRepresentationRule.RemoveLayer Method
ArcGIS Developer Help

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