ImportStyle Method
Syntax
Object.ImportStyle FileName
Applies To
Purpose
Imports a previously exported style to the control.
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. For example, if you often create a new CWGraph3D control and set properties such as tick colors, axes ranges, and background colors, you can save the style of a graph once you have configured it. When you want to create a graph of the same style, create a new graph, access the property pages, and import the exported style.
You can import or export a style from the right click menu or set it programmatically using ExportStyle and ImportStyle.
Parameters
FileName As String
The name of the style file to load.
Example
'Export a style
CWGraph3D1.ExportStyle "c:\LogGraph.cwx"
'Import a style into graph2
CWGraph3D2.ImportStyle "c:\LinearGraph.cwx"