Поделиться через


GradientStop Class

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

Inheritance Hierarchy

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

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 GradientStop _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As GradientStop
[ChildElementInfoAttribute(typeof(SchemeColor), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(RgbColorModelHex), FileFormatVersions.Office2010)]
[OfficeAvailabilityAttribute(FileFormatVersions.Office2010)]
public class GradientStop : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • RgbColorModelHex <w14:srgbClr>

  • SchemeColor <w14:schemeClr>

2.5.10 CT_GradientStop

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

Referenced by: CT_GradientStopList

Specifies a gradient stop. A gradient stop consists of a position where the stop appears in the color band.

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:

pos : An ST_PositiveFixedPercentage attribute that specifies where this gradient stop should appear in the color band.

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

<xsd:complexType name="CT_GradientStop">

<xsd:sequence>

<xsd:group ref="EG_ColorChoice"/>

</xsd:sequence>

<xsd:attribute name="pos" type="ST_PositiveFixedPercentage" use="required"/>

</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

GradientStop Members

DocumentFormat.OpenXml.Office2010.Word Namespace