| @@ -467,7 +467,7 @@ namespace Novacode | |||
| public virtual void InsertAtBookmark(string toInsert, string bookmarkName) | |||
| { | |||
| if (String.IsNullOrWhiteSpace(bookmarkName)) | |||
| if (bookmarkName.IsNullOrWhiteSpace()) | |||
| throw new ArgumentException("bookmark cannot be null or empty", "bookmarkName"); | |||
| var headerCollection = Document.Headers; | |||
| @@ -10,7 +10,7 @@ | |||
| <AppDesignerFolder>Properties</AppDesignerFolder> | |||
| <RootNamespace>Novacode</RootNamespace> | |||
| <AssemblyName>DocX</AssemblyName> | |||
| <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> | |||
| <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> | |||
| <FileAlignment>512</FileAlignment> | |||
| <SccProjectName>SAK</SccProjectName> | |||
| <SccLocalPath>SAK</SccLocalPath> | |||
| @@ -17,6 +17,13 @@ namespace Novacode | |||
| { | |||
| public const string DOCUMENT_DOCUMENTTYPE = "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"; | |||
| public const string TEMPLATE_DOCUMENTTYPE = "application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml"; | |||
| public static bool IsNullOrWhiteSpace(this string value) | |||
| { | |||
| if (value == null) return true; | |||
| return string.IsNullOrEmpty(value.Trim()); | |||
| } | |||
| /// <summary> | |||
| /// Checks whether 'toCheck' has all children that 'desired' has and values of 'val' attributes are the same | |||
| /// </summary> | |||
| @@ -20,7 +20,7 @@ | |||
| <Language>en-US</Language> | |||
| <HelpFileFormat>HtmlHelp1</HelpFileFormat> | |||
| <IndentHtml>False</IndentHtml> | |||
| <FrameworkVersion>.NET Framework 4.0</FrameworkVersion> | |||
| <FrameworkVersion>.NET Framework 3.5</FrameworkVersion> | |||
| <KeepLogFile>True</KeepLogFile> | |||
| <DisableCodeBlockComponent>False</DisableCodeBlockComponent> | |||
| <CppCommentsFixup>False</CppCommentsFixup> | |||