Enum TextureType

TextureType enumeration

Represents the preset texture type.

public enum TextureType

Values

NameValueDescription
BlueTissuePaper0Represents Blue Tissue Paper texture type.
Bouquet1Represents Bouquet texture type.
BrownMarble2Represents Brown Marble texture type.
Canvas3Represents Canvas texture type.
Cork4Represents Cork texture type.
Denim5Represents Denim texture type.
FishFossil6Represents Fish Fossil texture type.
Granite7Represents Granite texture type.
GreenMarble8Represents Green Marble texture type.
MediumWood9Represents Medium Wood texture type.
Newsprint10Represents Newsprint texture type.
Oak11Represents Oak texture type.
PaperBag12Represents Paper Bag texture type.
Papyrus13Represents Papyrus texture type.
Parchment14Represents Parchment texture type.
PinkTissuePaper15Represents Pink Tissue Paper texture type.
PurpleMesh16Represents Purple Mesh texture type.
RecycledPaper17Represents Recycled Paper texture type.
Sand18Represents Sand texture type.
Stationery19Represents Stationery texture type.
Walnut20Represents Walnut Droplets texture type.
WaterDroplets21Represents Water Droplets texture type.
WhiteMarble22Represents White Marble texture type.
WovenMat23Represents Woven Mat texture type.
Unknown24Represents Unknown texture type.

Examples

using System;
using Aspose.Cells;
using Aspose.Cells.Charts;
using Aspose.Cells.Drawing;

namespace AsposeCellsExamples
{
    public class DrawingClassTextureTypeDemo
    {
        public static void Run()
        {
            // Create a new workbook
            Workbook workbook = new Workbook();
            Worksheet sheet = workbook.Worksheets[0];

            // Add sample data for chart
            sheet.Cells["A1"].PutValue("Item");
            sheet.Cells["A2"].PutValue("Product A");
            sheet.Cells["A3"].PutValue("Product B");
            sheet.Cells["A4"].PutValue("Product C");
            sheet.Cells["B1"].PutValue("Sales");
            sheet.Cells["B2"].PutValue(1000);
            sheet.Cells["B3"].PutValue(2000);
            sheet.Cells["B4"].PutValue(3000);

            // Add a chart
            int chartIndex = sheet.Charts.Add(ChartType.Column, 5, 0, 20, 8);
            Chart chart = sheet.Charts[chartIndex];
            
            // Set chart data range
            chart.NSeries.Add("B2:B4", true);
            chart.NSeries.CategoryData = "A2:A4";

            // Access the first series and set texture for a point
            ChartPoint point = chart.NSeries[0].Points[2];
            point.Area.FillFormat.Texture = TextureType.Stationery;

            // Save the workbook
            workbook.Save("TextureTypeDemo.xlsx");
        }
    }
}

See Also