public static VisualStyle Clone(this VisualStyle original)
        {
            if (original == null)
            {
                return(null);
            }

            VisualStyle clone = new VisualStyle
            {
                Border              = original.Border.Clone(),
                Code                = original.Code,
                Description         = original.Description,
                EffectivePeriod     = original.EffectivePeriod.Clone(),
                Font                = original.Font.Clone(),
                HorizontalAlignment = original.HorizontalAlignment,
                VerticalAlignment   = original.VerticalAlignment,
            };

            return(clone);
        }
Beispiel #2
0
 public VisualStyle(VisualStyle visualStyle)
 {
     // TODO: Complete member initialization
     this.visualStyle = visualStyle;
 }