API Reference > Namespaces > OdPdfPublish Namespace > Classes > OdText Class > OdText Methods > OdText::setLayer Method
OdText::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 text object.

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

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