minerjoe

Working with multi-layer symbols

Discussion created by minerjoe on Mar 18, 2012
Latest reply on Mar 24, 2012 by minerjoe
Hi All,

I am writing an application that deletes elements (lines, markers, text, etc) from a page layout based on the color of the symbol.  For the most part everything works fine.  I cast the element to the appropriate Element type (ITextElement, ILineElement, etc) get the Symbol property and the Color.  There is one exception, for a few of the elements the Symbol has multi-layers and it is the second layer of the symbol that is the Color I am looking for.  I do not seem to get a reference to this part of the symbol.  I have searched and I cannot find a way to loop through the layers in a multi-layer symbol.  Does anyone know how you would go about doing that?  Seems there should be an Interface I can cast my Symbol to and determine if it is multi-layer and then loop through each layer, get the symbol on the layer and check the color.  But I do not see a way to do that.

Thanks
-Joe

Outcomes