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

AVEVA™ Plant SCADA

AttributeTextStyle

  • Last UpdatedJul 13, 2023
  • 1 minute read

Sets a specific text style, or retrieves the current text style setting.

Syntax

AttributeTextStyle(TextStyle)

TextStyle:

A value depicting text style:

0 = normal

1 = bold

2 = italic

4 = underline

8 = strikeout

You can superimpose styles by adding the above values.

Return Value

If retrieving the current text style, a value between 0 and 8 depicting the applied style. If applying a text style, 0 (zero) if successful. In both cases, an error is returned if unsuccessful. If values are out of range on writing to the attribute, the function will exit and report the error E_INVALIDARG. If there is no active text object, these functions throw an exception with a return value of E_HANDLE.

Note: For details on handling return and error values, see Error Handling.

AttributeText, AttributeTextJustification, AttributeTextFont, AttributeTextFontSize, AttributeTextColour

Example

' Sets the normal text style
GraphicsBuilder.AttributeTextStyle = 0

' Retrieves the current text style setting
MyVariable = GraphicsBuilder.AttributeTextStyle

Note: This function is implemented in the C++ environment as two separate functions: put_AttributeTextStyle applies a style to the currently selected text, and get_AttributeTextStyle retrieves the current text style setting.

In This Topic
TitleResults for “How to create a CRG?”Also Available in