CODEditProperties::SetValue

Sets the value of the given property.

Defined in: OdEditProp.cpp

Syntax

BOOL CODEditProperties::SetValue(const int nPropId, LPCTSTR lpszValue)

BOOL CODEditProperties::SetValue(const int nPropId, const int nValue)

BOOL CODEditProperties::SetValue(const int nPropId, const UINT nValue)

BOOL CODEditProperties::SetValue(const int nPropId, const DWORD dwValue)

BOOL CODEditProperties::SetValue(const int nPropId, const float fValue)

Return Value

TRUE if the property identifier is supported by this property container. FALSE if the property identifier is invalid.

Parameters

nPropId

ID of property to set.

lpszValue

Input value to assign to the specified property.

nValue

Input value to assign to the specified property.

nValue

Input value to assign to the specified property.

dwValue

Input value to assign to the specified property.

fValue

Input value to assign to the specified property.

Comments

See  Edit Property Identifiers for a list property IDs supported. This function will throw a  CODPropertyConversionException exception if the data type of the argument passed in is not compatible with the given property identifier.