/// <summary> /// Base copy constructor, to be invoked by inheritor's copy constructors. /// </summary> /// <param name="other"> /// Inheritors may extend their own constructor to manage additional properties /// as appropriate. /// </param> protected StyleBase(StyleBase other) : this() { Name = other.Name; StyleType = other.StyleType; Index = other.Index; Color = other.Color; Highlight = other.Highlight; FontFamily = other.FontFamily; fontSize = other.fontSize; IsBold = other.IsBold; IsItalic = other.IsItalic; IsUnderline = other.IsUnderline; IsStrikethrough = other.IsStrikethrough; IsSuperscript = other.IsSuperscript; IsSubscript = other.IsSubscript; spaceBefore = other.spaceBefore; spaceAfter = other.spaceAfter; ApplyColors = other.ApplyColors; }
protected XmlStyleBase(StyleBase style) : base(style) { }
public XmlStyleBase(StyleBase style) : base(style) { }
/// <summary> /// /// </summary> /// <param name="style"></param> public StyleRecord(StyleBase style) : base(style) { }
/// <summary> /// Copy properties from a given Style to initialize a new instance. /// </summary> /// <param name="record"> /// A Style from which property values are to be copied. /// </param> public Style(StyleBase record) : base(record) { }