Allow non-technical users to write and manage XHTML content
The powerful editing control, ComponentOne Editor™ for WinForms, allows even non-technical users to write and manage XHTML content in both design and source code modes. Replace any text box with this intuitive editor and edit your XHTML content in this friendly, Microsoft Word processor-like interface.
Three Edit Modes
The Editor control features three editing modes: Design, Source, and Preview. You can determine which of these views your end users will see initially by setting the Editor.Mode property.
Load and Save Documents
Load XHTML documents into Editor from a file, stream, or XML string. Likewise, you can save documents into a file or stream.
Flexible Data Binding
Bind Editor to your external data source with ease. The Text and XML properties are marked as "Bindable," so you can easily bind either the unformatted text or the full HTML markup to your data source.
Insert and Manipulate Pictures, Tables, Objects
Insert and manipulate various types of objects in the document, including tables, images, hyperlinks, and multimedia Flash files. The dialog boxes allow you to modify all properties of the inserted or edited objects. With mouse actions, move and resize objects directly on the document in Design mode.
Define Custom CSS Styles
Editor fully supports CSS in edited documents. In addition, you can specify external CSS rules in CSS files, which will be used only in Design or Preview mode. DesignCSS and PreviewCSS methods support this feature by loading CSS from a file or stream.
Synchronize XMLDocuments On the fly
Bind the Editor control to a document specified in the Editor.Document property. If the document is edited within the Editor, the underlying XMLDocument syncs to match it. If the XMLDocument changes in code, these changes are visible in the Editor control at run time.
Set Font and Text Properties
Easily set font, text decorations, and block formatting settings to a text block in the document without worrying about modifying the underlying XMLDocument. Editor automatically builds the markup for these operations and modifies the XMLDocument. End users can set text properties in a built-in text formatting dialog.
Add Custom Tags in DTD
Advanced programming tasks sometimes require the use of additional DTD elements in the edited document. You can add the tags in the document by specifying them in the XMLExtensions property.
Editor comes with SpellChecker built in so you can use all of its spell-checking features — like dialog mode, "as-you-type" mode, context menu spelling suggestions, and the auto-replace feature.
Code Clean-up Routines
Editor can automatically remove empty tags, close unclosed tags, and otherwise improve messy or unreadable HTML markup. Cleanup routines occur on document loading, switching off Source mode, or on executing the ValidateSource or FixSource methods.
Easily Access and Manage Data
Access and manage data from code selections and the caret position. Access content in the Editor by specifying a range of characters to select and access content based upon the caret position.
Preview and Print
Calling the Print method has the same effect as choosing Print from the Windows Internet Explorer File menu. The print method can activate the Print dialog box, prompting the user to change print settings. Use the PrintPreview method to see the web page before printing so you can avoid printing mistakes.
Enable Clipboard Actions
Select text, tables, or graphics and then use the Cut or Copy methods of Editor to move your selection to the Clipboard. You can also paste outside HTML into Editor. PasteAsText method automatically formats HTML text to plain text when pasting. You can enable specific actions for end users with the CanCut, CanCopy, CanPaste and CanPasteAsText properties.
Unlimited History of Changes
Editor has an unlimited undo history mechanism. You can programmatically access the editing history by calling the Undo or Redo methods. Undo and Redo also support keyboard shortcuts. By undoing repeatedly, end users can gradually work back to fix a mistake.
Find/Replace Dialog Box
Editor has a built-in dialog box that allows end users to specify a string to search for as well as options to replace the word. You can create and use your own find/replace dialog box specifying it in the CustomDialogs property of the Editor.
- * Available only in ComponentOne Studio Enterprise and Ultimate
- Input Controls
- Button, Modal Button, SplitButton
- Database Navigator
- DropDowns, ComboBoxes, & MultiSelect
- Label and PictureBox
- TextBox & Masked Input
- Reporting & Documents
- C1Word Library
- FlexReport Designer**
- PDF DocumentSource
- ** Source code available only in ComponentOne Studio and Ultimate