WordProcessingWatermarkSectionOptions Class |
Namespace: GroupDocs.Watermark.Options.WordProcessing
The WordProcessingWatermarkSectionOptions type exposes the following members.
Name | Description | |
---|---|---|
![]() | WordProcessingWatermarkSectionOptions |
Initializes a new instance of the WordProcessingWatermarkSectionOptions class.
|
Name | Description | |
---|---|---|
![]() | AlternativeText |
Gets or sets the descriptive (alternative) text that will be associated with a shape.
(Inherited from WordProcessingWatermarkBaseOptions.) |
![]() | Effects |
Gets or sets a value of WordProcessingImageEffects or
WordProcessingTextEffects for effects that should be applied to the watermark.
(Inherited from WordProcessingWatermarkBaseOptions.) |
![]() | IsLocked |
Gets or sets a value indicating whether an editing of the shape in Word is forbidden.
(Inherited from WordProcessingWatermarkBaseOptions.) |
![]() | LockType |
Gets or sets the watermark lock type.
(Inherited from WordProcessingWatermarkBaseOptions.) |
![]() | Name |
Gets or sets the name a shape.
(Inherited from WordProcessingWatermarkBaseOptions.) |
![]() | Password |
Gets or sets a password used to lock the watermark.
(Inherited from WordProcessingWatermarkBaseOptions.) |
![]() | SectionIndex |
Gets or sets the index of a section to add the watermark to.
|
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
WordProcessingLoadOptions loadOptions = new WordProcessingLoadOptions(); using (Watermarker watermarker = new Watermarker(@"C:\Documents\test.doc", loadOptions)) { TextWatermark watermark = new TextWatermark("Test watermark", new Font("Arial", 36, FontStyle.Bold | FontStyle.Italic)); watermark.HorizontalAlignment = HorizontalAlignment.Center; watermark.VerticalAlignment = VerticalAlignment.Center; watermark.ForegroundColor = Color.Red; WordProcessingWatermarkSectionOptions options = new WordProcessingWatermarkSectionOptions(); options.SectionIndex = 0; watermarker.Add(watermark, options); watermarker.Save(); }