API bug or bad documentation?

Using the Solidworks application CommandCloseNotify delegate. The signature is:

private int CommandClosedHandler(int Command, int reason)

The documentation states that reason is swPropertyManagerPageCloseReasons_e Enumeration.

The values are:

MemberDescription
swPropertyManagerPageClose_Apply6
swPropertyManagerPageClose_Cancel2
swPropertyManagerPageClose_Closed4
swPropertyManagerPageClose_Okay1
swPropertyManagerPageClose_ParentClosed3
swPropertyManagerPageClose_Preview7
swPropertyManagerPageClose_UnknownReason0
swPropertyManagerPageClose_UserEscape5
​​​​​​​


The values I get in the handler are negative, consistent and don't match up to the documentation. For instance, if I close the command using the green checkmark I get a value of -2. I always get a value of -2. Even if this were supposed to be  a 2 then that would correspond to swPropertyManagerPageClose_Cancel and not swPropertyManagerPageClose_Okay or swPropertyManagerPageClose_Apply

Bug?

Bad dcumentation?