示例#1
0
        internal BorderLine Clone()
        {
            BorderLine result = new BorderLine();

            result.Assign(this);
            return(result);
        }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Border"/> class with default settings.
 /// </summary>
 public Border()
 {
     leftLine    = new BorderLine();
     topLine     = new BorderLine();
     rightLine   = new BorderLine();
     bottomLine  = new BorderLine();
     shadowWidth = 4;
     shadowColor = Color.Black;
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Border"/> class with default settings.
 /// </summary>
 public Border()
 {
     FLeftLine    = new BorderLine();
     FTopLine     = new BorderLine();
     FRightLine   = new BorderLine();
     FBottomLine  = new BorderLine();
     FShadowWidth = 4;
     FShadowColor = Color.Black;
 }
示例#4
0
 private Border(Border src)
 {
     FLines       = src.Lines;
     FShadow      = src.Shadow;
     FShadowColor = src.ShadowColor;
     FShadowWidth = src.ShadowWidth;
     FLeftLine    = src.LeftLine.Clone();
     FTopLine     = src.TopLine.Clone();
     FRightLine   = src.RightLine.Clone();
     FBottomLine  = src.BottomLine.Clone();
 }
示例#5
0
 private Border(Border src)
 {
     lines       = src.Lines;
     shadow      = src.Shadow;
     shadowColor = src.ShadowColor;
     shadowWidth = src.ShadowWidth;
     leftLine    = src.LeftLine.Clone();
     topLine     = src.TopLine.Clone();
     rightLine   = src.RightLine.Clone();
     bottomLine  = src.BottomLine.Clone();
     //Fix 1513
     //Width = src.Width;
     //1513
 }
示例#6
0
 internal void Serialize(FRWriter writer, string prefix, BorderLine c)
 {
     if (Color != c.Color)
     {
         writer.WriteValue(prefix + ".Color", Color);
     }
     if (Style != c.Style)
     {
         writer.WriteValue(prefix + ".Style", Style);
     }
     if (Width != c.Width)
     {
         writer.WriteFloat(prefix + ".Width", Width);
     }
 }
示例#7
0
        /// <inheritdoc/>
        public override bool Equals(object obj)
        {
            BorderLine line = obj as BorderLine;

            return(line != null && Width == line.Width && Color == line.Color && Style == line.Style);
        }
示例#8
0
 internal void Assign(BorderLine src)
 {
     Color = src.Color;
     Style = src.Style;
     Width = src.Width;
 }