MonobjcMonobjc Documented Class Library
NSRange Structure
NamespacesMonobjc.FoundationNSRange
A structure used to describe a portion of a series�such as characters in a string or objects in an NSArray object.
Declaration Syntax
C#Visual BasicVisual C++
public struct NSRange : IEquatable<NSRange>
Public Structure NSRange _
	Implements IEquatable(Of NSRange)
public value class NSRange : IEquatable<NSRange>
Members
All MembersConstructorsMethodsFields



IconMemberDescription
NSRange(UInt32, UInt32)
Initializes a new instance of the NSRange class.

Equality(NSRange, NSRange)
Implements the operator ==.

Equals(NSRange)
Equalses the specified ns range.

Equals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ValueType.Equals(Object).)
Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()()
Returns the hash code for this instance.
(Overrides ValueType.GetHashCode()()()().)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
Inequality(NSRange, NSRange)
Implements the operator !=.

length
The number of items in the range (can be 0).

location
The start index (0 is the first, as in C arrays).

MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
NSEqualRanges(NSRange, NSRange)
Returns a Boolean value that indicates whether two given ranges are equal.

NSIntersectionRange(NSRange, NSRange)
Returns the intersection of the specified ranges.

NSLocationInRange(UInt32, NSRange)
Returns a Boolean value that indicates whether a specified position is in a given range.

NSMakeRange(UInt32, UInt32)
Creates a new NSRange from the specified values.

NSMaxRange(NSRange)
Returns the number 1 greater than the maximum value within the range.

NSNotFoundRange
A NSRange instance with its coordinates set to max.

NSRangeFromString(NSString)
Returns a range from a text-based representation.

NSStringFromRange(NSRange)
Returns a string representation of a range.

NSUnionRange(NSRange, NSRange)
Returns the intersection of the specified ranges.

NSZeroRange
A NSRange instance with its coordinates set to zero.

ToString()()()()
Returns the a string representation of this instance.
(Overrides ValueType.ToString()()()().)
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)