コード例 #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
ファイル: XmlStyleBase.cs プロジェクト: stevencohn/OneMore
 protected XmlStyleBase(StyleBase style) : base(style)
 {
 }