Hi!
I have FeatureClasses (point, line and polygons) with symbology in cartographic representation. How I can get each symbol's parameters (e.g. for polyline: width, colour, style)?
part of code
Dim featureClass As IFeatureClass = featureWorkspace.OpenFeatureClass('feature_name')
Dim featureLayer As IFeatureLayer = New FeatureLayer
featureLayer.FeatureClass = featureClass
Dim gfl As IGeoFeatureLayer = featureLayer
Dim pLegInfo As ILegendInfo = featureLayer
'Dim pLineSymb As ICartographicLineSymbol = TryCast(pLegInfo.LegendGroup(0).Class(3).Symbol, ICartographicLineSymbol)
pLineSymb type is IMultiLayerLineSymbol, so
Dim pLineSymb As IMultiLayerLineSymbol = TryCast(pLegInfo.LegendGroup(0).Class(3).Symbol, IMultiLayerLineSymbol)
MsgBox("Color " & pLineSymb.Layer(0).Color.RGB)
MsgBox("Width " & pLineSymb.Layer(0).Width)