BackgroundRemoval Class

Defines the BackgroundRemoval Class.This class is only available in Office2010.When the object is serialized out as xml, its qualified name is a14:backgroundRemoval.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Office2010.Drawing.BackgroundRemoval

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(ForegroundMark), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(BackgroundMark), FileFormatVersions.Office2010)> _
<OfficeAvailabilityAttribute(FileFormatVersions.Office2010)> _
Public Class BackgroundRemoval _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As BackgroundRemoval
[ChildElementInfoAttribute(typeof(ForegroundMark), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(BackgroundMark), FileFormatVersions.Office2010)]
[OfficeAvailabilityAttribute(FileFormatVersions.Office2010)]
public class BackgroundRemoval : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • ForegroundMark <a14:foregroundMark>

  • BackgroundMark <a14:backgroundMark>

2.5.27 CT_PictureEffectBackgroundRemoval

Target namespace: https://schemas.microsoft.com/office/drawing/2007/7/7/main

Referenced by: CT_PictureEffect

A complex type that specifies a background removal effect applied to a picture. A marquee defines the rectangular region limiting what pixels are considered to be in the foreground of a picture. Foreground and background marks further specify regions to include and exclude.

Child Elements:

foregroundMark : A CT_PictureEffectBackgroundRemovalForegroundMark element that specifies a line segment which marks a region to include within a picture.

backgroundMark : A CT_PictureEffectBackgroundRemovalBackgroundMark element that specifies a line segment which marks a region to exclude from a picture.

Attributes:

t : An ST_PositiveFixedPercentage ([ISO/IEC-29500-1] section A.4.1) attribute that specifies the top position of the marquee, relative to the height of a picture.

b : An ST_PositiveFixedPercentage ([ISO/IEC-29500-1] section A.4.1) attribute that specifies the bottom position of the marquee, relative to the height of a picture.

l : An ST_PositiveFixedPercentage ([ISO/IEC-29500-1] section A.4.1) attribute that specifies the left position of the marquee, relative to the width of a picture.

r : An ST_PositiveFixedPercentage ([ISO/IEC-29500-1] section A.4.1) attribute that specifies the right position of the marquee, relative to the width of a picture.

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

<xsd:complexType name="CT_PictureEffectBackgroundRemoval">

<xsd:sequence>

<xsd:element name="foregroundMark" type="CT_PictureEffectBackgroundRemovalForegroundMark" minOccurs="0" maxOccurs="unbounded"/>

<xsd:element name="backgroundMark" type="CT_PictureEffectBackgroundRemovalBackgroundMark" minOccurs="0" maxOccurs="unbounded"/>

</xsd:sequence>

<xsd:attribute name="t" type="a:ST_PositiveFixedPercentage" use="required"/>

<xsd:attribute name="b" type="a:ST_PositiveFixedPercentage" use="required"/>

<xsd:attribute name="l" type="a:ST_PositiveFixedPercentage" use="required"/>

<xsd:attribute name="r" type="a:ST_PositiveFixedPercentage" use="required"/>

</xsd:complexType>

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

BackgroundRemoval Members

DocumentFormat.OpenXml.Office2010.Drawing Namespace