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