internal override Hashtable ToHashtable() { Hashtable hashtables = new Hashtable(); if (this.Align != this.Align_DefaultValue) { hashtables.Add("align", this.Align); } double?rotation = this.Rotation; double?rotationDefaultValue = this.Rotation_DefaultValue; if ((rotation.GetValueOrDefault() == rotationDefaultValue.GetValueOrDefault() ? rotation.HasValue != rotationDefaultValue.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); } if (this.TextAlign != this.TextAlign_DefaultValue) { hashtables.Add("textAlign", this.TextAlign); } bool?useHTML = this.UseHTML; bool?useHTMLDefaultValue = this.UseHTML_DefaultValue; if ((useHTML.GetValueOrDefault() == useHTMLDefaultValue.GetValueOrDefault() ? useHTML.HasValue != useHTMLDefaultValue.HasValue : true)) { hashtables.Add("useHTML", this.UseHTML); } if (this.VerticalAlign != this.VerticalAlign_DefaultValue) { XAxisPlotLinesLabelVerticalAlign verticalAlign = this.VerticalAlign; hashtables.Add("verticalAlign", Highcharts.FirstCharacterToLower(verticalAlign.ToString())); } rotationDefaultValue = this.X; rotation = this.X_DefaultValue; if ((rotationDefaultValue.GetValueOrDefault() == rotation.GetValueOrDefault() ? rotationDefaultValue.HasValue != rotation.HasValue : true)) { hashtables.Add("x", this.X); } rotation = this.Y; rotationDefaultValue = this.Y_DefaultValue; if ((rotation.GetValueOrDefault() == rotationDefaultValue.GetValueOrDefault() ? rotation.HasValue != rotationDefaultValue.HasValue : true)) { hashtables.Add("y", this.Y); } return(hashtables); }
public XAxisPlotLinesLabel() { string str = "left"; string str1 = str; this.Align_DefaultValue = str; this.Align = str1; double?nullable = null; this.Rotation_DefaultValue = nullable; this.Rotation = nullable; Hashtable hashtables = new Hashtable(); Hashtable hashtables1 = hashtables; this.Style_DefaultValue = hashtables; this.Style = hashtables1; string str2 = ""; str1 = str2; this.Text_DefaultValue = str2; this.Text = str1; object obj = null; str1 = (string)obj; this.TextAlign_DefaultValue = (string)obj; this.TextAlign = str1; bool?nullable1 = new bool?(false); this.UseHTML_DefaultValue = nullable1; this.UseHTML = nullable1; int num = 0; XAxisPlotLinesLabelVerticalAlign xAxisPlotLinesLabelVerticalAlign = (XAxisPlotLinesLabelVerticalAlign)num; this.VerticalAlign_DefaultValue = (XAxisPlotLinesLabelVerticalAlign)num; this.VerticalAlign = xAxisPlotLinesLabelVerticalAlign; nullable = null; this.X_DefaultValue = nullable; this.X = nullable; nullable = null; this.Y_DefaultValue = nullable; this.Y = nullable; }