//──────────────────────────────────────── #endregion #region アクション //──────────────────────────────────────── /// <summary> /// デフォルト値を追加します。 /// </summary> public void PutDefault() { // (20,20)から、縦横10セルずつのテーブル。 // 1セルのサイズは 縦横16px。 Grid gridArea1 = new GridImpl(); this.GridView.Gridareas.Dictionary_Item.Add("グリッド領域1", gridArea1); gridArea1.Lefttop_Table = new Point(32, 32); gridArea1.Size_Cell = new Size(16, 16); gridArea1.Size_Total = new Size(160, 160); // X軸の目盛り { Ticklabel tickLabel = gridArea1.Ticklabel_X; tickLabel.IsHorizontal = true; tickLabel.Number_LocationFirst = 32; tickLabel.Number_LocationFixed = 16; tickLabel.Length_Total = 160; tickLabel.Interval_Cell = 16; tickLabel.Width_Label = 16; tickLabel.Size_FontPt = 8.0F; tickLabel.Number_LabelFirst = 1; tickLabel.Offset_Label = 1; tickLabel.Textalign = EnumTextalign.Right; tickLabel.IsVisibled = true; } // Y軸の目盛り { Ticklabel tickLabel = gridArea1.Ticklabel_Y; tickLabel.IsHorizontal = false; tickLabel.Number_LocationFirst = 32; tickLabel.Number_LocationFixed = 16; tickLabel.Length_Total = 160; tickLabel.Interval_Cell = 16; tickLabel.Width_Label = 10; tickLabel.Size_FontPt = 8.0F; tickLabel.Number_LabelFirst = 1; tickLabel.Offset_Label = 1; tickLabel.Textalign = EnumTextalign.Right; tickLabel.IsVisibled = true; } }
//──────────────────────────────────────── /// <summary> /// デフォルト値を追加します。 /// </summary> public void PutDefault() { // (20,20)から、縦横10セルずつのテーブル。 // 1セルのサイズは 縦横16px。 Grid gridArea1 = new GridImpl(); this.GridView.Gridareas.Dictionary_Item.Add("グリッド領域1", gridArea1); gridArea1.Lefttop_Table = new Point(32, 32); gridArea1.Size_Cell = new Size(16, 16); gridArea1.Size_Total = new Size(160, 160); // X軸の目盛り { Ticklabel tickLabel = gridArea1.Ticklabel_X; tickLabel.IsHorizontal = true; tickLabel.Number_LocationFirst = 32; tickLabel.Number_LocationFixed = 16; tickLabel.Length_Total = 160; tickLabel.Interval_Cell = 16; tickLabel.Width_Label = 16; tickLabel.Size_FontPt = 8.0F; tickLabel.Number_LabelFirst = 1; tickLabel.Offset_Label = 1; tickLabel.Textalign = EnumTextalign.Right; tickLabel.IsVisibled = true; } // Y軸の目盛り { Ticklabel tickLabel = gridArea1.Ticklabel_Y; tickLabel.IsHorizontal = false; tickLabel.Number_LocationFirst = 32; tickLabel.Number_LocationFixed = 16; tickLabel.Length_Total = 160; tickLabel.Interval_Cell = 16; tickLabel.Width_Label = 10; tickLabel.Size_FontPt = 8.0F; tickLabel.Number_LabelFirst = 1; tickLabel.Offset_Label = 1; tickLabel.Textalign = EnumTextalign.Right; tickLabel.IsVisibled = true; } }