API Reference > Classes > OdTf Classes > OdTfProperty Class > OdTfProperty Methods > OdTfProperty::defaultItemValue Method
OdTfProperty::defaultItemValue Method
Syntax
C++
virtual OdTfVariant defaultItemValue() const = 0;

Returns the default value that should be used for the property instead of the OdTfVariant::kEmpty value.

Retrieves the current default value for the property.

For a single property, the method returns a value that should be used instead of the whole property. For an array property, the method returns a value that replaces all empty items. Note that the default value can also be equal to OdTfVariant::kEmpty.

Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.