RotateAngleSearchCriteria
Leave feedback
On this page
Represents criteria allowing filtering by watermark rotate angle.
public class RotateAngleSearchCriteria : SearchCriteria
| Name | Description |
|---|---|
| RotateAngleSearchCriteria(double, double) | Initializes a new instance of the RotateAngleSearchCriteria class with a starting angle and a ending angle. |
| Name | Description |
|---|---|
| MaximumAngle { get; } | Gets the ending angle in degrees. |
| MinimumAngle { get; } | Gets the starting angle in degrees. |
| Name | Description |
|---|---|
| And(SearchCriteria) | Combines this SearchCriteria with other criteria using logical AND operator. |
| Not() | Negates this SearchCriteria. |
| Or(SearchCriteria) | Combines this SearchCriteria with other criteria using logical OR operator. |
Learn more:
Find and remove watermarks using search criteria.
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();
}
- class SearchCriteria
- namespace GroupDocs.Watermark.Search.SearchCriteria
- assembly GroupDocs.Watermark
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.