Compartilhar via


Shadow Class

Defines the Shadow Class.This class is only available in Office2010.When the object is serialized out as xml, its qualified name is w14:shadow.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Office2010.Word.Shadow

Namespace:  DocumentFormat.OpenXml.Office2010.Word
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(SchemeColor), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(RgbColorModelHex), FileFormatVersions.Office2010)> _
<OfficeAvailabilityAttribute(FileFormatVersions.Office2010)> _
Public Class Shadow _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As Shadow
[ChildElementInfoAttribute(typeof(SchemeColor), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(RgbColorModelHex), FileFormatVersions.Office2010)]
[OfficeAvailabilityAttribute(FileFormatVersions.Office2010)]
public class Shadow : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • RgbColorModelHex <w14:srgbClr>

  • SchemeColor <w14:schemeClr>

2.5.23 CT_Shadow

Target namespace: https://schemas.microsoft.com/office/word/2009/2/wordml

Referenced by: wShadow

Specifies the shadow effect. All the attributes of this complex type are optional but MAY<21> be required.

Child Elements:

srgbClr : A CT_SRgbColor element that specifies the color in the Red, Green, Blue (RGB) color model.

schemeClr : A CT_SchemeColor element that specifies a color from a theme. Color changes if theme bindings change.

Attributes:

blurRad : An optional ST_PositiveCoordinate (as specified in [ISO/IEC-29500-1] §20.1.10.42) attribute that specifies the blur radius of the shadow. This attribute MAY<22> be limited further in the application. Default value for this attribute is 0.

dist : An optional ST_PositiveCoordinate (as specified in [ISO/IEC-29500-1] §20.1.10.42) attribute that specifies how far to offset the shadow. This attribute MAY<23> be limited further in the application. Default value for this attribute is 0.

dir : An optional ST_PositiveFixedAngle (as specified in [ISO/IEC-29500-1] §20.1.10.44) attribute that specifies the direction to offset the shadow. Default value for this attribute is 0.

sx : An optional ST_Percentage attribute that specifies the horizontal scaling factor. Negative scaling causes a flip. Default value for this attribute is 0.

sy : An optional ST_Percentage attribute that specifies the vertical scaling factor. Negative scaling causes a flip. Default value for this attribute is 0.

kx : An optional ST_FixedAngle (as specified in [ISO/IEC-29500-1] §20.1.10.23) attribute that specifies the horizontal skew angle. Default value for this attribute is 0.

ky : An optional ST_FixedAngle (as specified in [ISO/IEC-29500-1] §20.1.10.23) attribute that specifies the vertical skew angle. Default value for this attribute is 0.

algn : An optional ST_RectAlignment attribute that specifies the alignment of the shadow. Default value for this attribute is “none”.

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.

<xsd:complexType name="CT_Shadow">

<xsd:sequence>

<xsd:group ref="EG_ColorChoice"/>

</xsd:sequence>

<xsd:attribute name="blurRad" use="optional" type="a:ST_PositiveCoordinate"/>

<xsd:attribute name="dist" use="optional" type="a:ST_PositiveCoordinate"/>

<xsd:attribute name="dir" use="optional" type="a:ST_PositiveFixedAngle"/>

<xsd:attribute name="sx" use="optional" type="ST_Percentage"/>

<xsd:attribute name="sy" use="optional" type="ST_Percentage"/>

<xsd:attribute name="kx" use="optional" type="a:ST_FixedAngle"/>

<xsd:attribute name="ky" use="optional" type="a:ST_FixedAngle"/>

<xsd:attribute name="algn" use="optional" type="ST_RectAlignment"/>

</xsd:complexType>

See section 5.1 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Shadow Members

DocumentFormat.OpenXml.Office2010.Word Namespace