GridPanel Class Reference
Inherits from | NSObject |
---|---|
Declared in | GridPanel.h |
– objectAtIndexedSubscript:
Get row accessor for provided row index
- (nonnull GridRowAccessor *)objectAtIndexedSubscript:(int)key
Parameters
key |
the specified row. |
---|
Return Value
a GridRowAccessor value.
Discussion
Get row accessor for provided row index
Declared In
GridPanel.h
– initWithGrid:cellType:rows:cols:
Initialize an object for GridPanel.
- (id _Nonnull)initWithGrid:(FlexGrid *_Nonnull)grid cellType:(GridCellType)cellType rows:(GridRowCollection *_Nonnull)rows cols:(GridColumnCollection *_Nonnull)cols
Parameters
grid |
the specified grid. |
---|---|
cellType |
the specified cellType. |
rows |
the specified rows. |
cols |
the specified columns. |
Return Value
an object for GridPanel.
Discussion
Initialize an object for GridPanel.
Declared In
GridPanel.h
cellType
Gets the type of cell contained in this panel.
@property (readonly) GridCellType cellType
Discussion
Gets the type of cell contained in this panel.
Declared In
GridPanel.h
width
Gets the total width of the content in this panel.
@property (readonly) int width
Discussion
Gets the total width of the content in this panel.
Declared In
GridPanel.h
height
Gets the total height of the content in this panel.
@property (readonly) int height
Discussion
Gets the total height of the content in this panel.
Declared In
GridPanel.h
offsetX
Gets the X offset of the content in this panel.
@property (readonly) int offsetX
Discussion
Gets the X offset of the content in this panel.
Declared In
GridPanel.h
offsetY
Gets the Y offset of the content in this panel.
@property (readonly) int offsetY
Discussion
Gets the Y offset of the content in this panel.
Declared In
GridPanel.h
rows
Gets the grid’s rows collection.
@property (readonly) GridRowCollection *rows
Discussion
Gets the grid’s rows collection.
Declared In
GridPanel.h
columns
Gets the grid’s columns collection.
@property (readonly) GridColumnCollection *columns
Discussion
Gets the grid’s columns collection.
Declared In
GridPanel.h
viewRange
Gets the range of cells currently in view.
@property (readonly) GridCellRange *viewRange
Discussion
Gets the range of cells currently in view.
Declared In
GridPanel.h
font
Gets the font.
@property (readonly) UIFont *font
Discussion
Gets the font.
Declared In
GridPanel.h
fillColor
Gets the fillColor.
@property (readonly) UIColor *fillColor
Discussion
Gets the fillColor.
Declared In
GridPanel.h
textColor
Gets the textColor.
@property (readonly) UIColor *textColor
Discussion
Gets the textColor.
Declared In
GridPanel.h
lineColor
Gets the lineColor.
@property (readonly) UIColor *lineColor
Discussion
Gets the lineColor.
Declared In
GridPanel.h
lineWidth
Gets the lineWidth.
@property (readonly) double lineWidth
Discussion
Gets the lineWidth.
Declared In
GridPanel.h
textAttributes
Gets the textAttributes.
@property (readonly) NSMutableDictionary *textAttributes
Discussion
Gets the textAttributes.
Declared In
GridPanel.h
– setCellData:forRow:inColumn:
Set data of cell with parameters.
- (void)setCellData:(NSObject *_Nullable)value forRow:(int)r inColumn:(int)c
Parameters
value |
the specified value. |
---|---|
r |
the specified row. |
c |
the specified column. |
Discussion
Set data of cell with parameters.
Declared In
GridPanel.h
– getCellDataForRow:inColumn:formatted:
Get cell data for row.
- (NSObject *_Nullable)getCellDataForRow:(int)r inColumn:(int)c formatted:(BOOL)formatted
Parameters
r |
the specified row. |
---|---|
c |
the specified column. |
formatted |
whether is formatted. |
Return Value
a NSObject value.
Discussion
Get cell data for row.
Declared In
GridPanel.h
– getCellRectForRow:inColumn:
Get cell rect for row.
- (CGRect)getCellRectForRow:(int)r inColumn:(int)c
Parameters
r |
the specified row. |
---|---|
c |
the specified column. |
Return Value
a rect.
Discussion
Get cell rect for row.
Declared In
GridPanel.h
– getCellRectForRow:inColumn:withMergeRange:
Get cell rect for row.
- (CGRect)getCellRectForRow:(int)r inColumn:(int)c withMergeRange:(GridCellRange *_Nullable)range
Parameters
r |
the specified row. |
---|---|
c |
the specified column. |
range |
the specified merge range. |
Return Value
a rect.
Discussion
Get cell rect for row.
Declared In
GridPanel.h
– drawCellForRow:inColumn:withBackground:
Draw cell for row.
- (void)drawCellForRow:(int)r inColumn:(int)c withBackground:(BOOL)b
Parameters
r |
the specified row. |
---|---|
c |
the specified column. |
b |
whether is with background. |
Discussion
Draw cell for row.
Declared In
GridPanel.h
– drawCellForRow:inColumn:withBackground:andForeground:
Draw cell for row.
- (void)drawCellForRow:(int)r inColumn:(int)c withBackground:(BOOL)b andForeground:(BOOL)f
Parameters
r |
the specified row. |
---|---|
c |
the specified column. |
b |
whether is with background. |
f |
whether is with foreground. |
Discussion
Draw cell for row.
Declared In
GridPanel.h
– drawCellBackgroundForRow:inColumn:withRect:andRange:
Draw cell background for row.
- (void)drawCellBackgroundForRow:(int)r inColumn:(int)c withRect:(CGRect)t andRange:(GridCellRange *_Nullable)range
Parameters
r |
r the specified row. |
---|---|
c |
the specified column. |
t |
the specified rect. |
range |
the specified merge range. |
Discussion
Draw cell background for row.
Declared In
GridPanel.h
– drawCellBackgroundForRow:inColumn:withRect:andRange:assumingCustomBGColor:
Draw cell background for row.
- (void)drawCellBackgroundForRow:(int)r inColumn:(int)c withRect:(CGRect)t andRange:(GridCellRange *_Nullable)range assumingCustomBGColor:(UIColor *_Nonnull)customBgClr
Parameters
r |
r the specified row. |
---|---|
c |
the specified column. |
t |
the specified rect. |
range |
the specified merge range. |
customBgClr |
the specified custom background color |
Discussion
Draw cell background for row.
Declared In
GridPanel.h
– isColLeftVisible:
Determine if the left border of the column is visible.
- (BOOL)isColLeftVisible:(int)c
Parameters
c |
the column index. |
---|
Return Value
a boolean value.
Discussion
Determine if the left border of the column is visible.
Declared In
GridPanel.h
– isColRightVisible:
Determine if the right border of the column is visible.
- (BOOL)isColRightVisible:(int)c
Parameters
c |
the column index. |
---|
Return Value
a boolean value.
Discussion
Determine if the right border of the column is visible.
Declared In
GridPanel.h
– isRowTopVisible:
Determine if the top border of the row is visible.
- (BOOL)isRowTopVisible:(int)r
Parameters
r |
the row index. |
---|
Return Value
a boolean value.
Discussion
Determine if the top border of the row is visible.
Declared In
GridPanel.h
– isRowBottomVisible:
Determine if the bottom border of the row is visible.
- (BOOL)isRowBottomVisible:(int)r
Parameters
r |
the row index. |
---|
Return Value
a boolean value.
Discussion
Determine if the bottom border of the row is visible.
Declared In
GridPanel.h
– resetCache:
Reset cache for a particular row or column.
- (void)resetCache:(GridRowCol *_Nullable)rc
Parameters
rc |
the FlexRowCol to reset. |
---|
Discussion
Reset cache for a particular row or column.
Declared In
GridPanel.h
– drawSelection
Draw selection.
- (void)drawSelection
Discussion
Draw selection.
Declared In
GridPanel.h
– frozenPoint
Get frozen point.
- (CGPoint)frozenPoint
Return Value
a frozen point.
Discussion
Get frozen point.
Declared In
GridPanel.h
– getClipRect
Get the panel’s clipping rectangle.
- (CGRect)getClipRect
Return Value
a rect.
Discussion
Get the panel’s clipping rectangle.
Declared In
GridPanel.h
– getAdorner:
Internal, get the adorner.
- (int)getAdorner:(CGPoint)pt
Parameters
pt |
the point of the adorner. |
---|
Discussion
Internal, get the adorner.
Declared In
GridPanel.h
– getFirstVisibleColumn
Internal, get the first visible column index.
- (int)getFirstVisibleColumn
Return Value
the index.
Discussion
Internal, get the first visible column index.
Declared In
GridPanel.h
– getFirstVisibleRow
Internal, get the first visible row index..
- (int)getFirstVisibleRow
Return Value
the index.
Discussion
Internal, get the first visible row index..
Declared In
GridPanel.h
– getGroupRowHeader:
Internal, get the group row header..
- (NSString *_Nullable)getGroupRowHeader:(int)row
Parameters
row |
the group row index. |
---|
Return Value
the group row header.
Discussion
Internal, get the group row header..
Declared In
GridPanel.h