SizeSearchCriteria
Leave feedback
On this page
Represents criteria allowing filtering by watermark size.
public class SizeSearchCriteria : SearchCriteria
| Name | Description |
|---|---|
| SizeSearchCriteria(Dimension, double, double) | Initializes a new instance of the SizeSearchCriteria class with a specified dimension, a starting value and an ending value. |
| Name | Description |
|---|---|
| Dimension { get; } | Gets the dimension of watermark to search by. |
| Maximum { get; } | Gets the ending value. |
| Minimum { get; } | Gets the starting value. |
| 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 watermark 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.