dict.cc dictionary

DictIdxRdForm Class

Form showing the progress of dictionary index reading

For a list of all members of this type, see DictIdxRdForm Members.

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         System.Windows.Forms.Control
            System.Windows.Forms.ScrollableControl
               System.Windows.Forms.ContainerControl
                  System.Windows.Forms.Form
                     dict.DictIdxRdForm

[Visual Basic]
Public Class DictIdxRdForm
    Inherits Form
    Implements IProgress
[C#]
public class DictIdxRdForm : Form, IProgress

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

In GUI environments use DictIdxRdForm.rdIndex() rather that to instantiate the dictionary index object DictIndex directly.

Example

The following example creates a dictionary index object from the index file c:\temp\dict.idx and translates the English word query using this dictionary index:

[C#]
 using dict;
 public class Test {
   private const string INDEXFILE = @"c:\temp\dict.idx";
   public static void Main() {
     DictIndex idx;
     string[]  answer;

     idx = DictIdxRdForm.rdIndex(Test.INDEXFILE);
     answer = idx.get("query");
     if (answer != null) {
       foreach(string s in answer) Console.WriteLine(s);
     }
   }
 }
 

Requirements

Namespace: dict

Assembly: dict (in dict.exe)

See Also

DictIdxRdForm Members | dict Namespace | DictIndex | DictImport.saveIdx