Struct Range
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.dll
- API Level:
- 3
Represents a range(min, max) value.
C#Copypublic struct Range
Constructors
Declaration
C#Copypublic Range(int min, int max)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | min | Minimum value of the range. |
System.Int32 | max | Maximum value of the range. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException |
|
API Level: 3
Properties
Declaration
C#Copypublic int Length { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: 3
Declaration
C#Copypublic int Max { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: 3
Declaration
C#Copypublic int Min { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: 3
Methods
Declaration
C#Copypublic override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | A System.Object to compare. |
Returns
Type | Description |
---|---|
System.Boolean | true if the two ranges are equal; otherwise, false. |
Overrides
System.ValueType.Equals(System.Object)
API Level: 3
Declaration
C#Copypublic override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The hash code for this instance of Range. |
Overrides
System.ValueType.GetHashCode()
API Level: 3
Declaration
C#Copypublic bool IsInside(int value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value | The value to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the value is within the range; otherwise false. |
API Level: 3
Declaration
C#Copypublic override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents the current object. |
Overrides
System.ValueType.ToString()
API Level: 3
Operators
Declaration
C#Copypublic static bool operator ==(Range range1, Range range2)
Parameters
Type | Name | Description |
---|---|---|
Range | range1 | A Range to compare. |
Range | range2 | A Range to compare. |
Returns
Type | Description |
---|---|
System.Boolean | true if the two instances of Range are equal; otherwise false. |
API Level: 3
Declaration
C#Copypublic static bool operator !=(Range range1, Range range2)
Parameters
Type | Name | Description |
---|---|---|
Range | range1 | A Range to compare. |
Range | range2 | A Range to compare. |
Returns
Type | Description |
---|---|
System.Boolean | true if the two instances of Range are not equal; otherwise false. |