Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    DataMemberRangeAttribute Class

    Namespace: Stride.Core.Annotations
    Assembly: Stride.Core.dll

    Defines range values for a property or field.

    System.Object → System.Attribute → DataMemberRangeAttribute
    Derived from DataMemberRangeAttribute:

    [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
    public class DataMemberRangeAttribute : Attribute
    Remarks

    Minimum, Maximum and SmallStep must have the same type

    Name Description
    Constructors
    DataMemberRangeAttribute(Double, Double)

    Initializes a new instance of the DataMemberRangeAttribute class.

    DataMemberRangeAttribute(Double, Double, Double, Double)

    Initializes a new instance of the DataMemberRangeAttribute class.

    DataMemberRangeAttribute(Double, Double, Double, Double, Int32)

    Initializes a new instance of the DataMemberRangeAttribute class.

    DataMemberRangeAttribute(Double, Double, Int32)

    Initializes a new instance of the DataMemberRangeAttribute class.

    DataMemberRangeAttribute(Double, Int32)

    Initializes a new instance of the DataMemberRangeAttribute class.

    Properties
    DecimalPlaces

    Gets the decimal places.

    LargeStep

    Gets the maximum step.

    Maximum

    Gets the maximum inclusive.

    Minimum

    Gets the minimum inclusive.

    SmallStep

    Gets the minimum step.

    | Improve this Doc View Source

    Constructors


    DataMemberRangeAttribute(Double, Double)

    Initializes a new instance of the DataMemberRangeAttribute class.

    [Obsolete("This method will be removed in a future release. Use DataMemberRangeAttribute(double minimum, double maximum, double smallStep, double largeStep, int decimalPlaces) instead")]
    public DataMemberRangeAttribute(double minimum, double maximum)
    Parameters
    Type Name Description
    System.Double minimum

    The minimum.

    System.Double maximum

    The maximum.


    DataMemberRangeAttribute(Double, Double, Double, Double)

    Initializes a new instance of the DataMemberRangeAttribute class.

    [Obsolete("This method will be removed in a future release. Use DataMemberRangeAttribute(double minimum, double maximum, double smallStep, double largeStep, int decimalPlaces) instead")]
    public DataMemberRangeAttribute(double minimum, double maximum, double smallStep, double largeStep)
    Parameters
    Type Name Description
    System.Double minimum

    The minimum.

    System.Double maximum

    The maximum.

    System.Double smallStep

    The minimum step used to go from minimum to maximum.

    System.Double largeStep

    The maximum step.


    DataMemberRangeAttribute(Double, Double, Double, Double, Int32)

    Initializes a new instance of the DataMemberRangeAttribute class.

    public DataMemberRangeAttribute(double minimum, double maximum, double smallStep, double largeStep, int decimalPlaces)
    Parameters
    Type Name Description
    System.Double minimum

    The minimum.

    System.Double maximum

    The maximum.

    System.Double smallStep

    The minimum step used to go from minimum to maximum.

    System.Double largeStep

    The maximum step used to go from minimum to maximum.

    System.Int32 decimalPlaces

    The decimal places.


    DataMemberRangeAttribute(Double, Double, Int32)

    Initializes a new instance of the DataMemberRangeAttribute class.

    [Obsolete("This method will be removed in a future release. Use DataMemberRangeAttribute(double minimum, double maximum, double smallStep, double largeStep, int decimalPlaces) instead")]
    public DataMemberRangeAttribute(double minimum, double maximum, int decimalPlaces)
    Parameters
    Type Name Description
    System.Double minimum

    The minimum.

    System.Double maximum

    The maximum.

    System.Int32 decimalPlaces

    The decimal places


    DataMemberRangeAttribute(Double, Int32)

    Initializes a new instance of the DataMemberRangeAttribute class.

    public DataMemberRangeAttribute(double minimum, int decimalPlaces)
    Parameters
    Type Name Description
    System.Double minimum

    The minimum.

    System.Int32 decimalPlaces

    The decimal places

    | Improve this Doc View Source

    Properties


    DecimalPlaces

    Gets the decimal places.

    public int? DecimalPlaces { get; }
    Property Value
    Type Description
    System.Nullable<System.Int32>

    The decimal places.


    LargeStep

    Gets the maximum step.

    public double? LargeStep { get; }
    Property Value
    Type Description
    System.Nullable<System.Double>

    The maximum step.


    Maximum

    Gets the maximum inclusive.

    public double? Maximum { get; }
    Property Value
    Type Description
    System.Nullable<System.Double>

    The maximum.


    Minimum

    Gets the minimum inclusive.

    public double? Minimum { get; }
    Property Value
    Type Description
    System.Nullable<System.Double>

    The minimum.


    SmallStep

    Gets the minimum step.

    public double? SmallStep { get; }
    Property Value
    Type Description
    System.Nullable<System.Double>

    The minimum step.


    Inherited Members

    System.Attribute.Equals(System.Object)
    System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Module)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.GetHashCode()
    System.Attribute.IsDefaultAttribute()
    System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
    System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
    System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.Module, System.Type)
    System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.Match(System.Object)
    System.Attribute.TypeId

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation