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

CopyFrom() public method

Value copy from the provided source to ourself.
public CopyFrom ( ButtonSpec source ) : void
source ButtonSpec Source instance.
return void
        public virtual void CopyFrom(ButtonSpec source)
        {
            // Copy class specific values
            Image = source.Image;
            ImageTransparentColor = source.ImageTransparentColor;
            ImageStates.CopyFrom(source.ImageStates);
            Text = source.Text;
            ExtraText = source.ExtraText;
            AllowInheritImage = source.AllowInheritImage;
            AllowInheritText = source.AllowInheritText;
            AllowInheritExtraText = source.AllowInheritExtraText;
            ColorMap = source.ColorMap;
            Style = source.Style;
            Orientation = source.Orientation;
            Edge = source.Edge;
            ProtectedType = source.ProtectedType;
        }