Compartir a través de


RgbColor Class

RGB.When the object is serialized out as xml, its qualified name is p:rgb.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Presentation.RgbColor

Namespace:  DocumentFormat.OpenXml.Presentation
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
Public Class RgbColor _
    Inherits OpenXmlLeafElement
'Usage
Dim instance As RgbColor
public class RgbColor : OpenXmlLeafElement

Remarks

[ISO/IEC 29500-1 1st Edition]

19.5.63 rgb (RGB)

The element specifies an incremental RGB value to add to the color property.

[Example: Consider a shape with a color emphasis animation. The <rgb> element should be used as follows:

<p:animClr clrSpc="rgb">
  <p:cBhvr>
    <p:cTn id="8" dur="500" fill="hold"/>
    <p:tgtEl>
      <p:spTgt spid="4"/>
    </p:tgtEl>
    <p:attrNameLst>
      <p:attrName>stroke.color</p:attrName>
    </p:attrNameLst>
  </p:cBhvr>
  <p:by>
    <p:rgb r="10" g="20" b="30"/>
  </p:by>
</p:animClr>

end example]

Parent Elements

by (§19.5.20)

Attributes

Description

b (Blue)

This attribute specifies a blue as a fixed percentage in 1000ths of a percent when no percent sign is included in the value or as percent when a percent sign is present. Values range from [-100%, 100%].

The possible values for this attribute are defined by the ST_FixedPercentage simple type (§20.1.10.24).

g (Green)

This attribute specifies a green as a fixed percentage in 1000ths of a percent when no percent sign is included in the value or as percent when a percent sign is present. Values range from [-100%, 100%].

The possible values for this attribute are defined by the ST_FixedPercentage simple type (§20.1.10.24).

r (Red)

This attribute specifies a red as a fixed percentage in 1000ths of a percent when no percent sign is included in the value or as percent when a percent sign is present. Values range from [-100%, 100%].

The possible values for this attribute are defined by the ST_FixedPercentage simple type (§20.1.10.24).

[Note: The W3C XML Schema definition of this element’s content model (CT_TLByRgbColorTransform) is located in §A.3. end note]

© ISO/IEC29500: 2008.

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

RgbColor Members

DocumentFormat.OpenXml.Presentation Namespace