internal BorderLine Clone() { BorderLine result = new BorderLine(); result.Assign(this); return(result); }
/// <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; }
/// <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; }
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(); }
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 }
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); } }
/// <inheritdoc/> public override bool Equals(object obj) { BorderLine line = obj as BorderLine; return(line != null && Width == line.Width && Color == line.Color && Style == line.Style); }
internal void Assign(BorderLine src) { Color = src.Color; Style = src.Style; Width = src.Width; }