combit List & Label 29 - .NET Help
combit.Reporting Namespace / ElementBaseCollection Class / AddFromHandle Method
Variable name.
Variable value.
Variable type, that has to be a valid value of the LlFieldType Enumeration.


In This Topic
    AddFromHandle Method
    In This Topic

    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 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
    .NET: .NET Framework 4.8, .NET 6, .NET 7, .NET 8

    See Also