private MapColorPalette GetColorPalette() { MapColorPaletteRule mapColorPaletteRule = (MapColorPaletteRule)base.m_mapRule; ReportEnumProperty <MapPalette> palette = mapColorPaletteRule.Palette; if (palette != null) { if (!palette.IsExpression) { return(this.GetMapColorPalette(palette.Value)); } return(this.GetMapColorPalette(mapColorPaletteRule.Instance.Palette)); } return(MapColorPalette.Random); }
public MapColorPaletteRuleInstance(MapColorPaletteRule defObject) : base(defObject) { this.m_defObject = defObject; }