ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Rdl Assembly / GrapeCity.ActiveReports.PageReportModel.Validation Namespace / ValidationUtils Class / ValidateLength Method / ValidateLength(Length,Boolean) Method
A GrapeCity.ActiveReports.PageReportModel.Length value to validate.
A boolean value indicating if there should be validation against the default max value.

In This Topic
    ValidateLength(Length,Boolean) Method
    In This Topic
    Validates a length value against the RDL defined min/max length defaults ("0in","160in").
    Syntax
    'Declaration
     
    Public Overloads Shared Sub ValidateLength( _
       ByVal value As Length, _
       ByVal hasNoMaxValue As Boolean _
    ) 
    public static void ValidateLength( 
       Length value,
       bool hasNoMaxValue
    )

    Parameters

    value
    A GrapeCity.ActiveReports.PageReportModel.Length value to validate.
    hasNoMaxValue
    A boolean value indicating if there should be validation against the default max value.
    Exceptions
    ExceptionDescription
    Throws if the value is out of range limit.
    See Also