Htmleditor

Páginas: 29 (7168 palabras) Publicado: 22 de mayo de 2012
Windows Forms Html Editor
The purpose of the Html Editor is to provide Html Editing capabilities within a WinForms control. The control should emulate the operations that are available within a Rich Text control, but have information persisted and restored from an Html BODY element. Windows Forms Html Editor.............................................................................................. 1 Solution Summary .......................................................................................................... 2 Goals ........................................................................................................................... 2 Non-Goals ................................................................................................................... 3 HtmlEditor API .............................................................................................................. 4 Properties .................................................................................................................... 4 Operations ................................................................................................................... 5 Enumerations.............................................................................................................. 9 Value Types .............................................................................................................. 10 Events ........................................................................................................................ 11 Visual Elements............................................................................................................ 12 Dialogs ...................................................................................................................... 12 Toolbars .................................................................................................................... 12 Context Menus.......................................................................................................... 13 Appendix ....................................................................................................................... 14 C# Public API ........................................................................................................... 14 Development Notes................................................................................................... 26 COM Interop ............................................................................................................. 30

Solution Summary
The purpose of the Html Editor is to provide a control that allows for Html editing satisfying the requirements of input for rich text layouts and simple portal type information. Examples of theformer are case where the Rich Text control would normally be utilized; documentation, complex descriptions where text formatting is required, correspondences, bulletins, etc. Examples of the latter case are such items as dashboards; news clips, announcements, company references, etc. These are defined by cases where complex layouts are required that may include images and links.

Goals
High leveldesign goals are: 1. Provides robust WYSIWYG editing capabilities whose contents are persisted in HTML format. 2. Is easily reusable in other projects. 3. Provides methods for saving HTML files to and loading files from disk (with the appropriate security demands). The basic operations of the control are thus defined as: Standard Text Editing 1. Support basic formatting commands such as Bold,Italic, Underline, Strikeout, Font Name, Font Size, Font Color, Justification (Left, Right, and Center), Bullets and Number Lists. Dialogs should be presented to the user for modifying Font and Color attributes. 2. Provide for standard Cut, Copy, Paste, Undo, Redo, Select All, and commands. 3. Allow for the inserting and removing indentation. 4. Allow the inclusion of images along with alternative...
Leer documento completo

Regístrate para leer el documento completo.

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS