ComponentFactory.Krypton.Toolkit.ButtonSpec.Clone C# (CSharp) Method

Clone() public method

Make a clone of this object.
public Clone ( ) : object
return object
        public virtual object Clone()
        {
            ButtonSpec clone = (ButtonSpec)Activator.CreateInstance(base.GetType());
            clone.Image = Image;
            clone.ImageTransparentColor = ImageTransparentColor;
            clone.Text = Text;
            clone.ExtraText = ExtraText;
            clone.ToolTipImage = ToolTipImage;
            clone.ToolTipImageTransparentColor = ToolTipImageTransparentColor;
            clone.ToolTipTitle = ToolTipTitle;
            clone.ToolTipBody = ToolTipBody;
            clone.ToolTipStyle = ToolTipStyle;
            clone.UniqueName = UniqueName;
            clone.AllowInheritImage = AllowInheritImage;
            clone.AllowInheritText = AllowInheritText;
            clone.AllowInheritExtraText = AllowInheritExtraText;
            clone.AllowInheritToolTipTitle = AllowInheritToolTipTitle;
            clone.ColorMap = ColorMap;
            clone.Style = Style;
            clone.Orientation = Orientation;
            clone.Edge = Edge;
            clone.ContextMenuStrip = ContextMenuStrip;
            clone.KryptonContextMenu = KryptonContextMenu;
            clone.KryptonCommand = KryptonCommand;
            clone.Owner = Owner;
            clone.Tag = Tag;
            return clone;
        }