C# Class Monobjc.Foundation.NSRange

Mostrar archivo Open project: Monobjc/monobjc Class Usage Examples

Public Properties

Property Type Description
NSNotFoundRange NSRange
NSZeroRange NSRange

Public Methods

Method Description
NSEqualRanges ( NSRange range1, NSRange range2 ) : bool

Returns a Boolean value that indicates whether two given ranges are equal.

Original declaration is : BOOL NSEqualRanges(NSRange range1, NSRange range2)

NSIntersectionRange ( NSRange range1, NSRange range2 ) : NSRange

Returns the intersection of the specified ranges.

Original declaration is : NSRange NSIntersectionRange(NSRange range1, NSRange range2)

NSLocationInRange ( NSUInteger index, NSRange aRange ) : bool

Returns a Boolean value that indicates whether a specified position is in a given range.

Original declaration is : BOOL NSLocationInRange(unsigned int index, NSRange aRange)

NSMakeRange ( NSUInteger location, NSUInteger length ) : NSRange

Creates a new NSRange from the specified values.

Original declaration is : NSRange NSMakeRange(unsigned int location, unsigned int length)

NSMaxRange ( NSRange range ) : uint

Returns the number 1 greater than the maximum value within the range.

Original declaration is : unsigned int NSMaxRange(NSRange range)

NSUnionRange ( NSRange range1, NSRange range2 ) : NSRange

Returns the intersection of the specified ranges.

Original declaration is : NSRange NSUnionRange(NSRange range1, NSRange range2)

Private Methods

Method Description
NSRangeFromString ( [ MarshalTypeRef = typeof(IdMarshaler<NSString>))]NSStringaString ) : NSRange
NSStringFromRange ( NSRange aRange ) : NSString

Method Details

NSEqualRanges() public static method

Returns a Boolean value that indicates whether two given ranges are equal.
Original declaration is : BOOL NSEqualRanges(NSRange range1, NSRange range2)
public static NSEqualRanges ( NSRange range1, NSRange range2 ) : bool
range1 NSRange
range2 NSRange
return bool

NSIntersectionRange() public static method

Returns the intersection of the specified ranges.
Original declaration is : NSRange NSIntersectionRange(NSRange range1, NSRange range2)
public static NSIntersectionRange ( NSRange range1, NSRange range2 ) : NSRange
range1 NSRange
range2 NSRange
return NSRange

NSLocationInRange() public static method

Returns a Boolean value that indicates whether a specified position is in a given range.
Original declaration is : BOOL NSLocationInRange(unsigned int index, NSRange aRange)
public static NSLocationInRange ( NSUInteger index, NSRange aRange ) : bool
index NSUInteger
aRange NSRange
return bool

NSMakeRange() public static method

Creates a new NSRange from the specified values.
Original declaration is : NSRange NSMakeRange(unsigned int location, unsigned int length)
public static NSMakeRange ( NSUInteger location, NSUInteger length ) : NSRange
location NSUInteger
length NSUInteger
return NSRange

NSMaxRange() public static method

Returns the number 1 greater than the maximum value within the range.
Original declaration is : unsigned int NSMaxRange(NSRange range)
public static NSMaxRange ( NSRange range ) : uint
range NSRange
return uint

NSUnionRange() public static method

Returns the intersection of the specified ranges.
Original declaration is : NSRange NSUnionRange(NSRange range1, NSRange range2)
public static NSUnionRange ( NSRange range1, NSRange range2 ) : NSRange
range1 NSRange
range2 NSRange
return NSRange

Property Details

NSNotFoundRange public_oe static_oe property

A NSRange instance with its coordinates set to max.
public static NSRange,Monobjc.Foundation NSNotFoundRange
return NSRange

NSZeroRange public_oe static_oe property

A NSRange instance with its coordinates set to zero.
public static NSRange,Monobjc.Foundation NSZeroRange
return NSRange