Class CollectionUserVariables
- Namespace
- combit.Reporting.Dom
- Assembly
- combit.ListLabel31.CrossPlatform.dll
Represents a collection of user-defined variables within a report. This class provides methods to update, reset, and revert values of all contained UserVariable instances. Implements the combit.Expressions.IIdentifierProvider interface to support identifier evaluation and the combit.Expressions.IValueReversion interface to manage value reversion behavior.
public class CollectionUserVariables : DomCollectionBase<UserVariable>, IList<UserVariable>, ICollection<UserVariable>, IReadOnlyList<UserVariable>, IReadOnlyCollection<UserVariable>, IEnumerable<UserVariable>, IList, ICollection, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged, IDomCollectionBase
- Inheritance
-
CollectionUserVariables
- Implements
- Inherited Members
Properties
this[string]
Gets the user variable with the specified name, or null if not found.
public UserVariable this[string variableName] { get; }
Parameters
variableNamestringThe name of the user variable.
Property Value
- UserVariable
The UserVariable with the specified name, or
nullif not found.
Methods
AddNew()
Adds a new user variable to the collection.
public UserVariable AddNew()
Returns
- UserVariable
The newly created UserVariable.
AddNew(string, string)
Adds a new user variable with the specified name and contents.
public UserVariable AddNew(string name, string contents)
Parameters
namestringThe name of the user variable.
contentsstringThe contents (expression) of the user variable.
Returns
- UserVariable
The newly created UserVariable.
GetVariable(string)
Finds a user variable by its name.
protected UserVariable GetVariable(string variableName)
Parameters
variableNamestringThe name of the user variable to find.
Returns
- UserVariable
The UserVariable with the specified name, or
nullif not found.