PresetTexture enumeration

PresetTexture enumeration

Specifies texture to be used to fill a shape.

Members

NameDescription
NONENo Texture.
BLUE_TISSUE_PAPERBlue tissue paper texture.
BOUQUETBouquet texture.
BROWN_MARBLEBrown marble texture.
CANVASCanvas texture.
CORKCork texture.
DENIMDenim texture.
FISH_FOSSILFish fossil texture.
GRANITEGranite texture.
GREEN_MARBLEGreen marble texture.
MEDIUM_WOODMedium wood texture.
NEWSPRINTNewsprint texture.
OAKOak texture.
PAPER_BAGPaper bag texture.
PAPYRUSPapyrus texture.
PARCHMENTParchment texture.
PINK_TISSUE_PAPERPink tissue paper texture.
PURPLE_MESHPurple mesh texture.
RECYCLED_PAPERRecycled paper texture.
SANDSand texture.
STATIONERYStationery texture.
WALNUTWalnut texture.
WATER_DROPLETSWater droplets texture.
WHITE_MARBLEWhite marble texture.
WOVEN_MATWoven mat texture.

Examples

Show how to set marker formatting.

doc = aw.Document()
builder = aw.DocumentBuilder(doc=doc)
shape = builder.insert_chart(chart_type=aw.drawing.charts.ChartType.SCATTER, width=432, height=252)
chart = shape.chart
# Delete default generated series.
chart.series.clear()
series = chart.series.add(series_name='AW Series 1', x_values=[0.7, 1.8, 2.6, 3.9], y_values=[2.7, 3.2, 0.8, 1.7])
# Set marker formatting.
series.marker.size = 40
series.marker.symbol = aw.drawing.charts.MarkerSymbol.SQUARE
data_points = series.data_points
data_points[0].marker.format.fill.preset_textured(aw.drawing.PresetTexture.DENIM)
data_points[0].marker.format.stroke.fore_color = aspose.pydrawing.Color.yellow
data_points[0].marker.format.stroke.back_color = aspose.pydrawing.Color.red
data_points[1].marker.format.fill.preset_textured(aw.drawing.PresetTexture.WATER_DROPLETS)
data_points[1].marker.format.stroke.fore_color = aspose.pydrawing.Color.yellow
data_points[1].marker.format.stroke.visible = False
data_points[2].marker.format.fill.preset_textured(aw.drawing.PresetTexture.GREEN_MARBLE)
data_points[2].marker.format.stroke.fore_color = aspose.pydrawing.Color.yellow
data_points[3].marker.format.fill.preset_textured(aw.drawing.PresetTexture.OAK)
data_points[3].marker.format.stroke.fore_color = aspose.pydrawing.Color.yellow
data_points[3].marker.format.stroke.transparency = 0.5
doc.save(file_name=ARTIFACTS_DIR + 'Charts.MarkerFormatting.docx')

See Also