Click or drag to resize

EditorView Class

The TEC serves to display recognition results in a word processor format to allow verifying, correcting and formatting of the recognized text.
Inheritance Hierarchy

Namespace:  Kofax.OmniPageCSDK.ToolBoxes
Assembly:  Kofax.OmniPageCSDK.ToolBoxes (in Kofax.OmniPageCSDK.ToolBoxes.dll) Version: 1.0.0.0
Syntax
public class EditorView : AxHost, ICmnVisual, 
	ICmnVisualUIHelper, IResourceUser, ICmnVisualUIHelperCallbackEvents

The EditorView type exposes the following members.

Constructors
  NameDescription
Public methodEditorView
Initializes a new instance of the EditorView class
Top
Properties
  NameDescription
Public propertyActiveZone
This property controls the current zone index when the control is in Zone Validating Mode.
Public propertyBorderVisible
This property controls whether a thin 3D border will be displayed around the control or not.
Public propertyCharacterMapVisible
This property controls whether or not the character map is displayed.
Public propertyCustomMenuVisible
Use this function to programmatically configure the custom menu visibility.
Public propertyCustomToolbarVisible
Use this function to programmatically configure the custom toolbar visibility.
Public propertyCustomTooltips
Use this property to update a number of custom toolbar button related tooltip texts if you wish to replace the default values.
Public propertyDefaultMenuVisible
Use this function to programmatically configure the default menu visibility.
Public propertyEnableIntelliTrain
This property controls whether the IntelliTrain mode is enabled or not.
Public propertyEnableNondictWordMarking
This property controls whether the non-dictionary word marking (red wavy underline) is enabled or not.
Public propertyEnablePrintDialog
This property controls whether the Print dialog is displayed or not when the PrintText method is invoked.
Public propertyEnableProofReadDoneDialog
This property controls whether the proofread done dialog is displayed or not.
Public propertyEnableRedactDocumentDialog
This property controls whether the redact document dialog is displayed or not.
Public propertyEnableVerifier
This property controls whether displaying the Verifier is enabled or not.
Public propertyEnableWordWrap
This property controls whether word wrapping is enabled or not.
Public propertyFormArrangementToolbarVisible
This property controls whether the form object arrangement toolbar is displayed or not.
Public propertyFormat
This property controls the formatting level for recognition result display.
Public propertyFormattingToolbarVisible
This property controls whether the text formatting toolbar is displayed or not.
Public propertyFormDrawingToolbarVisible
This property controls whether the Form object drawing toolbar is displayed or not.
Public propertyHeaderFooterVisible
This property controls whether headers and footers are displayed by the control or not.
Public propertyHighlightFillableFields
This property controls whether fill-able form fields are highlighted or not.
Public propertyLargeToolbarButtons
This property controls using large icons on toolbars.
Public propertyLearntCharColor
This property controls the font color of trained characters in the TEC control.
Public propertyMarkersVisible
This property controls whether markers related to recognition, training and proofing are displayed or not.
Public propertyMarkTextToolbarVisible
This property toggles text marking specific combos (highlight, strikeout, etc.) on the toolbar.
Public propertyMaxScrollX
This property controls the editor menu X coordinate.
Public propertyMaxScrollY
This property controls the editor menu Y coordinate.
Public propertyMeasurement
This property controls which measurement unit is used when displaying or specifying measurement units on the UI or on particular dialog boxes.
Public propertyMissingCharColor
This property controls the color of the missing character highlights.
Public propertyNondictWordColor
This color controls the color of the non-dictionary word marking.
Public propertyNonPrintingCharsVisible
This property controls whether the non-printing, control characters - like new line, tabs and spacing dots - are displayed or not.
Public propertyProofingBarVisible
This property controls whether the dock-able editor proofing bar is displayed or not.
Public propertyProofStopOn
This property controls the "proof stop on" condition.
Public propertyReadingOrderVisible
This property controls whether the zone reading order is displayed by the control or not.
Public propertyReadOnly
This property controls whether the control is in read-only mode or not.
Public propertyRejectCharColor
This property controls the font color of the reject character.
Public propertyRulerVisible
This property controls whether the ruler bar is displayed or not.
Public propertyScrollX
This property scrolls to the given X coordinate.
Public propertyScrollY
This property scrolls to the given Y coordinate.
Public propertySelAlignment
This property sets or returns the text alignment for the current selection.
Public propertySelBkColor
This property sets the selection background color.
Public propertySelBold
This property controls whether all the selected characters are bold or not.
Public propertySelBullet
This property controls whether the current selection is bulleted or not.
Public propertySelColor
This property sets or returns the font color for the current selection.
Public propertySelFontName
This property sets or returns the font for the current selection.
Public propertySelFontSize
This property sets or returns the font size for the current selection.
Public propertySelHangingIndent
This property sets or returns the hanging text indent for the current selection.
Public propertySelItalic
This property controls whether all the selected characters are italic or not.
Public propertySelLeftIndent
This property sets or returns the left text indent for the current selection.
Public propertySelLength
This property controls the length (number of characters) of the current selection.
Public propertySelNumbering
This property controls whether the current selection is numbered or not.
Public propertySelRightIndent
This property sets or returns the right text indent for the current selection.
Public propertySelStart
This property controls the character index of the first character in the current selection.
Public propertySelStrikeThru
This property controls whether all the selected characters are struck through or not.
Public propertySelSubscript
This property controls whether all the selected characters are subscripted or not.
Public propertySelSuperscript
This property controls whether all the selected characters are superscripted or not.
Public propertySelText
This property returns the currently selected character string.
Public propertySelUnderline
This property controls whether all the underlined characters are bold or not.
Public propertyShortcutKeysInToolTipsVisible
Use this function to programmatically configure the shortcut key visibility in tooltips.
Public propertySpeechAvailable
This property controls whether text reading is supported or not.
Public propertySuspectCharColor
This property controls the color of the suspect character highlights.
Public propertySuspectCharConfidenceThreshold
This parameter controls how much suspect markup (yellow highlight) will appear in the editor.
Public propertySuspectWordColor
This property controls the color of the suspect word wavy underlining.
Public propertyText
This property returns the plain text currently displayed by the TEC.
Public propertyTextLength
This property returns the length of the text (the number of characters) on the current page; it can be queried using the Text property.
Public propertyToolTipsVisible
Use this function to programmatically configure the tooltip visibility on toolbar buttons.
Public propertyVerifierDynamic
This property controls the Verifier mode.
Public propertyVerifierVisible
This property controls whether the Verifier is visible or not.
Public propertyZoneText
This property sets or returns the text associated with the current zone.
Public propertyZoneValidationMode
This property turns on or off the zone validation mode.
Public propertyZoom
This property controls the zoom. The value can be a TECSPECZOOMFACTORS value, or a certain zoom factor expressed in percentages.
Top
Methods
  NameDescription
