Enum OdsPageBackgroundGraphicPositionType

OdsPageBackgroundGraphicPositionType enumeration

Represents the position.

public enum OdsPageBackgroundGraphicPositionType

Values

NameValueDescription
TopLeft0Top left.
TopCenter1Top center.
TopRight2Top right.
CenterLeft3Center left.
CenterCenter4Center.
CenterRight5Center right.
BottomLeft6Bottom left.
BottomCenter7Bottom center.
BottomRight8Bottom right.

Examples

using System;
using Aspose.Cells;
using Aspose.Cells.Ods;
using System.Drawing;

namespace AsposeCellsExamples
{
    public class OdsClassOdsPageBackgroundGraphicPositionTypeDemo
    {
        public static void Run()
        {
            Workbook workbook = new Workbook();
            Worksheet sheet = workbook.Worksheets[0];
            
            PageSetup pageSetup = sheet.PageSetup;
            OdsPageBackground odsPageBackground = pageSetup.ODSPageBackground;
            
            odsPageBackground.Type = OdsPageBackgroundType.Color;
            odsPageBackground.Color = Color.LightBlue;
            odsPageBackground.GraphicType = OdsPageBackgroundGraphicType.Tile;
            odsPageBackground.GraphicPositionType = OdsPageBackgroundGraphicPositionType.CenterCenter;
            
            workbook.Save("OdsPageBackgroundExample.ods");
        }
    }
}

See Also