DateYearEditorAttribute class

namespace: Serenity.ComponentModel   assemblySerenity.Net.Core

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

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

Public Members

name description
DateYearEditorAttribute() Initializes a new instance of the DateYearEditorAttribute class.
Descending { get; set; } Gets or sets a value indicating whether the years should be listed in descending order.
MaxYear { get; set; } Gets or sets the maximum year. It can be written as an integer value, or +50, -20 etc. corresponding to current year plus or minus years.
MinYear { get; set; } Gets or sets the minimum year. It can be written as an integer value, or +50, -20 etc. corresponding to current year plus or minus years.
const Key Editor type key

See Also