GH_IconDisplayMode of the application

I need to get the value of IconDisplayMode of the Component, which, however stays on “application”. I need to be able to read the real Display mode to use it in the overriden Render() function. Can I somehow get the current DisplayMode of the document?

if (Owner.IconDisplayMode == GH_IconDisplayMode.icon)
{
//only run when icons are shown
}
else if (Owner.IconDisplayMode == GH_IconDisplayMode.name)
{
//only run when names are shown

                }
if(IsIconMode(Owner.IconDisplayMode))
{
  // render icon
}
else
{
   // render text
}

IsIconMode is a static protected method of GH_Attributes. If Owner.IconDisplayMode == application, it uses the user setting from CentralSettings.CanvasObjectIcons.