PresetColor class

Office 2013 and later

Preset Color. When the object is serialized out as xml, its qualified name is a:prstClr.

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

No code example is currently available or this language may not be supported.

[ISO/IEC 29500-1 1st Edition]

prstClr (Preset Color)

This element specifies a color which is bound to one of a predefined collection of colors.

[Example:

The following defines a solid fill bound to the "black" preset color.

<a:solidFill>
  <a:prstClr val="black">
</a:solidFill>

end example]

Parent Elements

accent1 (§20.1.4.1.1); accent2 (§20.1.4.1.2); accent3 (§20.1.4.1.3); accent4 (§20.1.4.1.4); accent5 (§20.1.4.1.5); accent6 (§20.1.4.1.6); alphaInv (§20.1.8.4); bgClr (§20.1.8.10); bgRef (§19.3.1.3); buClr (§21.1.2.4.4); clrFrom (§20.1.8.17); clrMru (§19.2.1.4); clrRepl (§20.1.8.18); clrTo (§20.1.8.19); clrVal (§19.5.27); contourClr (§20.1.5.6); custClr (§20.1.4.1.8); dk1 (§20.1.4.1.9); dk2 (§20.1.4.1.10); duotone (§20.1.8.23); effectClrLst (§21.4.4.7); effectRef (§20.1.4.2.8); extrusionClr (§20.1.5.7); fgClr (§20.1.8.27); fillClrLst (§21.4.4.8); fillRef (§20.1.4.2.10); folHlink (§20.1.4.1.15); fontRef (§20.1.4.1.17); from (§19.5.43); glow (§20.1.8.32); gs (§20.1.8.36); highlight (§21.1.2.3.4); hlink (§20.1.4.1.19); innerShdw (§20.1.8.40); linClrLst (§21.4.4.9); lnRef (§20.1.4.2.19); lt1 (§20.1.4.1.22); lt2 (§20.1.4.1.23); outerShdw (§20.1.8.45); penClr (§19.2.1.23); prstShdw (§20.1.8.49); solidFill (§20.1.8.54); tcTxStyle (§20.1.4.2.30); to (§19.5.90); txEffectClrLst (§21.4.4.12); txFillClrLst (§21.4.4.13); txLinClrLst (§21.4.4.14)

Child Elements

Subclause

alpha (Alpha)

§20.1.2.3.1

alphaMod (Alpha Modulation)

§20.1.2.3.2

alphaOff (Alpha Offset)

§20.1.2.3.3

blue (Blue)

§20.1.2.3.4

blueMod (Blue Modification)

§20.1.2.3.5

blueOff (Blue Offset)

§20.1.2.3.6

comp (Complement)

§20.1.2.3.7

gamma (Gamma)

§20.1.2.3.8

gray (Gray)

§20.1.2.3.9

green (Green)

§20.1.2.3.10

greenMod (Green Modification)

§20.1.2.3.11

greenOff (Green Offset)

§20.1.2.3.12

hue (Hue)

§20.1.2.3.14

hueMod (Hue Modulate)

§20.1.2.3.15

hueOff (Hue Offset)

§20.1.2.3.16

inv (Inverse)

§20.1.2.3.17

invGamma (Inverse Gamma)

§20.1.2.3.18

lum (Luminance)

§20.1.2.3.19

lumMod (Luminance Modulation)

§20.1.2.3.20

lumOff (Luminance Offset)

§20.1.2.3.21

red (Red)

§20.1.2.3.23

redMod (Red Modulation)

§20.1.2.3.24

redOff (Red Offset)

§20.1.2.3.25

sat (Saturation)

§20.1.2.3.26

satMod (Saturation Modulation)

§20.1.2.3.27

satOff (Saturation Offset)

§20.1.2.3.28

shade (Shade)

§20.1.2.3.31

tint (Tint)

§20.1.2.3.34

Attributes

Description

val (Value)

Specifies the actual preset color value.

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

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

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: