Class FRRandomFieldValueCollection
Represents collection of random values of field.
Inheritance
System.Object
FRRandomFieldValueCollection
Namespace: FastReport.Utils
Assembly: FastReport.Base.dll
Syntax
public class FRRandomFieldValueCollection
Constructors
FRRandomFieldValueCollection()
Initializes a new instance of the FRRandomFieldValueCollection class.
Declaration
public FRRandomFieldValueCollection()
Methods
Add(FRRandomFieldValue)
Adds an object to the end of this collection.
Declaration
public void Add(FRRandomFieldValue value)
Parameters
Type | Name | Description |
---|---|---|
FRRandomFieldValue | value | Object to add. |
ContainsOrigin(Object)
Determines whether an element with the same origin value is in the collection.
Declaration
public bool ContainsOrigin(object origin)
Parameters
Type | Name | Description |
---|---|---|
System.Object | origin | The object to locate in the collection. |
Returns
Type | Description |
---|---|
System.Boolean | true if object is found in the collection; otherwise, false. |
ContainsRandom(Object)
Determines whether an element with the same random value is in the collection.
Declaration
public bool ContainsRandom(object random)
Parameters
Type | Name | Description |
---|---|---|
System.Object | random | The object to locate in the collection. |
Returns
Type | Description |
---|---|
System.Boolean | true if object is found in the collection; otherwise, false. |
GetRandom(Object)
Gets the random value for specified origin.
Declaration
public object GetRandom(object origin)
Parameters
Type | Name | Description |
---|---|---|
System.Object | origin | The origin value. |
Returns
Type | Description |
---|---|
System.Object | The random value. |