ImportStyle Method

NI Vision for Visual Basic

ImportStyle Method

Syntax

Object.ImportStyle FileName

Applies To

CWIMAQ

CWIMAQViewer

Purpose

Imports a previously exported style.

Remarks

By default, NI Vision for Visual Basic style files have a .cwx extension.

Parameters

FileName As String

The name of the style file to load.

Example

' export a style
CWIMAQViewer1.ExportStyle "c:\Style1.cwx"

' import a style into CWIMAQViewer2
CWIMAQViewer2.ImportStyle "c:\Style2.cwx"

See Also

ExportStyle