예제 #1
0
        private bool SelectFirstRunWord()
        {
            Paragraph firstParagraph = Paragraphs.FirstBlock as Paragraph;

            if (firstParagraph == null)
            {
                return(false);
            }

            ARun firstWord = firstParagraph.Inlines.FirstInline as ARun;

            if (IsPlayingOnlyText)
            {
                while (firstWord != null && firstWord.IsImage)
                {
                    firstWord = firstWord.LogicalNext();
                }
            }
            if (firstWord == null)
            {
                return(false);
            }
            firstWord.Select();
            return(true);
        }
예제 #2
0
        private bool SelectNextRunWord()
        {
            if (CurrentRunWord == null)
            {
                return(false);
            }

            ARun nextRun = CurrentARun.LogicalNext();

            if (IsPlayingOnlyText)
            {
                while (nextRun != null && nextRun.IsImage)
                {
                    nextRun = nextRun.LogicalNext();
                }
            }
            if (nextRun == null)
            {
                return(false);
            }
            nextRun.Select();
            return(true);
        }