Open.Core.Css.SetDisplay C# (CSharp) Method

SetDisplay() public static method

Shows or hides the given element using the Display property (collapses when not visible).
public static SetDisplay ( jQueryObject element, bool isVisible ) : jQueryObject
element jQueryObject The element to effect.
isVisible bool The desired visibility state.
return jQueryObject
        public static jQueryObject SetDisplay(jQueryObject element, bool isVisible)
        {
            if (element != null) element.CSS(Display, isVisible ? Block : None);
            return element;
        }