ShadowFormat
Inhalt
[
Ausblenden
]ShadowFormat class
Stellt die Schattenformatierung für ein Objekt dar.
Um mehr zu erfahren, besuchen Sie dieArbeiten mit grafischen Elementen Dokumentationsartikel.
public class ShadowFormat
Eigenschaften
Name | Beschreibung |
---|---|
Color { get; } | Erhält eineColor Objekt, das die Farbe für den Schatten darstellt. Der Standardwert istBlack . |
Type { get; set; } | Ruft ab oder setzt die angegebeneShadowType für ShadowFormat. |
Visible { get; } | RückgabenWAHR wenn die auf diese Instanz angewendete Formatierung sichtbar ist. |
Methoden
Name | Beschreibung |
---|---|
Clear() | Löscht das Schattenformat. |
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
- namensraum Aspose.Words.Drawing
- Montage Aspose.Words