public void Merge(ImageStyle style) { if (style != null) { Margin = Margin.Merge(style.Margin); if (HorizontalAlignment != style.HorizontalAlignment) { HorizontalAlignment = style.HorizontalAlignment; } } }