combit List & Label 25 - .NET Online Web Help
AddFromHandle Method


combit.ListLabel25 Namespace > ElementBaseCollection Class : AddFromHandle Method
Variable name.
Variable value.
Variable type, that has to be a valid value of the LlFieldType Enumeration.

The API function LlDefineVariableExtHandle is represented by the AddFromHandle method. Here, you can pass a handle in the form of an IntPtr. It is also possible to determine the description of the desired data type. Generally, it is the LlFieldType.Drawing_hBitmap.

Remark: This method should be used only in special situations, such as connecting with Win32 API, if, for example, a component with unmanaged code delivers such a handle. In other cases, you can directly enter the respective Bitmap. The basic abstract class Image also supports a static method FromHBitmap, with the help of which an instance of the Bitmap class can be indicated on the basis of a handle.

Syntax
'Declaration
 
Public Overridable Sub AddFromHandle( _
   ByVal name As String, _
   ByVal value As IntPtr, _
   ByVal fieldType As LlFieldType _
) 
public virtual void AddFromHandle( 
   string name,
   IntPtr value,
   LlFieldType fieldType
)
public:
virtual void AddFromHandle( 
   String^ name,
   IntPtr value,
   LlFieldType fieldType
) 

Parameters

name
Variable name.
value
Variable value.
fieldType
Variable type, that has to be a valid value of the LlFieldType Enumeration.
Requirements

Platforms: Windows 7 SP1 - Windows 10 Version 1909, Windows Server 2008 R2 - 2019

See Also

Reference

ElementBaseCollection Class
ElementBaseCollection Members
LlDefineVariableExtHandle Method