Open this page in the API Guide

ViewPanel.isExpanded Property

Gets the value indicating whether or not this viewpanel is expanded