API Reference > OdRx Classes > OdRxDisplayAsAttribute Class > OdRxDisplayAsAttribute Methods > OdRxDisplayAsAttribute::getDisplayValue Method
OdRxDisplayAsAttribute::getDisplayValue Method
Syntax
C++
virtual OdString getDisplayValue(OdRxValue& value, bool useDynamicProperties = true);
Parameters 
Description 
OdRxValue& value 
[in] Value to dereference and retrieve the property of.  
bool useDynamicProperties = true 
[in] Flag to optimize getting the displayed value. It can be set to false only if all properties of database objects are statically dependent on the object type. Default value is true. 

Name of the property of the dereferenced object to use instead of the object ID. If the value type is not a reference or the referenced object has no such property, returns an empty string.

By default this function dereferences the value and retrieves the property which name is stored in the attribute. 

 

Can be overloaded in custom implementations.

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