API Reference > Namespaces > OdPdfPublish Namespace > Classes > OdAnnotation Class > OdAnnotation Methods > OdAnnotation::setPropertyToTextField Method
OdAnnotation::setPropertyToTextField Method
Syntax
C++
void setPropertyToTextField(const OdString& property_name, const OdTextFieldPtr text_fields);
Parameters 
Description 
const OdString& property_name 
[in] A property name to be displayed.  
const OdTextFieldPtr text_fields 
[in] A smart pointer to a text field that displays the property value. 

Displays the property value of the selected node to a specified text field. The property to be displayed is defined by its name.

If the selected node of the annotation does not have a property with the specified name, the text box object remains empty.

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