示例#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));
        }
示例#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);
        }
示例#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));
        }
示例#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));
        }
示例#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);
        }
示例#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);
        }
示例#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);
        }