Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
        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);
        }