TLayer32.Parent

property Parent: TLayer32; //read only


Every layer must belong to another layer, except TLayeredImage32.Root. Whenever a layer is added (see TLayeredImage32.AddLayer), if a Parent isn't specified, it's automatically assigned as a child of TLayeredImage32.Root.

Layer groups makes it much easier to manage collections of layers (eg designer button groups), whether constructing or moving or deleting them. And it also allows for more efficient rendering as only groups with modifications will need to be recombined during merging operations.

See Also

TLayeredImage32.AddLayer, TLayeredImage32.Root