ShadowFormat
Contenuti
[
Nascondere
]ShadowFormat class
Rappresenta la formattazione ombra per un oggetto.
Per saperne di più, visita ilLavorare con gli elementi grafici articolo di documentazione.
public class ShadowFormat
Proprietà
Nome | Descrizione |
---|---|
Color { get; } | Ottiene unColor oggetto che rappresenta il colore dell’ombra. Il valore predefinito èBlack . |
Type { get; set; } | Ottiene o imposta il valore specificatoShadowType per ShadowFormat. |
Visible { get; } | RestituisceVERO se la formattazione applicata a questa istanza è visibile. |
Metodi
Nome | Descrizione |
---|---|
Clear() | Cancella il formato ombra. |
Esempi
Mostra come ottenere il colore dell’ombra.
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);
Guarda anche
- spazio dei nomi Aspose.Words.Drawing
- assemblea Aspose.Words