Struct Range
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.dll
- API Level:
- 3
Represents a range(min, max) value.
public struct Range
Constructors
View SourceRange(Int32, Int32)
Initializes a new instance of the range with the specified values.
Declaration
public Range(int min, int max)
Parameters
Type | Name | Description |
---|---|---|
Int32 | min | Minimum value of the range. |
Int32 | max | Maximum value of the range. |
Exceptions
Type | Condition |
---|---|
ArgumentException |
|
API Level: 3
Properties
View SourceLength
Gets the length of the range.
Declaration
public int Length { get; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 3
View SourceMax
Gets or sets the maximum value of the range.
Declaration
public int Max { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 3
View SourceMin
Gets or sets the minimum value of the range.
Declaration
public int Min { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 3
Methods
View SourceEquals(Object)
Compares an object to an instance of Range for equality.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | A Object to compare. |
Returns
Type | Description |
---|---|
Boolean | true if the two ranges are equal; otherwise, false. |
Overrides
API Level: 3
View SourceGetHashCode()
Gets the hash code for this instance of Range.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | The hash code for this instance of Range. |
Overrides
API Level: 3
View SourceIsInside(Int32)
Determines if the specified value is within the range.
Declaration
public bool IsInside(int value)
Parameters
Type | Name | Description |
---|---|---|
Int32 | value | The value to check. |
Returns
Type | Description |
---|---|
Boolean | true if the value is within the range; otherwise false. |
API Level: 3
View SourceToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A string that represents the current object. |
Overrides
API Level: 3
Operators
View SourceEquality(Range, Range)
Compares two instances of Range for equality.
Declaration
public 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 |
---|---|
Boolean | true if the two instances of Range are equal; otherwise false. |
API Level: 3
View SourceInequality(Range, Range)
Compares two instances of Range for inequality.
Declaration
public 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 |
---|---|
Boolean | true if the two instances of Range are not equal; otherwise false. |