
iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
SCIIntegerValues
@interface SCIIntegerValues : SCIDisposableBase <ISCIValues>
Defines an int values collection.
-
Maximum capacity of underlying array.
Declaration
Objective-C
@property (nonatomic, readonly) NSInteger capacity;
-
Creates a new
SCIIntegerValues
instance.Declaration
Objective-C
- (nonnull instancetype)initWithCapacity:(NSInteger)capacity;
Parameters
capacity
The initial capacity.
-
Creates a new
SCIIntegerValues
instance and initializes it with specified array.Declaration
Objective-C
- (nonnull instancetype)initWithItems:(nonnull const int *)items count:(NSInteger)count;
Parameters
items
The array with items.
count
The count of passed in items.
-
Gets the internal items array.
Declaration
Objective-C
@property (nonatomic, readonly, getter=getItemsArray) NS_REFINED_FOR_SWIFT int *itemsArray;
Return Value
The items array.
-
Adds new value.
Declaration
Objective-C
- (void)add:(int)value;
Parameters
value
The value to add.
-
Adds new value at specified location.
Declaration
Objective-C
- (void)insert:(int)value at:(NSInteger)index;
Parameters
index
The location to add value at.
value
The value to add.
-
Adds multiple values from array.
Declaration
Objective-C
- (void)addValues:(nonnull const int *)values count:(NSInteger)count;
Parameters
values
The values to add.
count
The amount of values to add.
-
Adds multiple values from array region.
Declaration
Objective-C
- (void)addValues:(nonnull const int *)values startIndex:(NSInteger)startIndex count:(NSInteger)count;
Parameters
values
The values array to add.
startIndex
The index of first value to add.
count
The amount of values to add.
-
Sets the value at specified location.
Declaration
Objective-C
- (void)set:(int)value at:(NSInteger)index;
Parameters
value
The value to set.
index
The index to set value at.
-
Gets the value at specified location.
Declaration
Objective-C
- (int)getValueAt:(NSInteger)index;
Parameters
index
The index of value to get.
Return Value
The value.
-
Removes value at specified location.
Declaration
Objective-C
- (void)removeAt:(NSInteger)index;
Parameters
index
The index to remove value at.