Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

文本对象

  • Last UpdatedSep 24, 2024
  • 1 minute read

可以为文本对象指定以下元素。

元素

描述

标题

对象名。可选。

TextString

显示的文本字符串。必需。如果为 TextString 元素指定了无效的值或该元素缺少值,则不会创建文本对象。

TextInfo

定义文本的显示方式。

旋转

定义文本的方向,以度为单位。可能的值为:{0, 90, 180, 270}。默认为 0。

动画链接

可选的动画链接列表。

维数

对象的位置和大小。元素为 top、left、width、height。top、left、width 和 height 值以像素为单位。生成的坐标必须在 -32000 到 +32000 之间。width 和 height 都不能为 0。必需。如果为 Dimension 元素指定了无效的值或该元素缺少值,则不会创建对象。

示例:

<Text>

<Title>text1</Title>

<TextString>This is some text to display</TextString>

<Dimension>

<Left>100</Left><Top>50</Top>

<Width>270</Width><Height>80</Height>

</Dimension>

<TextInfo>

<Font>Arial</Font>

<FontStyle>Regular</FontStyle>

<FontSize>12</FontSize>

<Underline>false</Underline>

<Strikeout>false</Strikeout>

<TextColor>

<R>0</R>

<G>0</G>

<B>0</B>

</TextColor>

<TextJustify>Left</TextJustify>

</TextInfo>

<Rotation>0</Rotation>

<AnimationLinks>

</AnimationLinks>

</Text>

最简示例:

<Text>

<TextString>This is some text to display</TextString>

<Dimension>

<Left>100</Left><Top>50</Top>

<Width>270</Width><Height>80</Height>

</Dimension>

</Text>

Related Links