Please be advised that this ComponentOne software tool is accompanied by various sample projects and/or demos, which may make use of other development tools included with ComponentOne Studio.
Please refer to the pre-installed product samples through the following path:
Documents\ComponentOne Samples\WinForms
The following table provides a description for each sample.
Visual Basic and C# Samples
Sample | Description |
---|---|
AutoReplace | Shows how the AutoReplaceList property works. The AutoReplaceList contains a list of words and replacements. While the C1SpellChecker is monitoring a text box, it looks for matches against this list and automatically replaces them in the editor, as the user types. |
C1SpellCheckerSpeed | Measures the C1SpellChecker performance when checking long documents. The sample has three buttons that spell-check the novel Moby Dick, the Declaration of Independence, and the King James Bible. After each document has been checked, the application shows the performance measurements. |
CustomDictionary | Shows how to implement a custom spell dictionary class. The sample implements a CustomDictionary that accepts all words starting with the letter 'z' as correct. |
CustomParser | Shows how to implement a custom spell-checking parser class. Custom parsers are classes that implement the ISpellParser interface. |
CustomSpellDialog | Demonstrates how to implement a custom spell-checking modal dialog. This sample shows how to create your own spell dialog box and use that instead of the built-in one. Custom spell dialogs are Form objects that implement the ISpellDialog interface. |
LocalizedSpellMenu | Shows how to customize the spelling context menu. The sample attached an event handler to the mouse down event of each control being spell-checked, then modifies the ContextMenuStrip for the controls by changing the menu items to Portuguese. |
QuickStart | Shows how to use the C1SpellChecker component to check different types of controls: regular TextBox, RichTextBox, or C1FlexGrid. |
SpellGrid | Shows how to implement a custom spell-checking modal dialog for a control (C1FlexGrid) that does not derive from TextBoxBase. This sample shows how to create a wrapper class that implements the ISpellCheckableEditor interface on behalf of a C1FlexGrid control. |
TXTextSpellChecker | Shows how to implement as-you-type spell-checking with the TXTextControl. The TXTextControl is a very popular and powerful text editor control (http://www.textcontrol.com/). It supports advanced features like tables, doc and html file format import and export, pdf output, and more. The TXTextControl does not include a built-in spell checker. This sample shows how you can implement a control that derives from the TXTextControl and implements the interfaces required by the C1SpellChecker in order to support as-you-type spell-checking. |
WebBrowserSpell | Demonstrates spell-checking editors that derive from the standard WebBrowser class. This sample shows underlining errors with red-wavy underlines as you type, with suggestions in context-sensitive menus, and also the dialog-based modal spell-check. The methods used are the same as the ones used with TextBoxBase controls: SetActiveSpellChecking, turns as-you-type spell checking on or off, and CheckControl, performs a dialog-based modal check of the text in the control. |