API Reference > Namespaces > OdPdfPublish Namespace > Classes > OdTextField Class > OdTextField Methods > OdTextField::setLock Method
OdTextField::setLock Method
Syntax
C++
void setLock(bool state);
Parameters 
Description 
bool state 
[in] A new flag value. 

Sets a new value of the flag that determines whether the text field is locked. If the flag value is equal to true, the text field is locked and becomes disabled, otherwise it is enabled and unlocked. 

 

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