com.groupdocs.watermark

Interfaces

Classes

Exceptions

com.groupdocs.watermark

Class WordsSection



  • public class WordsSection
    extends DocumentPart

    Represents a Word document section.

    • Method Detail

      • getPageSetup

        public final WordsPageSetup getPageSetup()

        Gets the printing page setup for this WordsSection.

        Returns:
        The printing page setup for this WordsSection.
      • getHeadersFooters

        public final WordsHeaderFooterCollection getHeadersFooters()

        Gets the collection of all headers and footers of this WordsSection.

        Returns:
        The collection of all headers and footers of this WordsSection.
      • getShapes

        public final WordsShapeCollection getShapes()

        Gets the collection of all shapes contained in this WordsSection.

        Returns:
        The collection of all shapes contained in this WordsSection.
      • addWatermark

        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).

        Overrides:
        addWatermark in class DocumentPart
        Parameters:
        watermark - The watermark to add to the section.
      • addWatermark

        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).

        Parameters:
        watermark - The watermark to add to the section.
        shapeSettings - Settings that should be applied to the watermark.
      • addTextWatermark

        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).

        Parameters:
        watermark - The text watermark to add to the section.
        effects - Text effects that should be applied to the watermark.
      • addTextWatermark

        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).

        Parameters:
        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.
      • addImageWatermark

        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).

        Parameters:
        watermark - The image watermark to add to the section.
        effects - Image effects that should be applied to the watermark.
      • addImageWatermark

        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).

        Parameters:
        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.