internal override Hashtable ToHashtable() { Hashtable hashtables = new Hashtable(); if (this.BorderColor != this.BorderColor_DefaultValue) { hashtables.Add("borderColor", this.BorderColor); } if (this.BorderDashStyle != this.BorderDashStyle_DefaultValue) { hashtables.Add("borderDashStyle", this.BorderDashStyle); } double?borderWidth = this.BorderWidth; double?borderWidthDefaultValue = this.BorderWidth_DefaultValue; if ((borderWidth.GetValueOrDefault() == borderWidthDefaultValue.GetValueOrDefault() ? borderWidth.HasValue != borderWidthDefaultValue.HasValue : true)) { hashtables.Add("borderWidth", this.BorderWidth); } if (this.Color != this.Color_DefaultValue) { hashtables.Add("color", this.Color); } if (this.DataLabels != this.DataLabels_DefaultValue) { hashtables.Add("dataLabels", this.DataLabels); } if (this.LayoutAlgorithm != this.LayoutAlgorithm_DefaultValue) { PlotOptionsTreemapLevelsLayoutAlgorithm layoutAlgorithm = this.LayoutAlgorithm; hashtables.Add("layoutAlgorithm", Highcharts.FirstCharacterToLower(layoutAlgorithm.ToString())); } if (this.LayoutStartingDirection != this.LayoutStartingDirection_DefaultValue) { PlotOptionsTreemapLevelsLayoutStartingDirection layoutStartingDirection = this.LayoutStartingDirection; hashtables.Add("layoutStartingDirection", Highcharts.FirstCharacterToLower(layoutStartingDirection.ToString())); } borderWidthDefaultValue = this.Level; borderWidth = this.Level_DefaultValue; if ((borderWidthDefaultValue.GetValueOrDefault() == borderWidth.GetValueOrDefault() ? borderWidthDefaultValue.HasValue != borderWidth.HasValue : true)) { hashtables.Add("level", this.Level); } return(hashtables); }
public PlotOptionsTreemapLevels() { object obj = null; string str = (string)obj; this.BorderColor_DefaultValue = (string)obj; this.BorderColor = str; object obj1 = null; str = (string)obj1; this.BorderDashStyle_DefaultValue = (string)obj1; this.BorderDashStyle = str; double?nullable = null; this.BorderWidth_DefaultValue = nullable; this.BorderWidth = nullable; object obj2 = null; str = (string)obj2; this.Color_DefaultValue = (string)obj2; this.Color = str; object obj3 = null; object obj4 = obj3; this.DataLabels_DefaultValue = obj3; this.DataLabels = obj4; int num = 0; PlotOptionsTreemapLevelsLayoutAlgorithm plotOptionsTreemapLevelsLayoutAlgorithm = (PlotOptionsTreemapLevelsLayoutAlgorithm)num; this.LayoutAlgorithm_DefaultValue = (PlotOptionsTreemapLevelsLayoutAlgorithm)num; this.LayoutAlgorithm = plotOptionsTreemapLevelsLayoutAlgorithm; int num1 = 0; PlotOptionsTreemapLevelsLayoutStartingDirection plotOptionsTreemapLevelsLayoutStartingDirection = (PlotOptionsTreemapLevelsLayoutStartingDirection)num1; this.LayoutStartingDirection_DefaultValue = (PlotOptionsTreemapLevelsLayoutStartingDirection)num1; this.LayoutStartingDirection = plotOptionsTreemapLevelsLayoutStartingDirection; nullable = null; this.Level_DefaultValue = nullable; this.Level = nullable; }