diff --git a/ClosedXML/Excel/Style/XLBorder.cs b/ClosedXML/Excel/Style/XLBorder.cs index b29c0a3..3230b62 100644 --- a/ClosedXML/Excel/Style/XLBorder.cs +++ b/ClosedXML/Excel/Style/XLBorder.cs @@ -1,13 +1,13 @@ using System; -using System.Text; using System.Collections.Generic; -using System.Linq; +using System.Text; namespace ClosedXML.Excel { internal class XLBorder : IXLBorder { #region Static members + internal static XLBorderKey GenerateKey(IXLBorder defaultBorder) { XLBorderKey key; @@ -39,6 +39,7 @@ } return key; } + #endregion Static members private readonly XLStyle _style; @@ -47,15 +48,18 @@ private XLBorderValue _value; - internal XLBorderKey Key { + internal XLBorderKey Key + { get { return _value.Key; } private set { _value = XLBorderValue.FromKey(value); } } #region Constructors + /// /// Create an instance of XLBorder initializing it with the specified value. /// + /// Container the border is applied to. /// Style to attach the new instance to. /// Style value to use. public XLBorder(IXLStylized container, XLStyle style, XLBorderValue value) @@ -72,6 +76,7 @@ public XLBorder(IXLStylized container, XLStyle style = null, IXLBorder d = null) : this(container, style, GenerateKey(d)) { } + #endregion Constructors #region IXLBorder Members @@ -106,7 +111,6 @@ } } - public XLColor OutsideBorderColor { set @@ -470,7 +474,7 @@ return _container.Style; } - #endregion + #endregion IXLBorder Members private void Modify(Func modification) { @@ -485,6 +489,7 @@ } #region Overridden + public override string ToString() { var sb = new StringBuilder(); @@ -534,6 +539,7 @@ hashCode = hashCode * -1521134295 + Key.GetHashCode(); return hashCode; } + #endregion Overridden } }