List & Label .NET
combit.Reporting Namespace / ElementBaseCollection Class / AddFromObject Method / AddFromObject(String,Object,Boolean) Method


In This Topic
    AddFromObject(String,Object,Boolean) Method
    In This Topic
    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.
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Sub AddFromObject( _
       ByVal namePrefix As String, _
       ByVal value As Object, _
       ByVal onlyBrowsableProperties As Boolean _
    ) 
    public virtual void AddFromObject( 
       string namePrefix,
       object value,
       bool onlyBrowsableProperties
    )
    public:
    virtual void AddFromObject( 
       String^ namePrefix,
       Object^ value,
       bool onlyBrowsableProperties
    ) 

    Parameters

    namePrefix
    value
    onlyBrowsableProperties
    Remarks

    Object hierarchies in Designer can be defined using the namePrefix parameter and separated by dots. The depth of the supported object hierarchy corresponds to the value of the MaximumDataDefinitionRecursionDepth property (default: 2) of the ListLabel object. If a deeper object hierarchy is to be mapped, the value of the MaximumDataDefinitionRecursionDepth property can be increased accordingly - example: LL.MaximumDataDefinitionRecursionDepth = 10;

    Requirements

    Platforms: Windows 10 (Version 21H2 - 22H2), Windows 11 (22H2 - 25H2), Windows Server 2016 - 2025
    .NET: .NET Framework 4.8, .NET 8, .NET 9, .NET 10

    See Also