//選択肢テキストなどほかのテキストのコマンドをチェック void CheckOtherTextCommand(AdvScenarioPageData page, IAdvMessageWindowCaracterCountChecker messageWindow) { foreach (var item in page.CommandList) { var selection = item as AdvCommandSelection; if (selection != null) { selection.ParseCellLocalizedText(); } } }
// 1ページの文字数をカウントしてチェック int CheckCharacterCount(AdvScenarioPageData page, IAdvMessageWindowCaracterCountChecker messageWindow) { string text = MakeText(page); if (text.Length <= 0) { return(0); } int count; string errorString; if (!messageWindow.TryCheckCaracterCount(text, out count, out errorString)) { Debug.LogError("TextOver:" + page.TextDataList[0].RowData.ToStringOfFileSheetLine() + "\n" + errorString); } return(count); }