# win.ui.ctrl.mCtrl.gridTable 库模块帮助文档

## mCtrlGridTableObject 成员列表 <a id="mCtrlGridTableObject" href="#mCtrlGridTableObject">&#x23;</a>

### mCtrlGridTableObject.addRef() <a id="mCtrlGridTableObject.addRef" href="#mCtrlGridTableObject.addRef">&#x23;</a>
增加引用计数

### mCtrlGridTableObject.clear(行总数,列总数) <a id="mCtrlGridTableObject.clear" href="#mCtrlGridTableObject.clear">&#x23;</a>
清空表格,  
不指定清空全部内容  
| 1 清空普通单元格,  
| 2 清空列标题  
| 4 清空行标题

### mCtrlGridTableObject.columnCount() <a id="mCtrlGridTableObject.columnCount" href="#mCtrlGridTableObject.columnCount">&#x23;</a>
列总数

### mCtrlGridTableObject.getCell(行号,列号) <a id="mCtrlGridTableObject.getCell" href="#mCtrlGridTableObject.getCell">&#x23;</a>
返回指定列的MC_TABLECELL结构体  
行号省略表示列标题，列号省略表示行标题

### mCtrlGridTableObject.getCellTextl(行号,列号) <a id="mCtrlGridTableObject.getCellTextl" href="#mCtrlGridTableObject.getCellTextl">&#x23;</a>
返回指定列的文本  
行号省略表示列标题，列号省略表示行标题

### mCtrlGridTableObject.release() <a id="mCtrlGridTableObject.release" href="#mCtrlGridTableObject.release">&#x23;</a>
减少引用计数

### mCtrlGridTableObject.resize(行总数,列总数) <a id="mCtrlGridTableObject.resize" href="#mCtrlGridTableObject.resize">&#x23;</a>
调整表格大小

### mCtrlGridTableObject.rowCount() <a id="mCtrlGridTableObject.rowCount" href="#mCtrlGridTableObject.rowCount">&#x23;</a>
行总数

### mCtrlGridTableObject.setCell(行号,列号,MC_TABLECELL结构体) <a id="mCtrlGridTableObject.setCell" href="#mCtrlGridTableObject.setCell">&#x23;</a>
设置格列，参数@3为MC_TABLECELL结构体  
行号省略表示列标题，列号省略表示行标题

### mCtrlGridTableObject.setCellAlign(行号,列号,对齐选项) <a id="mCtrlGridTableObject.setCellAlign" href="#mCtrlGridTableObject.setCellAlign">&#x23;</a>
设置对齐选项,  
参数@3应使用一个表指定对齐方式,  
对齐表可用left,right,center指定水平对齐选项  
可用top bottom,middle指定垂直对齐选项  
指定的对齐选项字段值为真时使用该对齐方式

### mCtrlGridTableObject.setCellText(行号,列号,文本) <a id="mCtrlGridTableObject.setCellText" href="#mCtrlGridTableObject.setCellText">&#x23;</a>
设置列文本  
行号省略表示列标题，列号省略表示行标题
