GridDataMap Class Reference

Inherits from NSObject
Declared in GridDataMap.h

Overview

Class GridDataMap.

– initWithArray:

Initialize an object for GridDataMap with array.

- (id _Nonnull)initWithArray:(NSArray *_Nonnull)array

Parameters

array

the specified array.

Return Value

an object for GridDataMap

Discussion

Initialize an object for GridDataMap with array.

Declared In

GridDataMap.h

– initWithArray:selectedValuePath:displayMemberPath:

Initialize an object for GridDataMap with parameters.

- (id _Nonnull)initWithArray:(NSArray *_Nonnull)array selectedValuePath:(NSString *_Nonnull)selectedValuePath displayMemberPath:(NSString *_Nonnull)displayMemberPath

Parameters

array

the specified array.

selectedValuePath

the specified selectedValuePath.

displayMemberPath

the specified displayMemberPath.

Return Value

an object for GridDataMap

Discussion

Initialize an object for GridDataMap with parameters.

Declared In

GridDataMap.h

– initWithCollectionView:selectedValuePath:displayMemberPath:

Initialize an object for GridDataMap with parameters.

- (id _Nonnull)initWithCollectionView:(XuniCollectionView *_Nonnull)items selectedValuePath:(NSString *_Nonnull)selectedValuePath displayMemberPath:(NSString *_Nonnull)displayMemberPath

Parameters

items

the specified items.

selectedValuePath

the specified selectedValuePath.

displayMemberPath

the specified displayMemberPath.

Return Value

an object for GridDataMap

Discussion

Initialize an object for GridDataMap with parameters.

Declared In

GridDataMap.h

  collectionView

Gets the ICollectionView that contains the grid data.

@property (readonly) XuniCollectionView *collectionView

Discussion

Gets the ICollectionView that contains the grid data.

Declared In

GridDataMap.h

  selectedValuePath

Gets the name of the property to use as a key for the item (data values).

@property (readonly) NSString *selectedValuePath

Discussion

Gets the name of the property to use as a key for the item (data values).

Declared In

GridDataMap.h

  displayMemberPath

Gets the name of the property to use as the visual representation of the items.

@property (readonly) NSString *displayMemberPath

Discussion

Gets the name of the property to use as the visual representation of the items.

Declared In

GridDataMap.h

– getKeyValue:

Gets the key that corresponds to a given display value.

- (NSObject *_Nullable)getKeyValue:(NSString *_Nonnull)displayValue

Parameters

displayValue

the specified displayValue.

Return Value

the key that corresponds to a given display value.

Discussion

Gets the key that corresponds to a given display value.

Declared In

GridDataMap.h

– getDisplayValue:

Gets the display value that corresponds to a given key.

- (NSObject *_Nullable)getDisplayValue:(NSObject *_Nonnull)key

Parameters

key

the specified key.

Return Value

the display value that corresponds to a given key.

Discussion

Gets the display value that corresponds to a given key.

Declared In

GridDataMap.h

– getDisplayValues

Gets an array with all display values on this map.

- (NSArray *_Nonnull)getDisplayValues

Return Value

an array.

Discussion

Gets an array with all display values on this map.

Declared In

GridDataMap.h

– getKeyValues

Gets an array with all keys on this map.

- (NSArray *_Nonnull)getKeyValues

Return Value

an array.

Discussion

Gets an array with all keys on this map.

Declared In

GridDataMap.h

– displayIndexOf:

Gets the zero-based index that corresponds to a given display value.

- (int)displayIndexOf:(NSString *_Nonnull)displayValue

Parameters

displayValue

the specified displayValue.

Return Value

the zero-based index that corresponds to a given display value.

Discussion

Gets the zero-based index that corresponds to a given display value.

Declared In

GridDataMap.h