DecimalEditorAttribute class

namespace: Serenity.ComponentModel   assemblySerenity.Net.Core

Indicates that the target property should use a "Decimal" editor.

[AttributeUsage(AttributeTargets.All)]
public class DecimalEditorAttribute : CustomEditorAttribute

Public Members

name description
DecimalEditorAttribute() Initializes a new instance of the DecimalEditorAttribute class.
AllowNegatives { get; set; } Gets or sets a value indicating whether to allow negatives.
Decimals { get; set; } Gets or sets the number of decimals allowed.
MaxValue { get; set; } Gets or sets the maximum value.
MinValue { get; set; } Gets or sets the minimum value.
PadDecimals { get; set; } Gets or sets a value indicating whether to pad decimals with zero.
static AllowNegativesByDefault { get; set; } Gets or sets a value indicating whether to allow negatives by default. This is a global setting that controls if decimal editors should allow negative values unless specified otherwise.
const Key Editor type key

See Also