←Select platform

SetProperties Method

Summary

Sets the values of the properties to the values specified in the WiaProperties structure into the WIA device's item passed through the

item parameter.

Syntax

C#
VB
C++
public void SetProperties(  
   object item, 
   Leadtools.Wia.WiaProperties properties 
) 
Public Sub SetProperties( _ 
   ByVal item As Object, _ 
   ByVal properties As Leadtools.Wia.WiaProperties _ 
) 
public: 
void SetProperties(  
   Object^ item, 
   Leadtools.Wia.WiaProperties properties 
) 

Parameters

item parameter.

properties
The properties to set.

Remarks

Add the SetPropertiesEvent event to be informed of any error codes returned from setting each property available in the WiaProperties structure, and to have the ability to cancel the process.

Note:

If the ShowUserInterface flag is set for any of the acquire methods, then be aware that some of the previously set/changed user properties (using any of the SetPropertyXxx or SetProperties methods) will be overwritten by the Microsoft's image acquisition dialog box. Microsoft's image acquisition dialog box sets its own initialization properties like the current intent (image type), selected area (left, top, width and height), paper source and duplex mode, ...etc.

To suppress the manufacturer's image acquisition dialog and acquire directly from the specified source item through the item parameter using the values set through the SetPropertyXxx and SetProperties methods, do not set the ShowUserInterface flag.

For more information, refer to Managing WIA Sources.

Example

For an example, refer to WiaSession.GetRootItem.

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Wia Assembly
Click or drag to resize