IVisualizationStyle.GetFont (METH)

METHOD GetFont : VisuStructFont

This method searches for a style entry of type Font and returns the according value if found. The returned font evaluates the style entry ‘Font-Default-Color’ for determination of the color. If this setting is not defined, the returned font will use the black color.

InOut:

Scope

Name

Type

Comment

Return

GetFont

VisuStructFont

Input

stStyleKey

STRING

The name of the style entry to seach for.

fontDefault

VisuStructFont

The default value to use if the entry is not found.

pOptResult

POINTER TO UDINT

An optional result error code. Common result values are Errors.ERR_OK if a valid style was found or Errors.ERR_INVALIDID if no style entry was found. In this case, the method will return the default value.