コード例 #1
0
        /// <summary>
        /// Returns the copy of the style.
        /// </summary>
        /// <returns>Copy of the style.</returns>
        public new TreeButtonVisualStyle Copy()
        {
            TreeButtonVisualStyle style = new TreeButtonVisualStyle();

            CopyTo(style);

            return (style);
        }
コード例 #2
0
        /// <summary>
        /// Returns the copy of the style.
        /// </summary>
        /// <returns>Copy of the style.</returns>
        public void CopyTo(TreeButtonVisualStyle copy)
        {
            base.CopyTo(copy);

            if (_CollapseButton != null)
                copy.CollapseButton = _CollapseButton.Copy();

            if (_ExpandButton != null)
                copy.ExpandButton = _ExpandButton.Copy();
        }
コード例 #3
0
        /// <summary>
        /// Applies the style to instance of this style.
        /// </summary>
        /// <param name="style">Style to apply.</param>
        public void ApplyStyle(TreeButtonVisualStyle style)
        {
            if (style != null)
            {
                base.ApplyStyle(style);

                if (style._CollapseButton != null)
                    CollapseButton.ApplyStyle(style._CollapseButton);

                if (style._ExpandButton != null)
                    ExpandButton.ApplyStyle(style._ExpandButton);
            }
        }