Beispiel #1
0
        /// <summary>Gets the size for the expander.</summary>
        /// <param name="control">The control.</param>
        /// <returns>The <see cref="Size" />.</returns>
        public static Size GetSize(Control control)
        {
            Expander _expander = GetExpander(control);

            return(_expander?.Size ?? new Size(0, 0));
        }
Beispiel #2
0
        /// <summary>Gets the expanded state from the expander.</summary>
        /// <param name="control">The control.</param>
        /// <returns>The <see cref="bool" />.</returns>
        public static bool GetState(Control control)
        {
            Expander _expander = GetExpander(control);

            return(_expander?.State ?? false);
        }
Beispiel #3
0
        /// <summary>Gets the position for the expander.</summary>
        /// <param name="control">The control.</param>
        /// <returns>The <see cref="Point" />.</returns>
        public static Point GetPosition(Control control)
        {
            Expander _expander = GetExpander(control);

            return(_expander?.Location ?? new Point(0, 0));
        }
Beispiel #4
0
        /// <summary>Gets the original size from the expander.</summary>
        /// <param name="control">The control.</param>
        /// <returns>The <see cref="Size" />.</returns>
        public static Size GetOriginal(Control control)
        {
            Expander _expander = GetExpander(control);

            return(_expander?.Original ?? new Size(0, 0));
        }
Beispiel #5
0
        /// <summary>Gets the cursor from the expander.</summary>
        /// <param name="control">The control.</param>
        /// <returns>The <see cref="Cursor" />.</returns>
        public static Cursor GetCursor(Control control)
        {
            Expander _expander = GetExpander(control);

            return(_expander?.Cursor ?? Cursors.Hand);
        }
Beispiel #6
0
        /// <summary>Gets the contracted height from the expander.</summary>
        /// <param name="control">The control.</param>
        /// <returns>The <see cref="int" />.</returns>
        public static int GetContractedHeight(Control control)
        {
            Expander _expander = GetExpander(control);

            return(_expander?.ContractedHeight ?? 0);
        }
Beispiel #7
0
        /// <summary>Gets the back color from the expander.</summary>
        /// <param name="control">The control.</param>
        /// <returns>The <see cref="Color" />.</returns>
        public static Color GetColor(Control control)
        {
            Expander _expander = GetExpander(control);

            return(_expander?.Color ?? DefaultBackColor);
        }