Type
ShadowFormat.Type property
Gets or sets the specified ShadowType
for ShadowFormat.
public ShadowType Type { get; set; }
Remarks
Setting a new shadow type will reset Color and Transparency values to their default ones. Therefore, it makes sense to first set the desired shadow type and only then Color and Transparency values.
Examples
Shows how to get shadow color.
Document doc = new Document(MyDir + "Shadow color.docx");
Shape shape = (Shape)doc.GetChild(NodeType.Shape, 0, true);
ShadowFormat shadowFormat = shape.ShadowFormat;
Assert.That(shadowFormat.Color.ToArgb(), Is.EqualTo(Color.Red.ToArgb()));
Assert.That(shadowFormat.Type, Is.EqualTo(ShadowType.ShadowMixed));
See Also
- enum ShadowType
- class ShadowFormat
- namespace Aspose.Words.Drawing
- assembly Aspose.Words