ForegroundMark Class
Defines the ForegroundMark Class.This class is only available in Office2010.When the object is serialized out as xml, its qualified name is a14:foregroundMark.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlLeafElement
DocumentFormat.OpenXml.Office2010.Drawing.ForegroundMark
Namespace: DocumentFormat.OpenXml.Office2010.Drawing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Декларация
<OfficeAvailabilityAttribute(FileFormatVersions.Office2010)> _
Public Class ForegroundMark _
Inherits OpenXmlLeafElement
'Применение
Dim instance As ForegroundMark
[OfficeAvailabilityAttribute(FileFormatVersions.Office2010)]
public class ForegroundMark : OpenXmlLeafElement
Remarks
2.5.25 CT_PictureEffectBackgroundRemovalForegroundMark
Target namespace: https://schemas.microsoft.com/office/drawing/2007/7/7/main
Referenced by: CT_PictureEffectBackgroundRemoval
A complex type that specifies a line segment which marks a region to include within a picture.
Attributes:
x1 : An ST_PositiveFixedPercentage ([ISO/IEC-29500-1] section A.4.1) attribute that specifies the first x coordinate of the foreground mark, relative to the width of a picture.
y1 : An ST_PositiveFixedPercentage ([ISO/IEC-29500-1] section A.4.1) attribute that specifies the first y coordinate of the foreground mark, relative to the height of a picture.
x2 : An ST_PositiveFixedPercentage ([ISO/IEC-29500-1] section A.4.1) attribute that specifies the second x coordinate of the foreground mark, relative to the width of a picture.
y2 : An ST_PositiveFixedPercentage ([ISO/IEC-29500-1] section A.4.1) attribute that specifies the second y coordinate of the foreground mark, relative to the height of a picture.
The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.
<xsd:complexType name="CT_PictureEffectBackgroundRemovalForegroundMark">
<xsd:attribute name="x1" type="a:ST_PositiveFixedPercentage" use="required"/>
<xsd:attribute name="y1" type="a:ST_PositiveFixedPercentage" use="required"/>
<xsd:attribute name="x2" type="a:ST_PositiveFixedPercentage" use="required"/>
<xsd:attribute name="y2" 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.