后浪云鸿蒙OS教程:鸿蒙OS TableLayoutManager

TableLayoutManager

java.lang.Object

|—ohos.agp.components.LayoutManager

|—|—ohos.agp.components.TableLayoutManager

public class TableLayoutManager
extends LayoutManager

表示 ListContainer 对象的表布局管理器。

Since:

5

构造函数摘要

构造函数描述
TableLayoutManager()用于创建 TableLayoutManager 实例的默认构造函数。

方法总结

修饰符和类型方法描述
intgetColumnCount()获取表中的列数。
intgetRowCount()获取表中的行数。
voidsetColumnCount(int columnCount)设置表中的列数。
voidsetRowCount(int rowCount)设置表中的行数。
从类 ohos.agp.components.LayoutManager 继承的方法
getOrientation, setOrientation
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

构造函数详细信息

TableLayoutManager

public TableLayoutManager()

用于创建 TableLayoutManager 实例的默认构造函数。

Since:

5

方法详情

setColumnCount

public void setColumnCount(int columnCount)

设置表中的列数。

参数:

参数名称参数描述
columnCount表示列数。

Since:

5

getColumnCount

public int getColumnCount()

获取表中的列数。

返回:

返回列数。

Since:

5

setRowCount

public void setRowCount(int rowCount)

设置表中的行数。

参数:

参数名称参数描述
rowCount表示行数。

Since:

5

getRowCount

public int getRowCount()

获取表中的行数。

返回:

返回行数。

Since:

5

文章来源网络,作者:运维,如若转载,请注明出处:https://shuyeidc.com/wp/173220.html<

(0)
运维的头像运维
上一篇2025-03-23 16:41
下一篇 2025-03-23 16:42

相关推荐

发表回复

您的邮箱地址不会被公开。必填项已用 * 标注