IC Imaging Control .NET

VCDPropertyItems.Find Method

VCDPropertyItems.Find Method

This method returns the VCDPropertyInterface that is referred by the passed item GUID, element GUID and interface type. The interface type is specified by generic type argument or the type of the out parameter.
Syntax:
[C#]
public TInterface Find<TInterface>( GUID itemID, GUID elementID ); public VCDRangeProperty Find( GUID itemID, GUID elementID, out VCDRangeProperty itf ); public VCDSwitchProperty Find( GUID itemID, GUID elementID, out VCDSwitchProperty itf ); public VCDButtonProperty Find( GUID itemID, GUID elementID, out VCDButtonProperty itf ); public VCDMapStringsProperty Find( GUID itemID, GUID elementID, out VCDMapStringsProperty itf ); public VCDAbsoluteValueProperty Find( GUID itemID, GUID elementID, out VCDAbsoluteValueProperty itf );
Parameter Description
itemID

The item ID of the requested interface.

elementID

The element ID of the requested interface.

itf

Output parameter receiving the requested interface.

Return Value:

If the specified element does not have an interface of the requested interface type, the function returns Nothing and null respectively.

Remarks:

For available property item identifier and element identifiers, see VCDGUIDs.

Information:

Introduced in version 3.4

Sample:

This example retrieves and disables Exposure-Auto.

[C#]
VCDSwitchProperty exposureAuto = ICImagingControl1.VCDPropertyItems.Find<VCDSwitchProperty>(VCDGUIDs.VCDID_Exposure, VCDGUIDs.VCDElement_Auto); if( exposureAuto != null ) { exposureAuto.Switch = false; }
See also: VCDPropertyItems, VCDPropertyItem, VCDPropertyInterface

<< ICImagingControl.VCDPropertyItems

Get in touch with us


About The Imaging Source

Established in 1990, The Imaging Source is one of the leading manufacturers of industrial cameras, frame grabbers and video converters for production automation, quality assurance, logistics, medicine, science and security.

Our comprehensive range of cameras with USB 3.1, USB 3.0, USB 2.0, GigE interfaces and other innovative machine vision products are renowned for their high quality and ability to meet the performance requirements of demanding applications.

Automated Imaging Association ISO 9001:2015 certified

Contact us