void PickupLine() { string code0010; string code00800004; string code0003 = TextForm.GetLineBreak(); if (OptionForm.text_escape() == OptionForm.text_escape_enum.FEditorAdv) { code0010 = "[LoadFace]"; code00800004 = "[LoadOverworldFaces]"; } else { code0010 = "@0010"; code00800004 = "@0080@0004"; } int snipPoint; string r = TextForm.ConvertEscapeText(this.CurrentSubtile); r = r.Replace("\r\n", "\n"); if (this.CountOf00800004 > 0) { r = PickupLineSub(r, this.CountOf00800004, code00800004, out snipPoint); } else { r = PickupLineSub(r, this.CountOf0010, code0010, out snipPoint); } int snipPoint2; r = PickupLineSub(r, this.CountOf0003, code0003, out snipPoint2); int startPoint = snipPoint + snipPoint2; //キーワードハイライトト TextForm.KeywordHighLight(this.Subtile); Color displayBackColor = OptionForm.Color_NotifyWrite_BackColor(); Color displayForeColor = OptionForm.Color_NotifyWrite_ForeColor(); //表示部分の選択 this.Subtile.SelectionStart = startPoint; this.Subtile.SelectionLength = r.Length; this.Subtile.SelectionColor = displayForeColor; this.Subtile.SelectionBackColor = displayBackColor; //選択位置の調整 this.Subtile.SelectionStart = startPoint; this.Subtile.SelectionLength = 0; }