This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > IM > IMultiLayerLineSymbol Interface > IMultiLayerLineSymbol.AddLayer Method (ArcObjects .NET 10.5 SDK) |
Adds a layer to the line symbol.
[Visual Basic .NET] Public Sub AddLayer ( _ ByVal lineLayer As ILineSymbol _ )
[C#] public void AddLayer ( ILineSymbol lineLayer );
[C++]
HRESULT AddLayer(
ILineSymbol* lineLayer
);
[C++]
Parameters lineLayer [in]
lineLayer is a parameter of type ILineSymbol
AddLayer adds a single layer to the IMultiLayerLineSymbol. The layer can be of any type supported by the ILineSymbol interface except types implementing IMultiLayerLineSymbol. In this case an E_INVALIDARG HRESULT will be thrown. Therefore, a MultiLayerLineSymbol cannot be imbeded within another MultiLayerLineSymbol.