Ets_Ctl_Table_Row_Center()

注意: 需要 OPNET Development Kit

摘要

定位行,使其在表格控件中垂直居中。

语法

Ets_Ctl_Table_Row_Center (table_ctl_ptr, row)
参数 类型 说明
table_ctl_ptr EtsT_Ctl * 指向目标表格控件的指针
row int 要居中的行的行号

返回类型

EtsT_Compcode

若表格和行存在,返回 EtsC_Compcode_Success;否则返回 EtsC_Compcode_Failure。

头文件

ets_api_gui.h

详情

此函数滚动表格,使给定行在表格控件中居中。如果居中会导致表格顶部或底部出现空白,则可能不会精确居中。但可以保证指定行至少会出现在可视范围内。

若要以最小滚动量显示该行(不一定居中),参见 Ets_Ctl_Table_Row_Show()。

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com