LayerCreateΒΆ

LayerCreate creates a new diagram.

hLayer = LayerCreate()
hLayer = LayerCreate(hLayerOther)

Return Value

hLayer identifies the newly created diagram.

Parameters

hLayerOther

If hLayerOther is a valid layer object handle the functions creates a new object as a copy of the given object. If hLayerOther is set to 0 a layer object with default settings is created.

Example

hDoc = DocCreate();
hPage = PageCreate();
hLayer = LayerCreate();
DocAddPage(hDoc, hPage);
PageAddLayer(hPage, hLayer);
PageReplot(hPage);

History

Version Description
5.7.0 hLayerOther can be set to 0.
4.2.7 Function can be invoked with one parameter (copy constructor). The copy constructor will not copy datasets or drawing objects.

id-182331