.. highlightlang:: us .. index:: OBJGetProtect .. _objgetprotect: OBJGetProtect ============= .. us.tag OBJGetProtect ENGLISH draw-get :ref:`OBJGetProtect` returns flags. .. function:: nProtect = OBJGetProtect(hobj) .. us.params **Parameters** .. uparam:: nProtect *nProtect* is a combination of attributes. See :ref:`OBJSetProtect`. .. uparam:: hobj *hobj* identifies a line, text, rectangle, ellipse or layer (diagram) object. :: if ((OBJGetProtect(hRect) & BL_HIDE) != BL_HIDE) { // not hidden } :: // switch off hidden: nProtect = OBJGetProtect(hRect); OBJSetProtect(hRect, nProtect & ~BL_HIDE); .. seealso:: :ref:`overview-drawing-objects`, :ref:`OBJSetProtect` :sub:`id-638689`