PageSendLayerToPosΒΆ
PageSendLayerToPos moves a layer to the specified position inside a page.
- bool = PageSendLayerToPos(hPage, hLayer, nPos)
Return Value
bool is TRUE (1) if the function was successful and otherwise FALSE (0).
Parameters
- hPage
hPage is the page handle.
- hLayer
hLayer is the layer handle. The background cannot be moved.
- nPos
nPos is the new position. nPos = 1 moves the layer to the back and nPos = 255 moves the page to the top of the layer stack.
Example
Move the second layer to the bottom
hvLayer = PageGetAllDataLayers(hPage);
if (len(hvLayer) >= 2) {
PageSendLayerToPos(hPage, hvLayer[2], 1);
}
Version |
Decription |
---|---|
R2013.0 |
Documentation added. |
id-98501