예제 #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;
            spacing         = other.spacing;

            ApplyColors = other.ApplyColors;
        }
예제 #2
0
파일: Style.cs 프로젝트: stevencohn/OneMore
 /// <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)
 {
 }
예제 #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="style"></param>
 public StyleRecord(StyleBase style) : base(style)
 {
 }
예제 #4
0
 protected XmlStyleBase(StyleBase style) : base(style)
 {
 }