ExportStyle Method

NI Vision for Visual Basic

ExportStyle Method

Syntax

Object.ExportStyle FileName

Applies To

CWIMAQ

CWIMAQViewer

Purpose

Exports the style of the NI Vision control to a file.

Remarks

A style is the complete current state of a control.

Use ExportStyle to save the style of a control after you have configured it. If you often create a new CWIMAQViewer control and set properties such as zoom scale and colors, you can save the style of a viewer after configuring it. Then, when you want to create a viewer of the same style, create a new viewer and import the exported style.

Parameters

FileName As String

The name of the style file to save.

Example

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

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

See Also

ImportStyle