Skip to content

Commit

Permalink
Enable checking if PatternUnits or PatternContentUnits was actually set
Browse files Browse the repository at this point in the history
  • Loading branch information
wieslawsoltes authored and mrbean-bremen committed Feb 16, 2020
1 parent 3efa867 commit df64dd3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Source/Painting/SvgPatternServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,24 @@ private Matrix EffectivePatternTransform
}
}

/// <summary>
/// Check if <see cref="PatternUnits"/> property value was set.
/// </summary>
/// <returns>True if <see cref="PatternUnits"/> has value.</returns>
public bool HasPatternUnits()
{
return _patternUnits.HasValue;
}

/// <summary>
/// Check if <see cref="PatternContentUnits"/> property value was set.
/// </summary>
/// <returns>True if <see cref="PatternContentUnits"/> has value.</returns>
public bool HasPatternContentUnits()
{
return _patternContentUnits.HasValue;
}

/// <summary>
/// Gets a <see cref="Brush"/> representing the current paint server.
/// </summary>
Expand Down

0 comments on commit df64dd3

Please sign in to comment.