Click or drag to resize

SettingManager Class

The SettingManager object allows you to manage the settings of the Engine and the Documents.
Inheritance Hierarchy
SystemObject
  OmniPageCSDK.IproPlusIproPlusClass
    OmniPageCSDK.IproPlusSettingManager

Namespace:  OmniPageCSDK.IproPlus
Assembly:  OmniPageCSDK.IproPlus (in OmniPageCSDK.IproPlus.dll) Version: 1.0.0.0
Syntax
public class SettingManager : IproPlusClass, 
	IDisposable

The SettingManager type exposes the following members.

Properties
  NameDescription
Public propertyCount
This property returns the number of first-level nodes.
Public propertyProfile
Top
Methods
  NameDescription
Public methodAddArraySetting
This method creates and returns a new node with an array type setting.
Public methodAddBasicSetting
This method creates and returns a new node with a primitive setting.
Public methodAddEnumSetting
This method creates and returns a new node with an enumerated setting.
Public methodClone
This method is used to create an exact copy of the called SettingManager object.
Public methodCopySetting
The CopySetting method is used to copy a setting, a subtree or the full tree to another SettingManager.
Public methodDefaultSettingValue
This property gets or returns the default value of a given setting.
Public methodDeleteSetting
This method deletes a node or its whole sub-tree from the setting tree.
Public methodDispose
Releases all resources used by the SettingManager
Public methodGetDocument
Returns the parent Document object.
Public methodGetEngine
Returns the Engine object.
Public methodGetEnumerator
Public methodGetItem
This property returns a SettingNode object, which represents a node.
Public methodGetSettingValue
This property returns or sets the value of a setting.
Public methodLoad
Calling this method loads the values stored in the specified file.
Public methodSave
Calling this method saves the entire setting tree to the specified file.
Public methodSetDefaults
Calling this method sets the values of all settings to their default value.
Public methodSetSettingValue
This property returns or sets the value of a setting.
Top
Remarks

Settings are named values which control the behavior of different functions on the lower levels of the SDK. They are organized in a tree structure. The setting tree contains a large number of settings, but you should only manipulate the ones by the SettingManager which are documented in the RecAPI help.

In a setting tree, every setting is attached to a node. (The nodes do not necessarily have associated setting values. For example, some nodes might be created to act as the parent of a set of child nodes having associated setting values.) Individual settings are unambiguously identified by their "path" name, which is made up by concatenating the names of the nodes from the root node down to the setting node. The node names are separated by dots.

Several setting trees can co-exist at a time. Upon its creation, the Engine creates the first setting tree. All other setting trees are created as copies of the current settings of the Engine. Each newly created Document receives such a copy of the Engine's settings. This way the settings of the individual documents are independent of each other and also from the settings of the Engine.

When a document is saved to an OPD file, the current Document settings are also saved automatically. However, you should explicitly save the Engine settings if needed.

Each SettingManager is able to clone itself with its Clone method. The returned clone is an exact copy of the original and is independent of any other SettingManager objects. This is useful if you want to enable setting modifications on the UI without making changes to the original ones. Once the new settings are accepted, they can be copied back to the source SettingManager.

Scanner and Converter object settings present special cases. Although they do appear in setting trees, several of their individual setting values may depend on others. Therefore we suggest that you work with Scanner and Converter object settings via these objects themselves, and not by utilizing the SettingManager.

Scanner and Converter objects can be queried only from the Engine. These objects will modify the settings of the Engine. For document-specific Scanner and Converter setting modification these objects provide some helper methods. To let document-specific Scanner and Converter settings have an effect in your workflows, you must set the SP_EXP_USEENGINECONVERTERS and SP_EXP_USEENGINESSCANNERS workflow step parameters to false.

The setting manager supports the following setting types: integer, floating point, Boolean, string, integer array, floating point array, Boolean array and enumerated. Saving and loading the entire setting tree, or any sub-tree is also supported.

See Also