Export (0) Print
Expand All

Word Class

Deprecated. The Word class represents a single Word returned within an OcrResult.

Published date: March 4, 2014

The Bing OCR Control is deprecated as of March 12, 2014.

public sealed class Word

The Word class has the following members.


Name Description


A Windows.Foundation.Rect object that defines a box around the current Word where it appears in the captured image. The dimensions of the box are determined by the Bing Optical Character Recognition (OCR) Service.


The text of the current Word.

The following code example enumerates through the text of an OCR result and writes to a string, preserving line breaks. It then writes the string to a TextBlock named tbResults.

private void OCR_OcrCompleted(object sender, OcrCompletedEventArgs e)
    // Make sure there is text.
    if (e.Result.Lines.Count == 0)
        tbResults.Text = "No text found.";

    // Read the text and print it to the Results box.
    string s = "";
    foreach (Line l in e.Result.Lines)
        foreach (Word w in l.Words)
            s += w.Value + " ";
        s += "\n";
    tbResults.Text = s;

Minimum Supported Client

Windows 8.1

Required Extensions

Bing OCR



© 2015 Microsoft