CODComponent::GetProperty

CODProperty*CODComponent::GetProperty(intnId, CODProperty&prop, CODProperty*pPropOut, const BOOLbSearchParents= FALSE)

Returns a component property.

Defined in: OdComponent.cpp

Return Value

For the first overload, a pointer to the requested property (NULL if the property was not found). For the other two versions, it returns non-zero if the property is found; otherwise zero.

Parameters

nId

Property type ID for the property of interest.

prop

Reference to output property object.

pPropOut

Property with which matching properties will be merged.

bSearchParents

Non-zero if the parents are to be searched; otherwise zero.

See Also

CODEditProperties  CODFillProperties  CODFontProperties  CODLineProperties  CODProperty