Xamarin.iOS

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DateRangeAttribute

    Show / Hide Table of Contents

    Class DateRangeAttribute

    Specifies the date range constraints for the value of a data field.

    Inheritance
    System.Object
    DateRangeAttribute
    Namespace: Syncfusion.iOS.DataForm
    Assembly: Syncfusion.SfDataForm.iOS.dll
    Syntax
    public sealed class DateRangeAttribute : ValidationAttribute

    Constructors

    DateRangeAttribute()

    Initializes a new instance of the DateRangeAttribute class.

    Declaration
    public DateRangeAttribute()

    Properties

    MaxDay

    Gets or sets the maximum day of a date.

    Declaration
    public int MaxDay { get; set; }
    Property Value
    Type Description
    System.Int32

    MaxMonth

    Gets or sets the maximum month of a date.

    Declaration
    public int MaxMonth { get; set; }
    Property Value
    Type Description
    System.Int32

    MaxYear

    Gets or sets the maximum year of a date.

    Declaration
    public int MaxYear { get; set; }
    Property Value
    Type Description
    System.Int32

    MinDay

    Gets or sets the minimum day of a date.

    Declaration
    public int MinDay { get; set; }
    Property Value
    Type Description
    System.Int32

    MinMonth

    Gets or sets the minimum month of a date.

    Declaration
    public int MinMonth { get; set; }
    Property Value
    Type Description
    System.Int32

    MinYear

    Gets or sets the minimum year of a date.

    Declaration
    public int MinYear { get; set; }
    Property Value
    Type Description
    System.Int32

    Methods

    IsValid(Object)

    Checks that the value of the data field is in the specified range.

    Declaration
    public override bool IsValid(object value)
    Parameters
    Type Name Description
    System.Object value

    The data field value to validate.

    Returns
    Type Description
    System.Boolean

    true if the specified value is in the range; otherwise, false.

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved