Class IntProperty
- Namespace
- Bonsai.Expressions
- Assembly
- Bonsai.Core.dll
Represents a workflow property containing a 32-bit signed integer.
Property sources expose a value which can be set from the property grid and also generate an observable sequence that emits a notification whenever the property value changes, starting with the initial property value.
Tip
Property sources are commonly used to create new configuration parameters with custom names for nested workflows. To expose and rename a property source, use Property Mapping to externalize the property value and set its DisplayName
.
public class IntProperty : WorkflowProperty
- Inheritance
-
IntProperty
- Inherited Members
Properties
Value
Gets or sets the value of the property.
[Range(-2147483648, 2147483647)]
public int Value { get; set; }
Property Value
Methods
Generate()
Generates an observable sequence that produces a value whenever the workflow property changes, starting with the initial property value.
public virtual IObservable<int> Generate()
Returns
- IObservable<int>
An observable sequence of property values.
Generate<TSource>(IObservable<TSource>)
Generates an observable sequence that produces a value whenever the source sequence emits a new element.
public IObservable<int> Generate<TSource>(IObservable<TSource> source)
Parameters
source
IObservable<TSource>The source sequence used to generate new values.
Returns
- IObservable<int>
An observable sequence of property values.
Type Parameters
TSource
The type of the elements in the source sequence.