CurrentLayerId
<< Click to Display Table of Contents >> Navigation: TMyCAD > Properties > CurrentLayerId |
property CurrentLayerId :integer;
Description:
Get the current layer's ID, it is start from 0; New shape(s) will belong to this layer.
Example:
MyCAD1.CurrentLayerID:=2;
ShowMessage (IntToStr('You are drawing on layerID:'+MyCAD1.CurrentLayerID));
MyCAD1.CurrentLayerID:=3;
ShowMessage (IntToStr('You are drawing on layerID:'+MyCAD1.CurrentLayerID));
// if there is no layerid is 3,MyCAD1.CurrentLayerID still equal 2
See also: