PresetTexture

PresetTexture enumeration

Bir şekli doldurmak için kullanılacak dokuyu belirtir.

public enum PresetTexture

değerler

İsimDeğerTanım
None-1Doku Yok.
BlueTissuePaper1Mavi kağıt mendil dokusu.
Bouquet2Buket dokusu.
BrownMarble3Kahverengi mermer dokusu.
Canvas4Tuval dokusu.
Cork5Mantar dokusu.
Denim6Kot dokusu.
FishFossil7Balık fosili dokusu.
Granite8Granit dokusu.
GreenMarble9Yeşil mermer dokusu.
MediumWood10Orta ahşap dokusu.
Newsprint11Gazete kağıdı dokusu.
Oak12Meşe dokusu.
PaperBag13Kağıt torba dokusu.
Papyrus14Papirüs dokusu.
Parchment15Parşömen dokusu.
PinkTissuePaper16Pembe kağıt mendil dokusu.
PurpleMesh17Mor örgü dokusu.
RecycledPaper18Geri dönüştürülmüş kağıt dokusu.
Sand19Kum dokusu.
Stationery20Kırtasiye dokusu.
Walnut21Ceviz dokusu.
WaterDroplets22Su damlacıkları dokusu.
WhiteMarble23Beyaz mermer dokusu.
WovenMat24Dokuma paspas dokusu.

Örnekler

İşaretçi biçimlendirmesinin nasıl ayarlanacağını göster.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

Shape shape = builder.InsertChart(ChartType.Scatter, 432, 252);
Chart chart = shape.Chart;

// Varsayılan olarak oluşturulan seriyi sil.
chart.Series.Clear();
ChartSeries series = chart.Series.Add("AW Series 1", new[] { 0.7, 1.8, 2.6, 3.9 },
    new[] { 2.7, 3.2, 0.8, 1.7 });

// İşaretçi biçimlendirmesini ayarlayın.
series.Marker.Size = 40;
series.Marker.Symbol = MarkerSymbol.Square;
ChartDataPointCollection dataPoints = series.DataPoints;
dataPoints[0].Marker.Format.Fill.PresetTextured(PresetTexture.Denim);
dataPoints[0].Marker.Format.Stroke.ForeColor = Color.Yellow;
dataPoints[0].Marker.Format.Stroke.BackColor = Color.Red;
dataPoints[1].Marker.Format.Fill.PresetTextured(PresetTexture.WaterDroplets);
dataPoints[1].Marker.Format.Stroke.ForeColor = Color.Yellow;
dataPoints[1].Marker.Format.Stroke.Visible = false;
dataPoints[2].Marker.Format.Fill.PresetTextured(PresetTexture.GreenMarble);
dataPoints[2].Marker.Format.Stroke.ForeColor = Color.Yellow;
dataPoints[3].Marker.Format.Fill.PresetTextured(PresetTexture.Oak);
dataPoints[3].Marker.Format.Stroke.ForeColor = Color.Yellow;
dataPoints[3].Marker.Format.Stroke.Transparency = 0.5;

doc.Save(ArtifactsDir + "Charts.MarkerFormatting.docx");

Ayrıca bakınız