TextFormattingSearchCriteria Class |
Namespace: GroupDocs.Watermark.Search.SearchCriteria
The TextFormattingSearchCriteria type exposes the following members.
Name | Description | |
---|---|---|
![]() | TextFormattingSearchCriteria |
Initializes a new instance of the TextFormattingSearchCriteria class.
|
Name | Description | |
---|---|---|
![]() | BackgroundColorRange |
Gets or sets the range of colors which are used to filter watermarks by text background color.
|
![]() | FontBold |
Gets or sets a value indicating whether the font used in watermark text formatting is bold.
|
![]() | FontItalic |
Gets or sets a value indicating whether the font used in watermark text formatting is italic.
|
![]() | FontName |
Gets or sets the name of the font which is used in possible watermark text formatting.
|
![]() | FontStrikeout |
Gets or sets a value indicating whether the font used in watermark text formatting is strikeout.
|
![]() | FontUnderline |
Gets or sets a value indicating whether the font used in watermark text formatting is underline.
|
![]() | ForegroundColorRange |
Gets or sets the range of colors which are used to filter watermarks by text foreground color.
|
![]() | MaxFontSize |
Gets or sets the ending value of the font size.
|
![]() | MinFontSize |
Gets or sets the starting value of the font size.
|
Name | Description | |
---|---|---|
![]() | And |
Combines this SearchCriteria with other criteria using logical AND operator.
(Inherited from SearchCriteria.) |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | Not |
Negates this SearchCriteria.
(Inherited from SearchCriteria.) |
![]() | Or |
Combines this SearchCriteria with other criteria using logical OR operator.
(Inherited from SearchCriteria.) |
![]() | ToString | (Inherited from Object.) |
using (Watermarker watermarker = new Watermarker(@"D:\test.doc")) { TextFormattingSearchCriteria criteria = new TextFormattingSearchCriteria(); criteria.ForegroundColorRange = new ColorRange(); criteria.ForegroundColorRange.MinHue = -5; criteria.ForegroundColorRange.MaxHue = 10; criteria.ForegroundColorRange.MinBrightness = 0.01f; criteria.ForegroundColorRange.MaxBrightness = 0.99f; criteria.BackgroundColorRange = new ColorRange(); criteria.BackgroundColorRange.IsEmpty = true; criteria.FontName = "Arial"; criteria.MinFontSize = 19; criteria.MaxFontSize = 42; criteria.FontBold = true; PossibleWatermarkCollection watermarks = watermarker.Search(criteria); watermarks.Clear(); watermarker.Save(); }