Constructor PrecisionAttribute
- Namespace
- Bonsai
- Assembly
- Bonsai.Core.dll
PrecisionAttribute(int, int)
Initializes a new instance of the PrecisionAttribute with the specified number of decimal places and the smallest editor step increment.
public PrecisionAttribute(int decimalPlaces, int increment)
Parameters
decimalPlaces
intThe number of decimal places to display in the editor.
increment
intThe int value by which to increment or decrement the current value on each editor step.
PrecisionAttribute(int, double)
Initializes a new instance of the PrecisionAttribute with the specified number of decimal places and the smallest editor step increment.
public PrecisionAttribute(int decimalPlaces, double increment)
Parameters
decimalPlaces
intThe number of decimal places to display in the editor.
increment
doubleThe double value by which to increment or decrement the current value on each editor step.
PrecisionAttribute(int, decimal)
Initializes a new instance of the PrecisionAttribute with the specified number of decimal places and the smallest editor step increment.
public PrecisionAttribute(int decimalPlaces, decimal increment)