Color
GlowFormat.Color property
Bir değeri alır veya ayarlarColor Parıltı efekti için rengi temsil eden nesne. Varsayılan değerBlack .
public Color Color { get; set; }
Örnekler
Parıltılı şekil efektiyle nasıl etkileşim kurulacağını gösterir.
Document doc = new Document(MyDir + "Various shapes.docx");
Shape shape = (Shape)doc.GetChild(NodeType.Shape, 0, true);
shape.Glow.Color = Color.Salmon;
shape.Glow.Radius = 30;
shape.Glow.Transparency = 0.15;
doc.Save(ArtifactsDir + "Shape.Glow.docx");
doc = new Document(ArtifactsDir + "Shape.Glow.docx");
shape = (Shape)doc.GetChild(NodeType.Shape, 0, true);
Assert.AreEqual(Color.FromArgb(217, 250, 128, 114).ToArgb(), shape.Glow.Color.ToArgb());
Assert.AreEqual(30, shape.Glow.Radius);
Assert.AreEqual(0.15d, shape.Glow.Transparency, 0.01d);
shape.Glow.Remove();
Assert.AreEqual(Color.Black.ToArgb(), shape.Glow.Color.ToArgb());
Assert.AreEqual(0, shape.Glow.Radius);
Assert.AreEqual(0, shape.Glow.Transparency);
Ayrıca bakınız
- class GlowFormat
- ad alanı Aspose.Words.Drawing
- toplantı Aspose.Words