Since this question is tagged as C++, I'll add the docs link to the dedicated functions that return and set this attribute:
BaseObject::GetDeformMode() and BaseObject::SetDeformMode()