API Reference > Namespaces > OdPdfPublish Namespace > Classes > Od2dGeometryReference Class > Od2dGeometryReference Methods > Od2dGeometryReference::setLayer Method
Od2dGeometryReference::setLayer Method
Syntax
C++
void setLayer(const Od2dGeometryLayerPtr& layer);
Parameters 
Description 
const Od2dGeometryLayerPtr& layer 
[in] A smart pointer to a PDF layer object. 

Sets a new PDF layer object for the geometry reference object.

If the smart pointer to a PDF layer object is null, it means that the reference object doesn't belong to any layer.

Copyright © 2002–2022. Open Design Alliance. All rights reserved.