Skip to content

Commit df64dd3

Browse files
wieslawsoltesmrbean-bremen
authored andcommitted
Enable checking if PatternUnits or PatternContentUnits was actually set
1 parent 3efa867 commit df64dd3

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Source/Painting/SvgPatternServer.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,24 @@ private Matrix EffectivePatternTransform
140140
}
141141
}
142142

143+
/// <summary>
144+
/// Check if <see cref="PatternUnits"/> property value was set.
145+
/// </summary>
146+
/// <returns>True if <see cref="PatternUnits"/> has value.</returns>
147+
public bool HasPatternUnits()
148+
{
149+
return _patternUnits.HasValue;
150+
}
151+
152+
/// <summary>
153+
/// Check if <see cref="PatternContentUnits"/> property value was set.
154+
/// </summary>
155+
/// <returns>True if <see cref="PatternContentUnits"/> has value.</returns>
156+
public bool HasPatternContentUnits()
157+
{
158+
return _patternContentUnits.HasValue;
159+
}
160+
143161
/// <summary>
144162
/// Gets a <see cref="Brush"/> representing the current paint server.
145163
/// </summary>

0 commit comments

Comments
 (0)