combit List & Label 29 - .NET Help
combit.Reporting Namespace / ElementBaseCollection Class / AddFromObject Method


In This Topic
    AddFromObject Method
    In This Topic

    The List & Label component allows the declaration of any type of data. The AddFromObject method is available for this purpose. This method uses reflections to retrieve the public fields and properties of the object and to pass them as variables to List & Label. The name of the corresponding class member is used as name, wherein you can also assign a prefix to a name through an overload.

    Overload List
    OverloadDescription
    Transfers an object with its properties as fields or variables to List & Label.  
    Transfers an object with its properties as fields or variables to List & Label. Additionally a prefix can be passed for fields and variables.  
    Transfers an object with its properties as fields or variables to List & Label. Additionally a prefix can be passed for fields and variables. With this overload only properties are passed that do not have the Browsable(false) attribute.  
    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