arcgis Desktop 10.2.2 ArcObject change IMultiLayerLineSymbol color

2255
0
12-10-2014 07:03 PM
testtest7
New Contributor

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

//Code

  _MultiLayerLineSymbol = _Symbol as IMultiLayerLineSymbol;

                 _LayerColorLock = _MultiLayerLineSymbol as ILayerColorLock;

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

                 {

                     _LayerColorLock.LayerColorLock = false;

                 

                 }

                 _MultiLayerLineSymbol.Color = _Color;

test.jpg(fig.1)

test2.jpg(fig. 2)

Reply
0 Kudos
0 Replies