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;
}