Exemple #1
0
        /// <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;
        }
Exemple #2
0
 protected XmlStyleBase(StyleBase style) : base(style)
 {
 }
Exemple #3
0
 public XmlStyleBase(StyleBase style) : base(style)
 {
 }
Exemple #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="style"></param>
 public StyleRecord(StyleBase style) : base(style)
 {
 }
Exemple #5
0
 /// <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)
 {
 }