ShadowType

ShadowType enumeration

Specifies the type of a shape shadow.

public enum ShadowType

Values

NameValueDescription
ShadowMixed-2None of predefined shadow presets.
Shadow11First shadow type.
Shadow1010Tenth shadow type.
Shadow1111Eleventh shadow type.
Shadow1212Twelfth shadow type.
Shadow1313Thirteenth shadow type.
Shadow1414Fourteenth shadow type.
Shadow1515Fifteenth shadow type.
Shadow1616Sixteenth shadow type.
Shadow1717Seventeenth shadow type.
Shadow1818Eighteenth shadow type.
Shadow1919Nineteenth shadow type.
Shadow22Second shadow type.
Shadow2020Twentieth shadow type.
Shadow2121Twenty first shadow type.
Shadow2222Twenty second shadow type.
Shadow2323Twenty third shadow type.
Shadow2424Twenty forth shadow type.
Shadow2525Twenty fifth shadow type.
Shadow2626Twenty sixth shadow type.
Shadow2727Twenty seventh shadow type.
Shadow2828Twenty eighth shadow type.
Shadow2929Twenty ninth shadow type.
Shadow33Third shadow type.
Shadow3030Thirtieth shadow type.
Shadow3131Thirty first shadow type.
Shadow3232Thirty second shadow type.
Shadow3333Thirty third shadow type.
Shadow3434Thirty forth shadow type.
Shadow3535Thirty fifth shadow type.
Shadow3636Thirty sixth shadow type.
Shadow3737Thirty seventh shadow type.
Shadow3838Thirty eighth shadow type.
Shadow3939Thirty ninth shadow type.
Shadow44Fourth shadow type.
Shadow4040Fortieth shadow type.
Shadow4141Forty first shadow type.
Shadow4242Forty second shadow type.
Shadow4343Forty third shadow type.
Shadow55Fifth shadow type.
Shadow66Sixth shadow type.
Shadow77Seventh shadow type.
Shadow88Eighth shadow type.
Shadow99Ninth shadow type.

Remarks

ShadowType is not a simple attribute, but a preset that sets at once several attributes which form the shadow appearance.

Examples

Shows how to work with a shadow formatting for the shape.

Document doc = new Document(MyDir + "Shape stroke pattern border.docx");
Shape shape = (Shape)doc.GetChildNodes(NodeType.Shape, true)[0];

if (shape.ShadowFormat.Visible && shape.ShadowFormat.Type == ShadowType.Shadow2)
    shape.ShadowFormat.Type = ShadowType.Shadow7;

if (shape.ShadowFormat.Type == ShadowType.ShadowMixed)
    shape.ShadowFormat.Clear();

See Also