public override void Select() { ARun recentARun = ProjectInfo.CurrentARun; RunWord recentWord = ProjectInfo.CurrentRunWord; ProjectInfo.CurrentRunWord = this; UpdateBackground(); if (recentARun != null && recentARun.IsImage && recentARun != ProjectInfo.CurrentARun) { recentARun.UpdateBackground(); } if (recentWord == null) { return; } recentWord.UpdateBackground(); if (ProjectInfo.CurrentState == State.Play && !recentWord.IsSentenceSelected) { foreach (RunWord prev in recentWord.PreviousWordsInSentence) { prev.UpdateBackground(); } } Word.Content.Changed = true; }
private void MergeWith(RunWord nextRun) { Word.MergeWith(nextRun.Word); Inlines.Remove(nextRun); Text = Word.OriginalText; UpdateBackground(); //UpdateSegmentedBackground(); }
public void MergeWithPrev() { RunWord prevRun = PreviousInline as RunWord; if (prevRun == null) { return; } prevRun.MergeWith(this); }
public void MergeWithNext() { RunWord nextRun = NextInline as RunWord; if (nextRun == null) { return; } MergeWith(nextRun); }