public PowerToolsBlock(OpenXmlPackage package) { if (package == null) throw new ArgumentNullException("package"); _package = package; _package.BeginPowerToolsBlock(); }
public void Dispose() { if (_package == null) { return; } _package.BeginPowerToolsBlock(); _package = null; }
public PowerToolsBlock(OpenXmlPackage package) { _package = package ?? throw new ArgumentNullException(nameof(package)); _package.BeginPowerToolsBlock(); }