Exemplo n.º 1
0
        internal BorderLine Clone()
        {
            BorderLine result = new BorderLine();

            result.Assign(this);
            return(result);
        }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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();
 }
Exemplo n.º 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
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 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);
        }
Exemplo n.º 8
0
 internal void Assign(BorderLine src)
 {
     Color = src.Color;
     Style = src.Style;
     Width = src.Width;
 }