Public methodAttach
Use this method to attach the control to an existing document object.
Public methodClearTrainingData
Use this method to clear OCR-learnt recognition patterns.
Public methodCopy
Use this function to copy the current selection to the clipboard.
Public methodCut
Use this function to move the current selection to the clipboard.
Public methodDetach
Use this method to detach the control from an existing document.
Public methodExecuteCommand(Int32)
Executes control specific command if enabled programatically.
Public methodExecuteCommand(TECCOMMAND)
Use this method to force the execution of a TEC command that is also available through the custom TEC toolbar or popup menu.
Public methodFindText
This method finds and selects the next occurrence of the word specified by the FindWhat parameter starting from the current insertion position.
Public methodGetCommandState(Int32, Boolean, Boolean)
Returns control specific command state as enabled or checked.
Public methodGetCommandState(TECCOMMAND, Boolean, Boolean)
Use this method to request information about a particular toolbar command.
Public methodGetCustomMenuItems
Use this method to return which item is displayed on a custom menu in a given group.
Public methodGetCustomToolbarButtons
Use this method to return which button is on the customized toolbar in the given group.
Public methodGetMenu
Returns a full menu about its own commands.
Public methodGetMenuString
Returns control specific menu string to be displayed in a menu.
Public methodGetMessageString
Returns a detailed control specific menu string to be displayed in a menu.
Public methodGetTextExtent
Use this to retrieve the horizontal and vertical extents of the selected text in pixels.
Public methodGetTrainingData
Returns with the current training data file name.
Public methodInt_Attach
To attach the control to an existing IPRO object.
Public methodInt_Detach
To detach the control from an existing IPRO object.
Public methodIsTrainingDataModified
This checks whether the training data is modified or not.
Public methodMergeCells
Use this to merge the selected table cells.
Public methodPaste
Us this to pastes the current clipboard data at the current insertion position.
Public methodPrintText
This method prints the currently displayed page.
Public methodPrintTextEx
This method prints a page range.
Public methodProofChange
This replaces the last flagged word found with the new string specified by the ChangedTo parameter.
Public methodProofFindNext
This finds the next flagged word using the proofing conditions and returns values listed in TECPROOFRESULTS or 0 if not found.
Public methodProofGetChangeTo
This returns the content of the Change To edit field on the Proofing bar.
Public methodProofGetFoundWord
This returns the last found flagged word.
Public methodProofGetSuggestions
This returns the suggestion list for the last flagged word found.
Public methodProofSetChangeTo
This sets the content of the Change To edit field on the Proofing bar.
Public methodRedo
Call this method to redo the last undone operation.
Public methodReplaceAllText
This method finds and replaces all occurrences of the word specified by the FindWhat parameter starting from the current insertion position with the word specified by the ReplaceWith parameter.
Public methodReplaceText
This method finds and replaces the next occurrence of the word specified by the FindWhat parameter starting from the current insertion position.
Public methodResourceAdded
Use this method to provide information on the type of resource that changed.
Public methodResourceChanged
Use this method to provide information on the change in the internal resource content.
Public methodResourceDeleted
Use this method to provide information on the deleted resource.
Public methodResourceInvalidated
Use this method to provide information on unknown resource changes.
Public methodResourceSelectionChanged
Use this method to provide information on the meaning of a selection change.
Public methodSaveTrainingData
Use this to save the current training data, however it was created - automatically by IntelliTrain or by user interaction.
Public methodSetCommandHelpID
Pairs a help ID to each command.
Public methodSetCustomMenuItems
Use this method to set which item is displayed on a custom menu in a given group.
Public methodSetCustomToolbarButtons
Use this method to set which button is on the customized toolbar in the given group.
Public methodSetHelpID
If set, and F1 is pressed, returns a SetHelp ID from OnSetHelp.
Public methodSetUILang
Sets UI language from LANGUAGES enumeration of IPRO.
Public methodShowFindDialog
Call this method to display the Find dialog.
Public methodShowFindDialogEx
Call this method to initialize and display the Find dialog.
Public methodShowReplaceDialog
Call this method to display the text replace dialog.
Public methodShowReplaceDialogEx
Call this method to display the text range replace dialog.
Public methodShowTrainEditDialog
Displays the Edit Training Dialog which allows already trained characters to be viewed and certain ones deleted from the training set.
Public methodSpeakText
Public methodSplitCells
Use this to split the selected table cell.
Public methodStartProofing
This initiates the proofing procedure either using the Proofing dialog or the Proofing bar depending on the UseProofingDlg parameter.
Public methodStartTraining
Call this method to display the Training Dialog which allows a selected, misrecognized character to be taught.
Public methodStopSpeaking
Call this method to stop reading pages if speak is supported on the PC.
Public methodUndo
Call this method to undo the last editing operation.
Public methodUpdateCtrl
Use this method to invalidate and redraw the entire view.
Top
Events
  NameDescription
