Color
ShadowFormat.Color property
Erhält eineColor Objekt, das die Farbe für den Schatten darstellt. Der Standardwert istBlack .
public Color Color { get; }
Beispiele
Zeigt, wie man Schattenfarbe erhält.
Document doc = new Document(MyDir + "Shadow color.docx");
Shape shape = (Shape)doc.GetChild(NodeType.Shape, 0, true);
ShadowFormat shadowFormat = shape.ShadowFormat;
Assert.AreEqual(Color.Red.ToArgb(), shadowFormat.Color.ToArgb());
Assert.AreEqual(ShadowType.ShadowMixed, shadowFormat.Type);
Siehe auch
- class ShadowFormat
- namensraum Aspose.Words.Drawing
- Montage Aspose.Words