RotateAngleSearchCriteria Class
Represents criteria allowing filtering by watermark rotate angle.
Inheritance Hierarchy
SystemObject
  GroupDocs.Watermark.Search.SearchCriteriaSearchCriteria
    GroupDocs.Watermark.Search.SearchCriteriaRotateAngleSearchCriteria

Namespace: GroupDocs.Watermark.Search.SearchCriteria
Assembly: GroupDocs.Watermark (in GroupDocs.Watermark.dll) Version: 20.7.0
Syntax
public class RotateAngleSearchCriteria : SearchCriteria

The RotateAngleSearchCriteria type exposes the following members.

Constructors
  NameDescription
Public methodRotateAngleSearchCriteria
Initializes a new instance of the RotateAngleSearchCriteria class with a starting angle and a ending angle.
Properties
  NameDescription
Public propertyMaximumAngle
Gets the ending angle in degrees.
Public propertyMinimumAngle
Gets the starting angle in degrees.
Methods
  NameDescription
Public methodAnd
Combines this SearchCriteria with other criteria using logical AND operator.
(Inherited from SearchCriteria.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodNot
Negates this SearchCriteria.
(Inherited from SearchCriteria.)
Public methodOr
Combines this SearchCriteria with other criteria using logical OR operator.
(Inherited from SearchCriteria.)
Public methodToString (Inherited from Object.)
Remarks
Examples
Find and remove watermarks using search criteria.
C#
using (Watermarker watermarker = new Watermarker(@"C:\test.some_ext"))
{
    SizeSearchCriteria widthRange = new SizeSearchCriteria(Dimension.Width, 50, 100);
    RotateAngleSearchCriteria rotateAngle = new RotateAngleSearchCriteria(0, 45);
    TextSearchCriteria textCriteria = new TextSearchCriteria(new Regex("^Test watermark$"));
    PossibleWatermarkCollection watermarks = watermarker.Search(textCriteria.And(widthRange.Or(rotateAngle)));
    watermarks.Clear();
    watermarker.Save();
}
See Also