From df64dd3a73115ea3f633927172d79ae8c28908ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wies=C5=82aw=20=C5=A0olt=C3=A9s?= Date: Mon, 10 Feb 2020 21:34:44 +0100 Subject: [PATCH] Enable checking if PatternUnits or PatternContentUnits was actually set --- Source/Painting/SvgPatternServer.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Source/Painting/SvgPatternServer.cs b/Source/Painting/SvgPatternServer.cs index da9629845..4b9a6da40 100644 --- a/Source/Painting/SvgPatternServer.cs +++ b/Source/Painting/SvgPatternServer.cs @@ -140,6 +140,24 @@ private Matrix EffectivePatternTransform } } + /// + /// Check if property value was set. + /// + /// True if has value. + public bool HasPatternUnits() + { + return _patternUnits.HasValue; + } + + /// + /// Check if property value was set. + /// + /// True if has value. + public bool HasPatternContentUnits() + { + return _patternContentUnits.HasValue; + } + /// /// Gets a representing the current paint server. ///