Next: 3.5 Using Dialogs from Up: 3.4 Other Commands Previous: 3.4.2 Font related Commands   Index

3.4.3 Layer related Commands

CreateLayer(``name'')
Creates a new Layer with the Name ``name''.
DeleteLayer(``name'')
Deletes the Layer with the Name ``name''. Nothing happens if the Layer doesn't exists or if it's the only Layer in the Document.
GetActiveLayer()
Returns the Name of the current active Layer.
GetLayers()
Returns a List with the Names of all defined Layers.
IsLayerPrintable(``name'')
Returns wether the Layer ``layer'' is printable or not, a Value of 1 means that the Layer ``layer'' can be printed, a Value of 0 means that printing the Layer ``layer'' is disabled.
IsLayerVisible(``layer'')
Returns wether the Layer ``layer'' is visible or not, a Value of 1 means that the Layer ``layer'' is visible, a Value of 0 means that the Layer ``layer'' is invisible.
SentToLayer(``layer'', [``name''])
Sends the Object ``name'' to the Layer ``layer''. The Layer must exist. If ``name'' is not given the currently selected Item is used.
SetActiveLayer(``name'')
Sets the active Layer to the Layer named ``name''.
SetLayerPrintable(``layer'', flag)
Sets the Layer ``layer'' to be printable or not. A Value of 1 for ``flag'' means that the Layer ``layer'' can be printed, a Value of 0 means that printing the Layer ``layer'' is disabled.
SetLayerVisible(``layer'', flag)
Sets the Layer ``layer'' to be visible or not. A Value of 1 for ``flag'' means that the Layer ``layer'' is visible, a Value of 0 means that the Layer ``layer'' is invisible.

Next: 3.5 Using Dialogs from Up: 3.4 Other Commands Previous: 3.4.2 Font related Commands   Index