跳到主要内容
版本:3.0.x

Class DefaultTableData

表格行数据抽象的默认实现,提供便捷的单元格添加方法

Assembly: YooAsset.Editor.dll
View Source
Declaration
public class DefaultTableData : ITableData

Properties

Visible

是否可见

View Source
Declaration
public bool Visible { get; set; }

Cells

单元格集合

View Source
Declaration
public IList<ITableCell> Cells { get; }

Methods

AddCell(ITableCell)

添加自定义单元格

View Source
Declaration
public void AddCell(ITableCell cell)
Parameters
TypeNameDescription
YooAsset.Editor.ITableCellcell要添加的单元格实例

AddButtonCell(string)

添加按钮单元格

View Source
Declaration
public void AddButtonCell(string searchTag)
Parameters
TypeNameDescription
System.StringsearchTag用于搜索匹配的标签标识

AddAssetPathCell(string, string)

添加资源路径单元格

View Source
Declaration
public void AddAssetPathCell(string searchTag, string assetPath)
Parameters
TypeNameDescription
System.StringsearchTag用于搜索匹配的标签标识
System.StringassetPath资源在项目中的路径

AddAssetObjectCell(string, string)

添加资源对象单元格

View Source
Declaration
public void AddAssetObjectCell(string searchTag, string assetPath)
Parameters
TypeNameDescription
System.StringsearchTag用于搜索匹配的标签标识
System.StringassetPath资源在项目中的路径

AddStringValueCell(string, string)

添加字符串单元格

View Source
Declaration
public void AddStringValueCell(string searchTag, string value)
Parameters
TypeNameDescription
System.StringsearchTag用于搜索匹配的标签标识
System.Stringvalue字符串值

AddLongValueCell(string, long)

添加长整数单元格

View Source
Declaration
public void AddLongValueCell(string searchTag, long value)
Parameters
TypeNameDescription
System.StringsearchTag用于搜索匹配的标签标识
System.Int64value长整数值

AddDoubleValueCell(string, double)

添加双精度浮点单元格

View Source
Declaration
public void AddDoubleValueCell(string searchTag, double value)
Parameters
TypeNameDescription
System.StringsearchTag用于搜索匹配的标签标识
System.Doublevalue双精度浮点值

AddBoolValueCell(string, bool)

添加布尔单元格

View Source
Declaration
public void AddBoolValueCell(string searchTag, bool value)
Parameters
TypeNameDescription
System.StringsearchTag用于搜索匹配的标签标识
System.Booleanvalue布尔值

Implements