This repository has been archived by the owner on Feb 5, 2019. It is now read-only.
forked from OpenXmlDev/Open-Xml-PowerTools
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for .NET Standard 2.0 (#238)
- Loading branch information
1 parent
a4232b9
commit cd9608f
Showing
52 changed files
with
185 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,7 @@ TestResults/ | |
|
||
# Visual Studio | ||
.vs/ | ||
|
||
# JetBrains | ||
.idea/ | ||
_ReSharper.Caches/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
OpenXmlPowerTools.Tests/OpenXmlPowerTools.Tests.csproj.DotSettings
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/*************************************************************************** | ||
Copyright (c) Microsoft Corporation 2012-2015. | ||
This code is licensed using the Microsoft Public License (Ms-PL). The text of the license can be found here: | ||
http://www.microsoft.com/resources/sharedsource/licensingbasics/publiclicense.mspx | ||
Published at http://OpenXmlDeveloper.org | ||
Resource Center and Documentation: http://openxmldeveloper.org/wiki/w/wiki/powertools-for-open-xml.aspx | ||
Developer: Eric White | ||
Blog: http://www.ericwhite.com | ||
Twitter: @EricWhiteDev | ||
Email: eric@ericwhite.com | ||
***************************************************************************/ | ||
|
||
using System.Drawing; | ||
|
||
namespace OpenXmlPowerTools | ||
{ | ||
public static class ColorParser | ||
{ | ||
public static Color FromName(string name) | ||
{ | ||
return Color.FromName(name); | ||
} | ||
|
||
public static bool TryFromName(string name, out Color color) | ||
{ | ||
try | ||
{ | ||
color = Color.FromName(name); | ||
|
||
return color.IsNamedColor; | ||
} | ||
catch | ||
{ | ||
color = default(Color); | ||
|
||
return false; | ||
} | ||
} | ||
|
||
public static bool IsValidName(string name) | ||
{ | ||
return TryFromName(name, out _); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.