Public eventOnCharacterProperties
This event is fired to provide details about the character being focused.
Public eventOnEnterModal
Public eventOnLeaveModal
Public eventOnPopupRect
This event is fired whenever the popup verifier becomes displayed.
Public eventOnSelChange
This event is fired whenever the selection or the current insertion position changes.
Public eventOnSetHelp
Public eventOnSetMessageString
Public eventOnSetToolTip
Public eventOnTrainingDataChange
This event is fired whenever the current training data file is about to change, before a new training data file is loaded.
Public eventOnUserDictRequired
This event is fired before adding new word to the user dictionary.
Top
Remarks

There are three different display modes in TEC, each rendering the recognition results with different levels of formatting.

  • True Page® rendering mode returns the original image layout, with columns, headings, tables, pictures etc.
  • Formatted Text mode ignores the page structure, but displays formatted text in a single column, including titles, tables, pictures etc.
  • Plain Text mode shows the recognition result similarly, but with plain text in a fixed font size, with no formatting or text attributes, such as bold, italic or underlines.

The text editor can optionally display a set of delivery tools in a toolbar, and also a customizable toolbar allowing quick access to the features provided by the editor. A character map can also be displayed which contains a wide range of special characters that are not directly available from the keyboard. It includes a ribbon of recently used characters. Its purpose is to make an easy way to enter special characters into the text being edited.

Under a typical scenario, the Text Editor Control looks like this:

There are three different proofing capabilities supported by the control. The first is displaying a separate proofing dialog window enabling operators to proofread the recognition result. The second is a docked proofing bar which can be used parallel with the text editor's other services. The third option is the editor's ZVC mode which is described here.

Beginning with version 15, TEC also contains a special mode in which the control window allows users to navigate the editor text from zone to zone with the Verifier displayed. This means zone-level proofing is available which is by far the most effective zone validation method. In this scenario, together with the recognized text, the Verifier displays the original image, tracks and highlights the editor caret movements, and the control basically allows all the editing features to be used to correct recognition errors.

TEC does not support Asian languages. Such texts should not be passed to it. You might design your application to prevent this.

TEC plays a role in form design. When using LFR to activate a form or to prepare a form template, the only place to view and modify the form controls is in TEC.

See Also