次の方法で共有


PatternFill Class

Pattern.When the object is serialized out as xml, its qualified name is x:patternFill.

Inheritance Hierarchy

System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Spreadsheet.PatternFill

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

Syntax

'宣言
<ChildElementInfoAttribute(GetType(ForegroundColor))> _
<ChildElementInfoAttribute(GetType(BackgroundColor))> _
Public Class PatternFill _
    Inherits OpenXmlCompositeElement
'使用
Dim instance As PatternFill
[ChildElementInfoAttribute(typeof(ForegroundColor))]
[ChildElementInfoAttribute(typeof(BackgroundColor))]
public class PatternFill : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • ForegroundColor <x:fgColor>

  • BackgroundColor <x:bgColor>

[ISO/IEC 29500-1 初版]

18.8.32 patternFill (Pattern)

This element is used to specify cell fill information for pattern and solid color cell fills. For solid cell fills (no pattern), fgColor is used. For cell fills with patterns specified, then the cell fill color is specified by the bgColor element.

Parent Elements

fill (§18.8.20)

Child Elements

Subclause

bgColor (Background Color)

§18.8.3

fgColor (Foreground Color)

§18.8.19

Attributes

Description

patternType (Pattern Type)

Specifies the fill pattern type (including solid and none) Default is none, when missing.

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

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

© ISO/IEC29500: 2008. 上記の引用はマイクロソフト (またはその代理) によって英語から日本語に翻訳されたものであり、ISO はこうした翻訳に対する責任を一切負いません。

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

PatternFill Members

DocumentFormat.OpenXml.Spreadsheet Namespace