| << 点击显示目录 >> 主页 mappView帮助助手 > mapp View帮助信息 > 工程 > 事件和行动 > 行动 > Client actions > ScrollContent | 
这个动作用于滚动浏览在布局的较小区域内引用的大型内容。
| Attribute | Value | Description | 
| xsi:type | clientSystem.Action | 
 | 
| Attribute | Data type or value | 描述 | 
| xsi:type | clientSystem.Action.ScrollContent | 
 | 
| contentId | 应该被滚动的内容的ID。 | |
| position | top bottom left right | 该片内容应滚动到的位置。 | 
| duration (optional) | Integer | 指定启用软滚动的时间长度(以毫秒计)。 如果没有指定时间长度,则使用0值。 | 
动作ScrollContent返回一个BOOL类型的结果。
| Results | Value | 
| Scrolling successful | true | 
| Scrolling failed | false | 
这个动作可以在事件处理程序的顺序或平行动作中使用。
ScrollContent动作是同步进行的(定义的持续时间不重要);该动作的返回值显示该动作是否可以被执行(widget是存在的)。
滚动一段内容,持续时间为2秒。
<Target xsi:type="clientSystem.Action">
    <Method xsi:type="clientSystem.Action.ScrollContent" contentId="Content2" position="top" duration="2000" />
</Target>