共用方式為


RecolorImages Class

Defines the RecolorImages Class.This class is only available in Office2010.When the object is serialized out as xml, its qualified name is dgm14:recolorImg.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Office2010.Drawing.Diagram.RecolorImages

Namespace:  DocumentFormat.OpenXml.Office2010.Drawing.Diagram
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<OfficeAvailabilityAttribute(FileFormatVersions.Office2010)> _
Public Class RecolorImages _
    Inherits OpenXmlLeafElement
'Usage
Dim instance As RecolorImages
[OfficeAvailabilityAttribute(FileFormatVersions.Office2010)]
public class RecolorImages : OpenXmlLeafElement

Remarks

2.3.19 recolorImg

Target namespace: https://schemas.microsoft.com/officeart/2007/7/20/diagram

A CT_Boolean element that specifies images in the diagram are to be rendered as duotone, and thus rendered with the color specified by the fillCrlLst ([ISO/IEC-29500-1] section 21.4.4.8) of the color transform on the diagram.

Below is a sample demonstrating the effect of this flag on a diagram with images in it:

recolorImg is false or not present

recolorImg is true

DocumentFormat.OpenXml.Office2010.Drawing.Diagram. DocumentFormat.OpenXml.Office2010.Drawing.Diagram.

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

<xsd:element name="recolorImg" type="CT_Boolean"/>

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

2.5.49 CT_Boolean

Target namespace: https://schemas.microsoft.com/officeart/2007/7/20/diagram

Referenced by: recolorImg

Defines a property with a boolean value.

Attributes:

val : Specifies a binary value for the property defined by the parent XML element. If this attribute is not specified, then a value of false is assumed.

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

<xsd:complexType name="CT_Boolean">

<xsd:attribute name="val" type="xsd:boolean" use="optional" default="false"/>

</xsd:complexType>

See section 5.7 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

RecolorImages Members

DocumentFormat.OpenXml.Office2010.Drawing.Diagram Namespace