Share via


RgbColor-Klasse

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

Vererbungshierarchie

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

Hinweise

[ISO/IEC 29500-1 1. Ausgabe]

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. Die oben aufgeführten Textauszüge wurden von Microsoft (und/oder den Microsoft-Vendoren) von Englisch nach Deutsch übersetzt, und im Rahmen von ISO wird keinerlei Verantwortung für diese Übersetzungen übernommen.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Siehe auch

Referenz

RgbColor-Member

DocumentFormat.OpenXml.Presentation-Namespace