Range.Contains Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Contains(Range) |
Checks if another |
| Contains(Object) |
Checks if the |
Contains(Range)
Checks if another range is within the bounds of this range.
[Android.Runtime.Register("contains", "(Landroid/util/Range;)Z", "")]
public bool Contains(Android.Util.Range? range);
[<Android.Runtime.Register("contains", "(Landroid/util/Range;)Z", "")>]
member this.Contains : Android.Util.Range -> bool
Parameters
- range
- Range
a non-nullT reference
Returns
true if the range is within this inclusive range, false otherwise
- Attributes
Remarks
Checks if another range is within the bounds of this range.
A range is considered to be within this range if both of its endpoints are within this range.
Java documentation for android.util.Range.contains(android.util.Range<T>).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
Contains(Object)
Checks if the value is within the bounds of this range.
[Android.Runtime.Register("contains", "(Ljava/lang/Comparable;)Z", "")]
public bool Contains(Java.Lang.Object? value);
[<Android.Runtime.Register("contains", "(Ljava/lang/Comparable;)Z", "")>]
member this.Contains : Java.Lang.Object -> bool
Parameters
- value
- Object
a non-nullT reference
Returns
true if the value is within this inclusive range, false otherwise
- Attributes
Remarks
Checks if the value is within the bounds of this range.
A value is considered to be within this range if it's >= the lower endpoint and<= the upper endpoint (using the Comparable interface.)
Java documentation for android.util.Range.contains(T).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.