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