C# Класс Monobjc.Foundation.NSRange

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
NSNotFoundRange NSRange
NSZeroRange NSRange

Открытые методы

Метод Описание
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)

Приватные методы

Метод Описание
NSRangeFromString ( [ MarshalTypeRef = typeof(IdMarshaler<NSString>))]NSStringaString ) : NSRange
NSStringFromRange ( NSRange aRange ) : NSString

Описание методов

NSEqualRanges() публичный статический Метод

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
Результат bool

NSIntersectionRange() публичный статический Метод

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
Результат NSRange

NSLocationInRange() публичный статический Метод

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
Результат bool

NSMakeRange() публичный статический Метод

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
Результат NSRange

NSMaxRange() публичный статический Метод

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
Результат uint

NSUnionRange() публичный статический Метод

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
Результат NSRange

Описание свойств

NSNotFoundRange публичное статическое свойство

A NSRange instance with its coordinates set to max.
public static NSRange,Monobjc.Foundation NSNotFoundRange
Результат NSRange

NSZeroRange публичное статическое свойство

A NSRange instance with its coordinates set to zero.
public static NSRange,Monobjc.Foundation NSZeroRange
Результат NSRange