combit List & Label 30 - .NET Help
combit.Reporting.Dom Namespace / ProjectBase Class / UserVariables Property
Example


UserVariables Property
This collection contains the user variables of the project. It can also be used to add new user variables to the project.
Syntax
'Declaration
 
Public ReadOnly Property UserVariables As CollectionUserVariables
 
Example
// add user variable
UserVariable userVar = new UserVariable(proj.UserVariables); 
 
// set properties
userVar.Name = "@User01"; 
userVar.Contents = "1234"; 
 
// iterate all user variables
foreach(UserVariable userVariable in proj.UserVariables) 
{ 
    string userVarName = userVariable.Name; 
}
Requirements

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

See Also