AlphaOffset class

Office 2013 and later

Alpha Offset. When the object is serialized out as xml, its qualified name is a:alphaOff.

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

public class AlphaOffset : OpenXmlLeafElement

[ISO/IEC 29500-1 1st Edition]

alphaOff (Alpha Offset)

This element specifies a more or less opaque version of its input color. Increases or decreases the input alpha percentage by the specified percentage offset. A 10% alpha offset increases a 50% opacity to 60%. A -10% alpha offset decreases a 50% opacity to 40%. The transformed alpha values are limited to a range of 0 to 100%. A 10% alpha offset increase to a 100% opaque object still results in 100% opacity.

Parent Elements

hslClr (§; prstClr (§; schemeClr (§; scrgbClr (§; srgbClr (§; sysClr (§



val (Value)

Specifies the opacity as expressed by a percentage offset increase or decrease relative to the input color. Increases never increase the opacity beyond 100%, decreases never decrease the opacity below 0%.

[Example: The following represents a green solid fill which is 90% opaque

  <a:srgbClr val="00FF00">
    <a:alphaOff val="-10.000%"/>

end example]

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

[Note: The W3C XML Schema definition of this element’s content model (CT_FixedPercentage) 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.