PathShadeProperties Class
Defines the PathShadeProperties Class.This class is only available in Office2010.When the object is serialized out as xml, its qualified name is w14:path.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Office2010.Word.PathShadeProperties
Namespace: DocumentFormat.OpenXml.Office2010.Word
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'宣言
<OfficeAvailabilityAttribute(FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(FillToRectangle), FileFormatVersions.Office2010)> _
Public Class PathShadeProperties _
Inherits OpenXmlCompositeElement
'使用
Dim instance As PathShadeProperties
[OfficeAvailabilityAttribute(FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(FillToRectangle), FileFormatVersions.Office2010)]
public class PathShadeProperties : OpenXmlCompositeElement
Remarks
The following table lists the possible child types:
- FillToRectangle <w14:fillToRect>
2.5.13 CT_PathShadeProperties
Target namespace: https://schemas.microsoft.com/office/word/2009/2/wordml
Referenced by: CT_GradientFillProperties
Specifies that a gradient fill follows a path vs. a linear line.
Child Elements:
fillToRect : A CT_RelativeRect element that specifies the focus rectangle for center shade as in [ISO/IEC-29500-1] §20.1.8.31. Center shade fills the entire shape except the margins specified by each attribute of this element. Each edge of the center shade rectangle is specified by a percentage offset from the corresponding edge of the container. A positive percentage specifies an inset and a negative percentage specifies an outset. By default, center shade fills the entire shape.
Attributes:
path : An optional ST_PathShadeType attribute that specifies the shape of the path to follow. By default, gradient fill will follow a rectangular path. This attribute MAY<12> be required.
The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.
<xsd:complexType name="CT_PathShadeProperties">
<xsd:sequence>
<xsd:element name="fillToRect" type="CT_RelativeRect" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="path" type="ST_PathShadeType" use="optional"/>
</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.