ExportStyle Method
Syntax
Object.ExportStyle FileName
Applies To
Purpose
Exports the style of the control to a .cwx 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. 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 save.
Example
'Export a style
CWGraph3D1.ExportStyle "c:\LogGraph.cwx"
'Import a style into graph2
CWGraph3D2.ImportStyle "c:\LinearGraph.cwx"