AnsweredAssumed Answered

arcgis Desktop 10.2.2 ArcObject change IMultiLayerLineSymbol color

Question asked by abc123tttaaa on Dec 10, 2014

I am trying to change symbol color through ArcObject , but only part of symbol can be change(fig 1.). The setting which is inside in nested symbol setting page (fig2). I use the follow the code below to change the first layer's color.Does any one know how to recursive loop all symbol's porperties? Thanks



  _MultiLayerLineSymbol = _Symbol as IMultiLayerLineSymbol;

                 _LayerColorLock = _MultiLayerLineSymbol as ILayerColorLock;

                 for (int i = 0; i < _MultiLayerLineSymbol.LayerCount; i++)


                     _LayerColorLock.LayerColorLock[i] = false;



                 _MultiLayerLineSymbol.Color = _Color;



test2.jpg(fig. 2)