public override void PopulateFromXElement(XElement element) { XNamespace xmlns = element.Name.Namespace; base.PopulateFromXElement(element); Source = element.Attribute("source").Optional(); Type = element.Attribute("type").NullableEnum<PdfImageType>(); }
public override void Merge(PdfElementStyle style) { PdfImageStyle imageStyle = style as PdfImageStyle; base.Merge(imageStyle); if (!imageStyle.Source.IsNullOrBlank()) { Source = imageStyle.Source; } if (imageStyle.Type.HasValue) { Type = imageStyle.Type; } }