public class WordsSection extends DocumentPart
Represents a Word document section.
Modifier and Type | Method and Description |
---|---|
void |
addImageWatermark(ImageWatermark watermark,
WordsImageEffects effects)
Adds an image watermark to this
WordsSection . |
void |
addImageWatermark(ImageWatermark watermark,
WordsImageEffects effects,
WordsShapeSettings shapeSettings)
Adds an image watermark to this
WordsSection . |
void |
addTextWatermark(TextWatermark watermark,
WordsTextEffects effects)
Adds a text watermark to this
WordsSection . |
void |
addTextWatermark(TextWatermark watermark,
WordsTextEffects effects,
WordsShapeSettings shapeSettings)
Adds a text watermark to this
WordsSection . |
void |
addWatermark(Watermark watermark)
Adds a watermark to this
WordsSection . |
void |
addWatermark(Watermark watermark,
WordsShapeSettings shapeSettings)
Adds a watermark to this
WordsSection . |
WordsHeaderFooterCollection |
getHeadersFooters()
Gets the collection of all headers and footers of this
WordsSection . |
WordsPageSetup |
getPageSetup()
Gets the printing page setup for this
WordsSection . |
WordsShapeCollection |
getShapes()
Gets the collection of all shapes contained in this
WordsSection . |
findImages, findImages, findWatermarks, findWatermarks
public final WordsPageSetup getPageSetup()
Gets the printing page setup for this WordsSection
.
WordsSection
.public final WordsHeaderFooterCollection getHeadersFooters()
Gets the collection of all headers and footers of this WordsSection
.
WordsSection
.public final WordsShapeCollection getShapes()
Gets the collection of all shapes contained in this WordsSection
.
WordsSection
.public void addWatermark(Watermark watermark)
Adds a watermark to this WordsSection
.
This method assumes that watermark offset and size are measured in points (if they are assigned).
addWatermark
in class DocumentPart
watermark
- The watermark to add to the section.public final void addWatermark(Watermark watermark, WordsShapeSettings shapeSettings)
Adds a watermark to this WordsSection
.
This method assumes that watermark offset and size are measured in points (if they are assigned).
watermark
- The watermark to add to the section.shapeSettings
- Settings that should be applied to the watermark.public final void addTextWatermark(TextWatermark watermark, WordsTextEffects effects)
Adds a text watermark to this WordsSection
.
This method assumes that watermark offset and size are measured in points (if they are assigned).
watermark
- The text watermark to add to the section.effects
- Text effects that should be applied to the watermark.public final void addTextWatermark(TextWatermark watermark, WordsTextEffects effects, WordsShapeSettings shapeSettings)
Adds a text watermark to this WordsSection
.
This method assumes that watermark offset and size are measured in points (if they are assigned).
watermark
- The text watermark to add to the section.effects
- Text effects that should be applied to the watermark.shapeSettings
- Shape settings that should be applied to the watermark.public final void addImageWatermark(ImageWatermark watermark, WordsImageEffects effects)
Adds an image watermark to this WordsSection
.
This method assumes that watermark offset and size are measured in points (if they are assigned).
watermark
- The image watermark to add to the section.effects
- Image effects that should be applied to the watermark.public final void addImageWatermark(ImageWatermark watermark, WordsImageEffects effects, WordsShapeSettings shapeSettings)
Adds an image watermark to this WordsSection
.
This method assumes that watermark offset and size are measured in points (if they are assigned).
watermark
- The image watermark to add to the section.effects
- Image effects that should be applied to the watermark.shapeSettings
- Shape settings that should be applied to the watermark.Copyright © 2018. All rights reserved.