internal override Hashtable ToHashtable() { Hashtable hashtables = new Hashtable(); if (this.Align != this.Align_DefaultValue) { YAxisTitleAlign align = this.Align; hashtables.Add("align", Highcharts.FirstCharacterToLower(align.ToString())); } if (this.Margin != this.Margin_DefaultValue) { hashtables.Add("margin", this.Margin); } double?offset = this.Offset; double?offsetDefaultValue = this.Offset_DefaultValue; if ((offset.GetValueOrDefault() == offsetDefaultValue.GetValueOrDefault() ? offset.HasValue != offsetDefaultValue.HasValue : true)) { hashtables.Add("offset", this.Offset); } offsetDefaultValue = this.Rotation; offset = this.Rotation_DefaultValue; if ((offsetDefaultValue.GetValueOrDefault() == offset.GetValueOrDefault() ? offsetDefaultValue.HasValue != offset.HasValue : true)) { hashtables.Add("rotation", this.Rotation); } if (this.Style != this.Style_DefaultValue) { hashtables.Add("style", this.Style); } if (this.Text != this.Text_DefaultValue) { hashtables.Add("text", this.Text); } offset = this.X; offsetDefaultValue = this.X_DefaultValue; if ((offset.GetValueOrDefault() == offsetDefaultValue.GetValueOrDefault() ? offset.HasValue != offsetDefaultValue.HasValue : true)) { hashtables.Add("x", this.X); } offsetDefaultValue = this.Y; offset = this.Y_DefaultValue; if ((offsetDefaultValue.GetValueOrDefault() == offset.GetValueOrDefault() ? offsetDefaultValue.HasValue != offset.HasValue : true)) { hashtables.Add("y", this.Y); } return(hashtables); }
public YAxisTitle() { int num = 1; YAxisTitleAlign yAxisTitleAlign = (YAxisTitleAlign)num; this.Align_DefaultValue = (YAxisTitleAlign)num; this.Align = yAxisTitleAlign; string[] strArrays = new string[0]; string[] strArrays1 = strArrays; this.Margin_DefaultValue = strArrays; this.Margin = strArrays1; double?nullable = null; this.Offset_DefaultValue = nullable; this.Offset = nullable; nullable = new double?((double)270); this.Rotation_DefaultValue = nullable; this.Rotation = nullable; Hashtable hashtables = new Hashtable() { { "color", "#666666" } }; Hashtable hashtables1 = hashtables; this.Style_DefaultValue = hashtables; this.Style = hashtables1; string str = "Values"; string str1 = str; this.Text_DefaultValue = str; this.Text = str1; nullable = new double?(0); this.X_DefaultValue = nullable; this.X = nullable; nullable = null; this.Y_DefaultValue = nullable; this.Y = nullable; }