namespace: Serenity.ComponentModel assembly: Serenity.Net.Core
Indicates that the target property should use a "Integer" editor.
[AttributeUsage(AttributeTargets.All)]
public class IntegerEditorAttribute : CustomEditorAttribute
name | description |
---|---|
IntegerEditorAttribute() | Initializes a new instance of the IntegerEditorAttribute class. |
AllowNegatives { get; set; } | Gets or sets a value indicating whether the editor should allow negatives. |
MaxValue { get; set; } | Gets or sets the maximum value. |
MinValue { get; set; } | Gets or sets the minimum value. |
static AllowNegativesByDefault { get; set; } | Gets or sets a value indicating whether editors should allow negatives by default. This is a global setting that controls default of AllowNegatives property in this attribute. |
const Key | Editor type key |
- class CustomEditorAttribute
- Source: IntegerEditorAttribute.cs