Beispiel #1
0
        /// <summary>
        /// Sets the element's visible.
        /// </summary>
        /// <param name="gf"></param>
        public static void SetExtrusionVisible(this GenericForm gf)
        {
            var visibility = gf.GetVisibility();

            // No display on plane view.
            visibility.IsShownInTopBottom = false;

            gf.SetVisibility(visibility);
        }
Beispiel #2
0
        /// <summary>
        ///     Sets the element's visible.
        /// </summary>
        /// <param name="gf"></param>
        public static void SetExtrusionVisible(this GenericForm gf)
        {
            if (gf == null)
            {
                throw new ArgumentNullException(nameof(gf));
            }

            var visibility = gf.GetVisibility();

            // No display on plane view.
            visibility.IsShownInTopBottom = false;

            gf.SetVisibility(visibility);
        }