combit List & Label 27 - .NET Help
combit.Reporting.Dom Namespace / CollectionUserVariables Class
Members Example


In This Topic
    CollectionUserVariables Class
    In This Topic
    This collection contains the user variables of the current project. It can also be used to add new user variables to the project.
    Object Model
    CollectionUserVariables ClassUserVariable Class
    Syntax
    'Declaration
     
    
    Public Class CollectionUserVariables 
       Inherits combit.Reporting.Dom.DomCollectionBase(Of UserVariable)
    public class CollectionUserVariables : combit.Reporting.Dom.DomCollectionBase<UserVariable> 
    public ref class CollectionUserVariables : public combit.Reporting.Dom.DomCollectionBase<UserVariable> 
    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; 
    }
    Inheritance Hierarchy

    System.Object
       System.Collections.ObjectModel.Collection<T>
          System.Collections.ObjectModel.ObservableCollection<T>
             combit.Reporting.Dom.DomCollectionBase<T>
                combit.Reporting.Dom.CollectionUserVariables

    Requirements

    Platforms: Windows 8.1, Windows 10 (Version 20H2 - 21H2), Windows 11 (21H2), Windows Server 2012 - 2022

    See Also