protected override void ApplyAttributesOfElement(string name, GeoDo.RSS.Layout.IElement ele) { if (ele is GeoDo.RSS.Layout.Elements.ILegendElement) { LegendItem[] legendItems = CreateLegendItems(); ILegendElement legendElement = ele as ILegendElement; legendElement.LegendItems = legendItems; } base.ApplyAttributesOfElement(name, ele); }
protected override void ApplyAttributesOfElement(string name, GeoDo.RSS.Layout.IElement ele) { if (ele is GeoDo.RSS.Layout.Elements.LinearLegendElement) { if (ele.Name == "冰缘线图例") { GeoDo.RSS.Layout.Elements.LinearLegendElement lineLegendElement = ele as GeoDo.RSS.Layout.Elements.LinearLegendElement; lineLegendElement.Color = CreateLegendItems(); } } base.ApplyAttributesOfElement(name, ele); }