diff --git a/ClosedXML/ClosedXML/ClosedXML/Excel/Cells/XLCell.cs b/ClosedXML/ClosedXML/ClosedXML/Excel/Cells/XLCell.cs index 65969d0..261e775 100644 --- a/ClosedXML/ClosedXML/ClosedXML/Excel/Cells/XLCell.cs +++ b/ClosedXML/ClosedXML/ClosedXML/Excel/Cells/XLCell.cs @@ -158,7 +158,7 @@ { FormulaA1 = String.Empty; _richText = null; - if (value is String) + if (value is String || value is char) { _cellValue = value.ToString(); _dataType = XLCellValues.Text; @@ -182,7 +182,6 @@ else if ( value is sbyte || value is byte - || value is char || value is short || value is ushort || value is int diff --git a/ClosedXML/ClosedXML/ClosedXML/Excel/Comments/IXLComment.cs b/ClosedXML/ClosedXML/ClosedXML/Excel/Comments/IXLComment.cs index 8bc72e3..9e538d7 100644 --- a/ClosedXML/ClosedXML/ClosedXML/Excel/Comments/IXLComment.cs +++ b/ClosedXML/ClosedXML/ClosedXML/Excel/Comments/IXLComment.cs @@ -11,9 +11,9 @@ Boolean Visible { get; set; } IXLComment SetVisible(); IXLComment SetVisible(Boolean value); - void AddSignature(); - void AddSignature(string username); - void AddNewLine(); + IXLRichString AddSignature(); + IXLRichString AddSignature(string username); + IXLRichString AddNewLine(); } } diff --git a/ClosedXML/ClosedXML/ClosedXML/Excel/Comments/XLComment.cs b/ClosedXML/ClosedXML/ClosedXML/Excel/Comments/XLComment.cs index 5ac310a..1d96f18 100644 --- a/ClosedXML/ClosedXML/ClosedXML/Excel/Comments/XLComment.cs +++ b/ClosedXML/ClosedXML/ClosedXML/Excel/Comments/XLComment.cs @@ -42,20 +42,21 @@ return this; } - public void AddSignature() + public IXLRichString AddSignature() { // existing Author might be someone else hence using current user name here - this.AddSignature(Environment.UserName); + return AddSignature(Environment.UserName); + } - public void AddSignature(string username) + public IXLRichString AddSignature(string username) { - this.AddText(string.Format("{0}:{1}", username, Environment.NewLine)).SetBold(); + return AddText(string.Format("{0}:{1}", username, Environment.NewLine)).SetBold(); } - public void AddNewLine() + public IXLRichString AddNewLine() { - this.AddText(Environment.NewLine); + return AddText(Environment.NewLine); } public Boolean Visible { get; set; } public IXLComment SetVisible() { Visible = true; return this; } public IXLComment SetVisible(Boolean value) { Visible = value; return this; } diff --git a/ClosedXML/ClosedXML/ClosedXML/Properties/AssemblyInfo.cs b/ClosedXML/ClosedXML/ClosedXML/Properties/AssemblyInfo.cs index f3d1841..52da6b8 100644 --- a/ClosedXML/ClosedXML/ClosedXML/Properties/AssemblyInfo.cs +++ b/ClosedXML/ClosedXML/ClosedXML/Properties/AssemblyInfo.cs @@ -31,6 +31,6 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.58.0.0")] -[assembly: AssemblyFileVersion("0.58.0.0")] +[assembly: AssemblyVersion("0.58.1.0")] +[assembly: AssemblyFileVersion("0.58.1.0")] [assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ClosedXML_Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100a1fb8ba59167fe734d64128ca73d32c45cb8a117246d09c95c8769db88fe332b0a3396bedd0ea48ee42b0e5796fec0798ca5cb628a9a6de80d35d6c67b936ca1670347b3d4f2b769c8ce2ddcf959dbac6bcd88e6c08751ea1fffa0522de3507193e7035305a8aa008d6c88cca1341b3120fa9c347ab3f97e2d772e2709277da5")] \ No newline at end of file diff --git a/ClosedXML/ClosedXML/ClosedXML_Net3.5/Properties/AssemblyInfo.cs b/ClosedXML/ClosedXML/ClosedXML_Net3.5/Properties/AssemblyInfo.cs index 046f2c4..9b67a8d 100644 --- a/ClosedXML/ClosedXML/ClosedXML_Net3.5/Properties/AssemblyInfo.cs +++ b/ClosedXML/ClosedXML/ClosedXML_Net3.5/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.58.0.0")] -[assembly: AssemblyFileVersion("0.58.0.0")] +[assembly: AssemblyVersion("0.58.1.0")] +[assembly: AssemblyFileVersion("0.58.1.0")]