CODFontProperties::SetValue

Sets the value of the given property.

Defined in: OdFontProp.cpp

Syntax

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

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

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

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

BOOL CODFontProperties::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 Font 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.