コード例 #1
0
ファイル: ZAxisTitle.cs プロジェクト: ESOmenium/HighCharts
        internal override Hashtable ToHashtable()
        {
            Hashtable hashtables = new Hashtable();

            if (this.Align != this.Align_DefaultValue)
            {
                ZAxisTitleAlign 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);
        }
コード例 #2
0
ファイル: ZAxisTitle.cs プロジェクト: ESOmenium/HighCharts
        public ZAxisTitle()
        {
            int             num             = 1;
            ZAxisTitleAlign zAxisTitleAlign = (ZAxisTitleAlign)num;

            this.Align_DefaultValue = (ZAxisTitleAlign)num;
            this.Align = zAxisTitleAlign;
            object obj = null;

            string[] strArrays = (string[])obj;
            this.Margin_DefaultValue = (string[])obj;
            this.Margin = strArrays;
            double?nullable = null;

            this.Offset_DefaultValue = nullable;
            this.Offset = nullable;
            nullable    = new double?(0);
            this.Rotation_DefaultValue = nullable;
            this.Rotation = nullable;
            Hashtable hashtables = new Hashtable()
            {
                { "color", "#666666" }
            };
            Hashtable hashtables1 = hashtables;

            this.Style_DefaultValue = hashtables;
            this.Style = hashtables1;
            object obj1 = null;
            string str  = (string)obj1;

            this.Text_DefaultValue = (string)obj1;
            this.Text           = str;
            nullable            = new double?(0);
            this.X_DefaultValue = nullable;
            this.X              = nullable;
            nullable            = null;
            this.Y_DefaultValue = nullable;
            this.Y              = nullable;
        }