private void Find_Click(object sender, RoutedEventArgs e)
 {
     ContentTextOutput.Text = "";
     var mySemanticTextQuery = new Windows.Data.Text.SemanticTextQuery(FindQueryText.Text);
     IReadOnlyList<Windows.Data.Text.TextSegment> ranges = mySemanticTextQuery.Find(ContentText.Text);
     rootPage.HighlightRanges(ContentTextOutput, ContentText.Text, ranges);
 }
예제 #2
0
파일: Find.xaml.cs 프로젝트: ckc/WinApp
        private void Find_Click(object sender, RoutedEventArgs e)
        {
            ContentTextOutput.Text = "";
            var mySemanticTextQuery = new Windows.Data.Text.SemanticTextQuery(FindQueryText.Text);
            IReadOnlyList <Windows.Data.Text.TextSegment> ranges = mySemanticTextQuery.Find(ContentText.Text);

            rootPage.HighlightRanges(ContentTextOutput, ContentText.Text, ranges);
        }