All Cadcorp SIS API Methods

CopyThemeComponent Method

Description

Copies an existing Theme component into the currently loaded Theme. Use LoadTheme to load a Theme for editing.

Syntax

Visual Basic
Public Function CopyThemeComponent( _
   ByVal componentTo As Integer, _
   ByVal componentFrom As Integer, _
   ByVal theme As String _
) As Integer

Parameters

componentTo

The component to copy into.
 
componentFrom
The component to copy from.
 
theme
The Theme from which to copy the component. Use "" to copy a component in the currently loaded Theme.

Remarks

Several types of theme consist of several components, e.g. blocks in a Bar Charts theme, slices in a Pie Charts theme, and so on. Each of these components has its own properties. Theme component properties are set and queried using the SIS_OT_THEMECOMPONENT constant. Theme component indices run from zero to one less than the number of theme components.

Available: GEO D OD OM SISpy

Group:

Example

sis.CopyThemeComponent (1, 1, "Population")