diff --git a/src/DocumentFormat.OpenXml/Framework/OpenXmlNamespace.cs b/src/DocumentFormat.OpenXml/Framework/OpenXmlNamespace.cs index 5c087f52a..63563b6fb 100644 --- a/src/DocumentFormat.OpenXml/Framework/OpenXmlNamespace.cs +++ b/src/DocumentFormat.OpenXml/Framework/OpenXmlNamespace.cs @@ -242,6 +242,8 @@ private static string NormalizeNamespace(in OpenXmlNamespace ns) // O19 { "http://schemas.microsoft.com/office/powerpoint/2017/3/main", "p173", FileFormatVersions.Office2019 }, + { "http://schemas.microsoft.com/office/powerpoint/2017/10/main", "p1710", FileFormatVersions.Office2019 }, + { "http://schemas.microsoft.com/office/powerpoint/2018/4/main", "p184", FileFormatVersions.Office2019 }, { "http://schemas.microsoft.com/office/spreadsheetml/2016/pivotdefaultlayout", "xpdl", FileFormatVersions.Office2019 }, { "http://schemas.microsoft.com/office/spreadsheetml/2016/01/main", "xlPr", FileFormatVersions.Office2019 }, { "http://schemas.microsoft.com/office/spreadsheetml/2015/revision2", "xr2", FileFormatVersions.Office2019 }, @@ -257,9 +259,14 @@ private static string NormalizeNamespace(in OpenXmlNamespace ns) { "http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments", "xltc", FileFormatVersions.Office2019 }, { "http://schemas.microsoft.com/office/drawing/2017/03/chart", "c16r3", FileFormatVersions.Office2019 }, { "http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray", "xda", FileFormatVersions.Office2019 }, + { "http://schemas.microsoft.com/office/drawing/2016/11/main", "a1611", FileFormatVersions.Office2019 }, { "http://schemas.microsoft.com/office/drawing/2016/11/diagram", "dgm1611", FileFormatVersions.Office2019 }, { "http://schemas.microsoft.com/office/drawing/2016/12/diagram", "dgm1612", FileFormatVersions.Office2019 }, { "http://schemas.microsoft.com/office/drawing/2016/ink", "aink", FileFormatVersions.Office2019 }, + { "http://schemas.microsoft.com/office/drawing/2017/model3d", "am3d", FileFormatVersions.Office2019 }, + { "http://schemas.microsoft.com/office/drawing/2017/decorative", "adec", FileFormatVersions.Office2019 }, + { "http://schemas.microsoft.com/office/drawing/2018/animation", "aanim", FileFormatVersions.Office2019 }, + { "http://schemas.microsoft.com/office/drawing/2018/animation/model3d", "a3danim", FileFormatVersions.Office2019 }, { "http://schemas.microsoft.com/office/drawing/2018/hyperlinkcolor", "ahyp", FileFormatVersions.Office2019 }, { "http://schemas.microsoft.com/office/word/2016/wordml/cid", "w16cid", FileFormatVersions.Office2019 }, { "http://schemas.microsoft.com/office/drawing/2016/SVG/main", "asvg", FileFormatVersions.Office2019 }, diff --git a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2016_11_diagram.g.cs b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2016_11_diagram.g.cs index f01d7320a..52622c699 100644 --- a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2016_11_diagram.g.cs +++ b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2016_11_diagram.g.cs @@ -28,7 +28,7 @@ namespace DocumentFormat.OpenXml.Office2019.Drawing.Diagram11 /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(103, "autoBuNodeInfoLst")] + [SchemaAttr(106, "autoBuNodeInfoLst")] #pragma warning restore CS0618 // Type or member is obsolete public partial class NumberDiagramInfoList : OpenXmlCompositeElement { @@ -66,7 +66,7 @@ public NumberDiagramInfoList(string outerXml) : base(outerXml) internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(103, "autoBuNodeInfoLst"); + builder.SetSchema(106, "autoBuNodeInfoLst"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) @@ -94,7 +94,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(103, "buPr")] + [SchemaAttr(106, "buPr")] #pragma warning restore CS0618 // Type or member is obsolete public partial class DiagramAutoBullet : OpenXmlCompositeElement { @@ -164,7 +164,7 @@ public BooleanValue? LeadZeros internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(103, "buPr"); + builder.SetSchema(106, "buPr"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.AddChild(); @@ -253,7 +253,7 @@ public DocumentFormat.OpenXml.Drawing.PictureBullet? PictureBullet /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(103, "autoBuNodeInfo")] + [SchemaAttr(106, "autoBuNodeInfo")] #pragma warning restore CS0618 // Type or member is obsolete public partial class NumberDiagramInfo : OpenXmlCompositeElement { @@ -323,7 +323,7 @@ public EnumValue(); builder.AddElement() diff --git a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2016_11_main.g.cs b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2016_11_main.g.cs new file mode 100644 index 000000000..7ece7b3f3 --- /dev/null +++ b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2016_11_main.g.cs @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +#nullable enable + +using DocumentFormat.OpenXml; +using DocumentFormat.OpenXml.Framework; +using DocumentFormat.OpenXml.Framework.Metadata; +using DocumentFormat.OpenXml.Packaging; +using DocumentFormat.OpenXml.Validation.Schema; +using System; +using System.Collections.Generic; +using System.IO.Packaging; + +namespace DocumentFormat.OpenXml.Office2019.Drawing +{ + /// + /// Defines the PictureAttributionSourceURL Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is a1611:picAttrSrcUrl. + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(105, "picAttrSrcUrl")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class PictureAttributionSourceURL : OpenXmlLeafElement + { + /// + /// Initializes a new instance of the PictureAttributionSourceURL class. + /// + public PictureAttributionSourceURL() : base() + { + } + + /// + /// id, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: r:id + /// + /// + /// xmlns:r=http://schemas.openxmlformats.org/officeDocument/2006/relationships + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(19, "id")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Id + { + get => GetAttribute(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(105, "picAttrSrcUrl"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddElement() +.AddAttribute(19, "id", a => a.Id, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +}); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } +} \ No newline at end of file diff --git a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2016_12_diagram.g.cs b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2016_12_diagram.g.cs index b10cb9a4f..d0a64ba8d 100644 --- a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2016_12_diagram.g.cs +++ b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2016_12_diagram.g.cs @@ -41,7 +41,7 @@ namespace DocumentFormat.OpenXml.Office2019.Drawing.Diagram12 /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(104, "spPr")] + [SchemaAttr(107, "spPr")] #pragma warning restore CS0618 // Type or member is obsolete public partial class ShapeProperties : OpenXmlCompositeElement { @@ -95,7 +95,7 @@ public EnumValue? BlackWhit internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(104, "spPr"); + builder.SetSchema(107, "spPr"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.AddChild(); @@ -194,7 +194,7 @@ public DocumentFormat.OpenXml.Drawing.Transform2D? Transform2D /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(104, "lstStyle")] + [SchemaAttr(107, "lstStyle")] #pragma warning restore CS0618 // Type or member is obsolete public partial class TextListStyleType : OpenXmlCompositeElement { @@ -232,7 +232,7 @@ public TextListStyleType(string outerXml) : base(outerXml) internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(104, "lstStyle"); + builder.SetSchema(107, "lstStyle"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.AddChild(); diff --git a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2016_SVG_main.g.cs b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2016_SVG_main.g.cs index 20feb03e2..89bc20e50 100644 --- a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2016_SVG_main.g.cs +++ b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2016_SVG_main.g.cs @@ -21,7 +21,7 @@ namespace DocumentFormat.OpenXml.Office2019.Drawing.SVG /// When the object is serialized out as xml, it's qualified name is asvg:svgBlip. /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(108, "svgBlip")] + [SchemaAttr(115, "svgBlip")] #pragma warning restore CS0618 // Type or member is obsolete public partial class SVGBlip : OpenXmlLeafElement { @@ -73,7 +73,7 @@ public StringValue? Link internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(108, "svgBlip"); + builder.SetSchema(115, "svgBlip"); builder.Availability = FileFormatVersions.Office2019; builder.AddElement() .AddAttribute(19, "embed", a => a.Embed) diff --git a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2017_03_chart.g.cs b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2017_03_chart.g.cs index 9ec4483ea..a69766b17 100644 --- a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2017_03_chart.g.cs +++ b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2017_03_chart.g.cs @@ -27,7 +27,7 @@ namespace DocumentFormat.OpenXml.Office2019.Drawing.Chart /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(101, "dataDisplayOptions16")] + [SchemaAttr(103, "dataDisplayOptions16")] #pragma warning restore CS0618 // Type or member is obsolete public partial class DataDisplayOptions16 : OpenXmlCompositeElement { @@ -65,7 +65,7 @@ public DataDisplayOptions16(string outerXml) : base(outerXml) internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(101, "dataDisplayOptions16"); + builder.SetSchema(103, "dataDisplayOptions16"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) @@ -97,7 +97,7 @@ public BooleanFalse? BooleanFalse /// When the object is serialized out as xml, it's qualified name is c16r3:dispNaAsBlank. /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(101, "dispNaAsBlank")] + [SchemaAttr(103, "dispNaAsBlank")] #pragma warning restore CS0618 // Type or member is obsolete public partial class BooleanFalse : OpenXmlLeafElement { @@ -118,7 +118,7 @@ public BooleanFalse() : base() #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(101, "val")] + [SchemaAttr(103, "val")] #pragma warning restore CS0618 // Type or member is obsolete public BooleanValue? Val @@ -130,10 +130,10 @@ public BooleanValue? Val internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(101, "dispNaAsBlank"); + builder.SetSchema(103, "dispNaAsBlank"); builder.Availability = FileFormatVersions.Office2019; builder.AddElement() -.AddAttribute(101, "val", a => a.Val, aBuilder => +.AddAttribute(103, "val", a => a.Val, aBuilder => { aBuilder.AddValidator(new OfficeVersionValidator(FileFormatVersions.Office2019)); }); diff --git a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2017_decorative.g.cs b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2017_decorative.g.cs new file mode 100644 index 000000000..376097196 --- /dev/null +++ b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2017_decorative.g.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +#nullable enable + +using DocumentFormat.OpenXml; +using DocumentFormat.OpenXml.Drawing; +using DocumentFormat.OpenXml.Framework; +using DocumentFormat.OpenXml.Framework.Metadata; +using DocumentFormat.OpenXml.Packaging; +using DocumentFormat.OpenXml.Validation.Schema; +using System; +using System.Collections.Generic; +using System.IO.Packaging; + +namespace DocumentFormat.OpenXml.Office2019.Drawing +{ + /// + /// Defines the Decorative Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is adec:decorative. + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(110, "decorative")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class Decorative : OpenXmlLeafElement + { + /// + /// Initializes a new instance of the Decorative class. + /// + public Decorative() : base() + { + } + + /// + /// val, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: val + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "val")] +#pragma warning restore CS0618 // Type or member is obsolete + + public BooleanValue? Val + { + get => GetAttribute(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(110, "decorative"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddElement() +.AddAttribute(0, "val", a => a.Val); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } +} \ No newline at end of file diff --git a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2017_model3d.g.cs b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2017_model3d.g.cs new file mode 100644 index 000000000..8de43ea59 --- /dev/null +++ b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2017_model3d.g.cs @@ -0,0 +1,3280 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +#nullable enable + +using DocumentFormat.OpenXml; +using DocumentFormat.OpenXml.Drawing; +using DocumentFormat.OpenXml.Framework; +using DocumentFormat.OpenXml.Framework.Metadata; +using DocumentFormat.OpenXml.Office2019.Drawing; +using DocumentFormat.OpenXml.Office2019.Drawing.Animation.Model3D; +using DocumentFormat.OpenXml.Packaging; +using DocumentFormat.OpenXml.Validation.Schema; +using System; +using System.Collections.Generic; +using System.IO.Packaging; + +namespace DocumentFormat.OpenXml.Office2019.Drawing.Model3D +{ + /// + /// Defines the Model3D Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:model3D. + /// + /// + /// The following table lists the possible child types: + /// + /// ShapeProperties <am3d:spPr> + /// Model3DCamera <am3d:camera> + /// Model3DTransform <am3d:trans> + /// PictureAttributionSourceURL <am3d:attrSrcUrl> + /// Model3DRaster <am3d:raster> + /// Model3DExtensionList <am3d:extLst> + /// ObjectViewport <am3d:objViewport> + /// WindowViewport <am3d:winViewport> + /// AmbientLight <am3d:ambientLight> + /// PointLight <am3d:ptLight> + /// SpotLight <am3d:spotLight> + /// DirectionalLight <am3d:dirLight> + /// UnknownLight <am3d:unkLight> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "model3D")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class Model3D : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the Model3D class. + /// + public Model3D() : base() + { + } + + /// + /// Initializes a new instance of the Model3D class with the specified child elements. + /// + /// Specifies the child elements. + public Model3D(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the Model3D class with the specified child elements. + /// + /// Specifies the child elements. + public Model3D(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the Model3D class from outer XML. + /// + /// Specifies the outer XML of the element. + public Model3D(string outerXml) : base(outerXml) + { + } + + /// + /// Embedded Picture Reference + /// Represents the following attribute in the schema: r:embed + /// + /// + /// xmlns:r=http://schemas.openxmlformats.org/officeDocument/2006/relationships + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(19, "embed")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Embed + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// Linked Picture Reference + /// Represents the following attribute in the schema: r:link + /// + /// + /// xmlns:r=http://schemas.openxmlformats.org/officeDocument/2006/relationships + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(19, "link")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Link + { + get => GetAttribute(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "model3D"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddElement() +.AddAttribute(19, "embed", a => a.Embed) +.AddAttribute(19, "link", a => a.Link); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.ShapeProperties), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Model3DCamera), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Model3DTransform), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.PictureAttributionSourceURL), 0, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Model3DRaster), 0, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Model3DExtensionList), 0, 1, version: FileFormatVersions.Office2019), + new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.ObjectViewport), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.WindowViewport), 1, 1, version: FileFormatVersions.Office2019) + }, + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.AmbientLight), 0, 1, version: FileFormatVersions.Office2019), + new CompositeParticle.Builder(ParticleType.Choice, 0, 0) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.PointLight), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.SpotLight), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.DirectionalLight), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.UnknownLight), 1, 1, version: FileFormatVersions.Office2019) + } + }; + } + + /// + /// ShapeProperties. + /// Represents the following element tag in the schema: am3d:spPr. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public ShapeProperties? ShapeProperties + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// Model3DCamera. + /// Represents the following element tag in the schema: am3d:camera. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public Model3DCamera? Model3DCamera + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// Model3DTransform. + /// Represents the following element tag in the schema: am3d:trans. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public Model3DTransform? Model3DTransform + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// Optional source attribution URL describes from whence the 3D model came.. + /// Represents the following element tag in the schema: am3d:attrSrcUrl. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public PictureAttributionSourceURL? PictureAttributionSourceURL + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// Model3DRaster. + /// Represents the following element tag in the schema: am3d:raster. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public Model3DRaster? Model3DRaster + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// Future Model3D extensions. + /// Represents the following element tag in the schema: am3d:extLst. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public Model3DExtensionList? Model3DExtensionList + { + get => GetElement(); + set => SetElement(value); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the SxRatio Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:sx. + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "sx")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class SxRatio : RatioType + { + /// + /// Initializes a new instance of the SxRatio class. + /// + public SxRatio() : base() + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "sx"); + builder.Availability = FileFormatVersions.Office2019; + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the SyRatio Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:sy. + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "sy")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class SyRatio : RatioType + { + /// + /// Initializes a new instance of the SyRatio class. + /// + public SyRatio() : base() + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "sy"); + builder.Availability = FileFormatVersions.Office2019; + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the SzRatio Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:sz. + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "sz")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class SzRatio : RatioType + { + /// + /// Initializes a new instance of the SzRatio class. + /// + public SzRatio() : base() + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "sz"); + builder.Availability = FileFormatVersions.Office2019; + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the RatioType Class. + /// This class is available in Office 2007 and above. + /// When the object is serialized out as xml, it's qualified name is :. + /// + public abstract partial class RatioType : OpenXmlLeafElement + { + /// + /// Initializes a new instance of the RatioType class. + /// + protected RatioType() : base() + { + } + + /// + /// Numerator + /// Represents the following attribute in the schema: n + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "n")] +#pragma warning restore CS0618 // Type or member is obsolete + + public Int32Value? Numerator + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// Denominator + /// Represents the following attribute in the schema: d + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "d")] +#pragma warning restore CS0618 // Type or member is obsolete + + public Int32Value? Denominator + { + get => GetAttribute(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.AddElement() + .AddAttribute(0, "n", a => a.Numerator, aBuilder => + { + aBuilder.AddValidator(RequiredValidator.Instance); + }) + .AddAttribute(0, "d", a => a.Denominator, aBuilder => + { + aBuilder.AddValidator(RequiredValidator.Instance); + }); + } + } + + /// + /// Defines the MeterPerModelUnitPositiveRatio Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:meterPerModelUnit. + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "meterPerModelUnit")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class MeterPerModelUnitPositiveRatio : OpenXmlPositiveRatioElement + { + /// + /// Initializes a new instance of the MeterPerModelUnitPositiveRatio class. + /// + public MeterPerModelUnitPositiveRatio() : base() + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "meterPerModelUnit"); + builder.Availability = FileFormatVersions.Office2019; + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the SzPositiveRatio Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:sz. + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "sz")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class SzPositiveRatio : OpenXmlPositiveRatioElement + { + /// + /// Initializes a new instance of the SzPositiveRatio class. + /// + public SzPositiveRatio() : base() + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "sz"); + builder.Availability = FileFormatVersions.Office2019; + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the IlluminancePositiveRatio Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:illuminance. + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "illuminance")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class IlluminancePositiveRatio : OpenXmlPositiveRatioElement + { + /// + /// Initializes a new instance of the IlluminancePositiveRatio class. + /// + public IlluminancePositiveRatio() : base() + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "illuminance"); + builder.Availability = FileFormatVersions.Office2019; + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the IntensityPositiveRatio Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:intensity. + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "intensity")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class IntensityPositiveRatio : OpenXmlPositiveRatioElement + { + /// + /// Initializes a new instance of the IntensityPositiveRatio class. + /// + public IntensityPositiveRatio() : base() + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "intensity"); + builder.Availability = FileFormatVersions.Office2019; + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the OpenXmlPositiveRatioElement Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is :. + /// + public abstract partial class OpenXmlPositiveRatioElement : OpenXmlLeafElement + { + /// + /// Initializes a new instance of the OpenXmlPositiveRatioElement class. + /// + protected OpenXmlPositiveRatioElement() : base() + { + } + + /// + /// n, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: n + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "n")] +#pragma warning restore CS0618 // Type or member is obsolete + + public UInt64Value? N + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// d, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: d + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "d")] +#pragma warning restore CS0618 // Type or member is obsolete + + public UInt64Value? D + { + get => GetAttribute(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.AddElement() + .AddAttribute(0, "n", a => a.N, aBuilder => + { + aBuilder.AddValidator(RequiredValidator.Instance); + }) + .AddAttribute(0, "d", a => a.D, aBuilder => + { + aBuilder.AddValidator(RequiredValidator.Instance); + }); + } + } + + /// + /// Defines the PreTransVector3D Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:preTrans. + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "preTrans")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class PreTransVector3D : Vector3DType + { + /// + /// Initializes a new instance of the PreTransVector3D class. + /// + public PreTransVector3D() : base() + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "preTrans"); + builder.Availability = FileFormatVersions.Office2019; + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the PostTransVector3D Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:postTrans. + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "postTrans")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class PostTransVector3D : Vector3DType + { + /// + /// Initializes a new instance of the PostTransVector3D class. + /// + public PostTransVector3D() : base() + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "postTrans"); + builder.Availability = FileFormatVersions.Office2019; + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the UpVector3D Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:up. + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "up")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class UpVector3D : Vector3DType + { + /// + /// Initializes a new instance of the UpVector3D class. + /// + public UpVector3D() : base() + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "up"); + builder.Availability = FileFormatVersions.Office2019; + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the Vector3DType Class. + /// This class is available in Office 2007 and above. + /// When the object is serialized out as xml, it's qualified name is :. + /// + public abstract partial class Vector3DType : OpenXmlLeafElement + { + /// + /// Initializes a new instance of the Vector3DType class. + /// + protected Vector3DType() : base() + { + } + + /// + /// Distance along X-axis in 3D + /// Represents the following attribute in the schema: dx + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "dx")] +#pragma warning restore CS0618 // Type or member is obsolete + + public Int64Value? Dx + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// Distance along Y-axis in 3D + /// Represents the following attribute in the schema: dy + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "dy")] +#pragma warning restore CS0618 // Type or member is obsolete + + public Int64Value? Dy + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// Distance along Z-axis in 3D + /// Represents the following attribute in the schema: dz + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "dz")] +#pragma warning restore CS0618 // Type or member is obsolete + + public Int64Value? Dz + { + get => GetAttribute(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.AddElement() + .AddAttribute(0, "dx", a => a.Dx, aBuilder => + { + aBuilder.AddValidator(RequiredValidator.Instance); + aBuilder.AddValidator(new NumberValidator() { MinInclusive = (-27273042329600L), MaxInclusive = (27273042316900L) }); + }) + .AddAttribute(0, "dy", a => a.Dy, aBuilder => + { + aBuilder.AddValidator(RequiredValidator.Instance); + aBuilder.AddValidator(new NumberValidator() { MinInclusive = (-27273042329600L), MaxInclusive = (27273042316900L) }); + }) + .AddAttribute(0, "dz", a => a.Dz, aBuilder => + { + aBuilder.AddValidator(RequiredValidator.Instance); + aBuilder.AddValidator(new NumberValidator() { MinInclusive = (-27273042329600L), MaxInclusive = (27273042316900L) }); + }); + } + } + + /// + /// Defines the Scale3D Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:scale. + /// + /// + /// The following table lists the possible child types: + /// + /// SxRatio <am3d:sx> + /// SyRatio <am3d:sy> + /// SzRatio <am3d:sz> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "scale")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class Scale3D : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the Scale3D class. + /// + public Scale3D() : base() + { + } + + /// + /// Initializes a new instance of the Scale3D class with the specified child elements. + /// + /// Specifies the child elements. + public Scale3D(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the Scale3D class with the specified child elements. + /// + /// Specifies the child elements. + public Scale3D(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the Scale3D class from outer XML. + /// + /// Specifies the outer XML of the element. + public Scale3D(string outerXml) : base(outerXml) + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "scale"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.SxRatio), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.SyRatio), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.SzRatio), 1, 1, version: FileFormatVersions.Office2019) + }; + } + + /// + /// SxRatio. + /// Represents the following element tag in the schema: am3d:sx. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public SxRatio? SxRatio + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// SyRatio. + /// Represents the following element tag in the schema: am3d:sy. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public SyRatio? SyRatio + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// SzRatio. + /// Represents the following element tag in the schema: am3d:sz. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public SzRatio? SzRatio + { + get => GetElement(); + set => SetElement(value); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the Rotate3D Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:rot. + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "rot")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class Rotate3D : OpenXmlLeafElement + { + /// + /// Initializes a new instance of the Rotate3D class. + /// + public Rotate3D() : base() + { + } + + /// + /// ax, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: ax + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "ax")] +#pragma warning restore CS0618 // Type or member is obsolete + + public Int32Value? Ax + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// ay, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: ay + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "ay")] +#pragma warning restore CS0618 // Type or member is obsolete + + public Int32Value? Ay + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// az, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: az + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "az")] +#pragma warning restore CS0618 // Type or member is obsolete + + public Int32Value? Az + { + get => GetAttribute(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "rot"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddElement() +.AddAttribute(0, "ax", a => a.Ax) +.AddAttribute(0, "ay", a => a.Ay) +.AddAttribute(0, "az", a => a.Az); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the OfficeArtExtensionList Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:extLst. + /// + /// + /// The following table lists the possible child types: + /// + /// DocumentFormat.OpenXml.Drawing.Extension <a:ext> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "extLst")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class OfficeArtExtensionList : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the OfficeArtExtensionList class. + /// + public OfficeArtExtensionList() : base() + { + } + + /// + /// Initializes a new instance of the OfficeArtExtensionList class with the specified child elements. + /// + /// Specifies the child elements. + public OfficeArtExtensionList(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the OfficeArtExtensionList class with the specified child elements. + /// + /// Specifies the child elements. + public OfficeArtExtensionList(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the OfficeArtExtensionList class from outer XML. + /// + /// Specifies the outer XML of the element. + public OfficeArtExtensionList(string outerXml) : base(outerXml) + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "extLst"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Group, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Extension), 0, 0) + } + } + }; + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the PosPoint3D Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:pos. + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "pos")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class PosPoint3D : OpenXmlPoint3DElement + { + /// + /// Initializes a new instance of the PosPoint3D class. + /// + public PosPoint3D() : base() + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "pos"); + builder.Availability = FileFormatVersions.Office2019; + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the LookAtPoint3D Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:lookAt. + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "lookAt")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class LookAtPoint3D : OpenXmlPoint3DElement + { + /// + /// Initializes a new instance of the LookAtPoint3D class. + /// + public LookAtPoint3D() : base() + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "lookAt"); + builder.Availability = FileFormatVersions.Office2019; + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the OpenXmlPoint3DElement Class. + /// This class is available in Office 2007 and above. + /// When the object is serialized out as xml, it's qualified name is :. + /// + public abstract partial class OpenXmlPoint3DElement : OpenXmlLeafElement + { + /// + /// Initializes a new instance of the OpenXmlPoint3DElement class. + /// + protected OpenXmlPoint3DElement() : base() + { + } + + /// + /// X-Coordinate in 3D + /// Represents the following attribute in the schema: x + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "x")] +#pragma warning restore CS0618 // Type or member is obsolete + + public Int64Value? X + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// Y-Coordinate in 3D + /// Represents the following attribute in the schema: y + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "y")] +#pragma warning restore CS0618 // Type or member is obsolete + + public Int64Value? Y + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// Z-Coordinate in 3D + /// Represents the following attribute in the schema: z + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "z")] +#pragma warning restore CS0618 // Type or member is obsolete + + public Int64Value? Z + { + get => GetAttribute(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.AddElement() + .AddAttribute(0, "x", a => a.X, aBuilder => + { + aBuilder.AddValidator(RequiredValidator.Instance); + aBuilder.AddValidator(new NumberValidator() { MinInclusive = (-27273042329600L), MaxInclusive = (27273042316900L) }); + }) + .AddAttribute(0, "y", a => a.Y, aBuilder => + { + aBuilder.AddValidator(RequiredValidator.Instance); + aBuilder.AddValidator(new NumberValidator() { MinInclusive = (-27273042329600L), MaxInclusive = (27273042316900L) }); + }) + .AddAttribute(0, "z", a => a.Z, aBuilder => + { + aBuilder.AddValidator(RequiredValidator.Instance); + aBuilder.AddValidator(new NumberValidator() { MinInclusive = (-27273042329600L), MaxInclusive = (27273042316900L) }); + }); + } + } + + /// + /// Defines the OrthographicProjection Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:orthographic. + /// + /// + /// The following table lists the possible child types: + /// + /// SzPositiveRatio <am3d:sz> + /// OfficeArtExtensionList <am3d:extLst> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "orthographic")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class OrthographicProjection : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the OrthographicProjection class. + /// + public OrthographicProjection() : base() + { + } + + /// + /// Initializes a new instance of the OrthographicProjection class with the specified child elements. + /// + /// Specifies the child elements. + public OrthographicProjection(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the OrthographicProjection class with the specified child elements. + /// + /// Specifies the child elements. + public OrthographicProjection(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the OrthographicProjection class from outer XML. + /// + /// Specifies the outer XML of the element. + public OrthographicProjection(string outerXml) : base(outerXml) + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "orthographic"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.AddChild(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.SzPositiveRatio), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.OfficeArtExtensionList), 0, 1, version: FileFormatVersions.Office2019) + }; + } + + /// + /// SzPositiveRatio. + /// Represents the following element tag in the schema: am3d:sz. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public SzPositiveRatio? SzPositiveRatio + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// OfficeArtExtensionList. + /// Represents the following element tag in the schema: am3d:extLst. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public OfficeArtExtensionList? OfficeArtExtensionList + { + get => GetElement(); + set => SetElement(value); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the PerspectiveProjection Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:perspective. + /// + /// + /// The following table lists the possible child types: + /// + /// OfficeArtExtensionList <am3d:extLst> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "perspective")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class PerspectiveProjection : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the PerspectiveProjection class. + /// + public PerspectiveProjection() : base() + { + } + + /// + /// Initializes a new instance of the PerspectiveProjection class with the specified child elements. + /// + /// Specifies the child elements. + public PerspectiveProjection(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the PerspectiveProjection class with the specified child elements. + /// + /// Specifies the child elements. + public PerspectiveProjection(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the PerspectiveProjection class from outer XML. + /// + /// Specifies the outer XML of the element. + public PerspectiveProjection(string outerXml) : base(outerXml) + { + } + + /// + /// fov, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: fov + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "fov")] +#pragma warning restore CS0618 // Type or member is obsolete + + public Int32Value? Fov + { + get => GetAttribute(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "perspective"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.AddElement() +.AddAttribute(0, "fov", a => a.Fov, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new NumberValidator() { MinInclusive = (0L), MaxInclusive = (10800000L) }); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.OfficeArtExtensionList), 0, 1, version: FileFormatVersions.Office2019) + }; + } + + /// + /// OfficeArtExtensionList. + /// Represents the following element tag in the schema: am3d:extLst. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public OfficeArtExtensionList? OfficeArtExtensionList + { + get => GetElement(); + set => SetElement(value); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the Blip Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:blip. + /// + /// + /// The following table lists the possible child types: + /// + /// DocumentFormat.OpenXml.Drawing.AlphaBiLevel <a:alphaBiLevel> + /// DocumentFormat.OpenXml.Drawing.AlphaCeiling <a:alphaCeiling> + /// DocumentFormat.OpenXml.Drawing.AlphaFloor <a:alphaFloor> + /// DocumentFormat.OpenXml.Drawing.AlphaInverse <a:alphaInv> + /// DocumentFormat.OpenXml.Drawing.AlphaModulationEffect <a:alphaMod> + /// DocumentFormat.OpenXml.Drawing.AlphaModulationFixed <a:alphaModFix> + /// DocumentFormat.OpenXml.Drawing.AlphaReplace <a:alphaRepl> + /// DocumentFormat.OpenXml.Drawing.BiLevel <a:biLevel> + /// DocumentFormat.OpenXml.Drawing.Blur <a:blur> + /// DocumentFormat.OpenXml.Drawing.ColorChange <a:clrChange> + /// DocumentFormat.OpenXml.Drawing.ColorReplacement <a:clrRepl> + /// DocumentFormat.OpenXml.Drawing.Duotone <a:duotone> + /// DocumentFormat.OpenXml.Drawing.FillOverlay <a:fillOverlay> + /// DocumentFormat.OpenXml.Drawing.Grayscale <a:grayscl> + /// DocumentFormat.OpenXml.Drawing.Hsl <a:hsl> + /// DocumentFormat.OpenXml.Drawing.LuminanceEffect <a:lum> + /// DocumentFormat.OpenXml.Drawing.TintEffect <a:tint> + /// DocumentFormat.OpenXml.Drawing.BlipExtensionList <a:extLst> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "blip")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class Blip : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the Blip class. + /// + public Blip() : base() + { + } + + /// + /// Initializes a new instance of the Blip class with the specified child elements. + /// + /// Specifies the child elements. + public Blip(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the Blip class with the specified child elements. + /// + /// Specifies the child elements. + public Blip(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the Blip class from outer XML. + /// + /// Specifies the outer XML of the element. + public Blip(string outerXml) : base(outerXml) + { + } + + /// + /// Embedded Picture Reference + /// Represents the following attribute in the schema: r:embed + /// + /// + /// xmlns:r=http://schemas.openxmlformats.org/officeDocument/2006/relationships + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(19, "embed")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Embed + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// Linked Picture Reference + /// Represents the following attribute in the schema: r:link + /// + /// + /// xmlns:r=http://schemas.openxmlformats.org/officeDocument/2006/relationships + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(19, "link")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Link + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// Compression state for blips. + /// Represents the following attribute in the schema: cstate + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "cstate")] +#pragma warning restore CS0618 // Type or member is obsolete + + public EnumValue? CompressionState + { + get => GetAttribute>(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "blip"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddElement() +.AddAttribute(19, "embed", a => a.Embed) +.AddAttribute(19, "link", a => a.Link) +.AddAttribute(0, "cstate", a => a.CompressionState, aBuilder => +{ +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Choice, 0, 0) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.AlphaBiLevel), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.AlphaCeiling), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.AlphaFloor), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.AlphaInverse), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.AlphaModulationEffect), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.AlphaModulationFixed), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.AlphaReplace), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.BiLevel), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Blur), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.ColorChange), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.ColorReplacement), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Duotone), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.FillOverlay), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Grayscale), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Hsl), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.LuminanceEffect), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.TintEffect), 1, 1) + }, + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.BlipExtensionList), 0, 1) + }; + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the ColorType Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:clr. + /// + /// + /// The following table lists the possible child types: + /// + /// DocumentFormat.OpenXml.Drawing.RgbColorModelPercentage <a:scrgbClr> + /// DocumentFormat.OpenXml.Drawing.RgbColorModelHex <a:srgbClr> + /// DocumentFormat.OpenXml.Drawing.HslColor <a:hslClr> + /// DocumentFormat.OpenXml.Drawing.SystemColor <a:sysClr> + /// DocumentFormat.OpenXml.Drawing.SchemeColor <a:schemeClr> + /// DocumentFormat.OpenXml.Drawing.PresetColor <a:prstClr> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "clr")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class ColorType : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the ColorType class. + /// + public ColorType() : base() + { + } + + /// + /// Initializes a new instance of the ColorType class with the specified child elements. + /// + /// Specifies the child elements. + public ColorType(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the ColorType class with the specified child elements. + /// + /// Specifies the child elements. + public ColorType(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the ColorType class from outer XML. + /// + /// Specifies the outer XML of the element. + public ColorType(string outerXml) : base(outerXml) + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "clr"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Group, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.RgbColorModelPercentage), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.RgbColorModelHex), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.HslColor), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.SystemColor), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.SchemeColor), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.PresetColor), 1, 1) + } + } + }; + } + + /// + /// RGB Color Model - Percentage Variant. + /// Represents the following element tag in the schema: a:scrgbClr. + /// + /// + /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main + /// + public DocumentFormat.OpenXml.Drawing.RgbColorModelPercentage? RgbColorModelPercentage + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// RGB Color Model - Hex Variant. + /// Represents the following element tag in the schema: a:srgbClr. + /// + /// + /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main + /// + public DocumentFormat.OpenXml.Drawing.RgbColorModelHex? RgbColorModelHex + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// Hue, Saturation, Luminance Color Model. + /// Represents the following element tag in the schema: a:hslClr. + /// + /// + /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main + /// + public DocumentFormat.OpenXml.Drawing.HslColor? HslColor + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// System Color. + /// Represents the following element tag in the schema: a:sysClr. + /// + /// + /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main + /// + public DocumentFormat.OpenXml.Drawing.SystemColor? SystemColor + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// Scheme Color. + /// Represents the following element tag in the schema: a:schemeClr. + /// + /// + /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main + /// + public DocumentFormat.OpenXml.Drawing.SchemeColor? SchemeColor + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// Preset Color. + /// Represents the following element tag in the schema: a:prstClr. + /// + /// + /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main + /// + public DocumentFormat.OpenXml.Drawing.PresetColor? PresetColor + { + get => GetElement(); + set => SetElement(value); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the Model3DExtension Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:ext. + /// + /// + /// The following table lists the possible child types: + /// + /// DocumentFormat.OpenXml.Office2019.Drawing.Animation.Model3D.EmbeddedAnimation <a3danim:embedAnim> + /// DocumentFormat.OpenXml.Office2019.Drawing.Animation.Model3D.PosterFrame <a3danim:posterFrame> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "ext")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class Model3DExtension : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the Model3DExtension class. + /// + public Model3DExtension() : base() + { + } + + /// + /// Initializes a new instance of the Model3DExtension class with the specified child elements. + /// + /// Specifies the child elements. + public Model3DExtension(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the Model3DExtension class with the specified child elements. + /// + /// Specifies the child elements. + public Model3DExtension(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the Model3DExtension class from outer XML. + /// + /// Specifies the outer XML of the element. + public Model3DExtension(string outerXml) : base(outerXml) + { + } + + /// + /// URI, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: uri + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "uri")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Uri + { + get => GetAttribute(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "ext"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.AddChild(); + builder.AddElement() +.AddAttribute(0, "uri", a => a.Uri, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Animation.Model3D.EmbeddedAnimation), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Animation.Model3D.PosterFrame), 1, 1, version: FileFormatVersions.Office2019), + new AnyParticle(0, 1) + }; + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the ShapeProperties Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:spPr. + /// + /// + /// The following table lists the possible child types: + /// + /// DocumentFormat.OpenXml.Drawing.Transform2D <a:xfrm> + /// DocumentFormat.OpenXml.Drawing.CustomGeometry <a:custGeom> + /// DocumentFormat.OpenXml.Drawing.PresetGeometry <a:prstGeom> + /// DocumentFormat.OpenXml.Drawing.NoFill <a:noFill> + /// DocumentFormat.OpenXml.Drawing.SolidFill <a:solidFill> + /// DocumentFormat.OpenXml.Drawing.GradientFill <a:gradFill> + /// DocumentFormat.OpenXml.Drawing.BlipFill <a:blipFill> + /// DocumentFormat.OpenXml.Drawing.PatternFill <a:pattFill> + /// DocumentFormat.OpenXml.Drawing.GroupFill <a:grpFill> + /// DocumentFormat.OpenXml.Drawing.Outline <a:ln> + /// DocumentFormat.OpenXml.Drawing.EffectList <a:effectLst> + /// DocumentFormat.OpenXml.Drawing.EffectDag <a:effectDag> + /// DocumentFormat.OpenXml.Drawing.Scene3DType <a:scene3d> + /// DocumentFormat.OpenXml.Drawing.Shape3DType <a:sp3d> + /// DocumentFormat.OpenXml.Drawing.ShapePropertiesExtensionList <a:extLst> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "spPr")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class ShapeProperties : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the ShapeProperties class. + /// + public ShapeProperties() : base() + { + } + + /// + /// Initializes a new instance of the ShapeProperties class with the specified child elements. + /// + /// Specifies the child elements. + public ShapeProperties(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the ShapeProperties class with the specified child elements. + /// + /// Specifies the child elements. + public ShapeProperties(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the ShapeProperties class from outer XML. + /// + /// Specifies the outer XML of the element. + public ShapeProperties(string outerXml) : base(outerXml) + { + } + + /// + /// Black and White Mode + /// Represents the following attribute in the schema: bwMode + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "bwMode")] +#pragma warning restore CS0618 // Type or member is obsolete + + public EnumValue? BlackWhiteMode + { + get => GetAttribute>(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "spPr"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddElement() +.AddAttribute(0, "bwMode", a => a.BlackWhiteMode, aBuilder => +{ +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Transform2D), 0, 1), + new CompositeParticle.Builder(ParticleType.Group, 0, 1) + { + new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.CustomGeometry), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.PresetGeometry), 1, 1) + } + }, + new CompositeParticle.Builder(ParticleType.Group, 0, 1) + { + new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.NoFill), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.SolidFill), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.GradientFill), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.BlipFill), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.PatternFill), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.GroupFill), 1, 1) + } + }, + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Outline), 0, 1), + new CompositeParticle.Builder(ParticleType.Group, 0, 1) + { + new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.EffectList), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.EffectDag), 1, 1) + } + }, + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Scene3DType), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Shape3DType), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.ShapePropertiesExtensionList), 0, 1) + }; + } + + /// + /// 2D Transform for Individual Objects. + /// Represents the following element tag in the schema: a:xfrm. + /// + /// + /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main + /// + public DocumentFormat.OpenXml.Drawing.Transform2D? Transform2D + { + get => GetElement(); + set => SetElement(value); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the Model3DCamera Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:camera. + /// + /// + /// The following table lists the possible child types: + /// + /// PosPoint3D <am3d:pos> + /// UpVector3D <am3d:up> + /// LookAtPoint3D <am3d:lookAt> + /// OrthographicProjection <am3d:orthographic> + /// PerspectiveProjection <am3d:perspective> + /// OfficeArtExtensionList <am3d:extLst> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "camera")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class Model3DCamera : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the Model3DCamera class. + /// + public Model3DCamera() : base() + { + } + + /// + /// Initializes a new instance of the Model3DCamera class with the specified child elements. + /// + /// Specifies the child elements. + public Model3DCamera(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the Model3DCamera class with the specified child elements. + /// + /// Specifies the child elements. + public Model3DCamera(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the Model3DCamera class from outer XML. + /// + /// Specifies the outer XML of the element. + public Model3DCamera(string outerXml) : base(outerXml) + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "camera"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.PosPoint3D), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.UpVector3D), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.LookAtPoint3D), 1, 1, version: FileFormatVersions.Office2019), + new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.OrthographicProjection), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.PerspectiveProjection), 1, 1, version: FileFormatVersions.Office2019) + }, + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.OfficeArtExtensionList), 0, 1, version: FileFormatVersions.Office2019) + }; + } + + /// + /// PosPoint3D. + /// Represents the following element tag in the schema: am3d:pos. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public PosPoint3D? PosPoint3D + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// UpVector3D. + /// Represents the following element tag in the schema: am3d:up. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public UpVector3D? UpVector3D + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// LookAtPoint3D. + /// Represents the following element tag in the schema: am3d:lookAt. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public LookAtPoint3D? LookAtPoint3D + { + get => GetElement(); + set => SetElement(value); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the Model3DTransform Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:trans. + /// + /// + /// The following table lists the possible child types: + /// + /// MeterPerModelUnitPositiveRatio <am3d:meterPerModelUnit> + /// PreTransVector3D <am3d:preTrans> + /// Scale3D <am3d:scale> + /// Rotate3D <am3d:rot> + /// PostTransVector3D <am3d:postTrans> + /// OfficeArtExtensionList <am3d:extLst> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "trans")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class Model3DTransform : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the Model3DTransform class. + /// + public Model3DTransform() : base() + { + } + + /// + /// Initializes a new instance of the Model3DTransform class with the specified child elements. + /// + /// Specifies the child elements. + public Model3DTransform(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the Model3DTransform class with the specified child elements. + /// + /// Specifies the child elements. + public Model3DTransform(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the Model3DTransform class from outer XML. + /// + /// Specifies the outer XML of the element. + public Model3DTransform(string outerXml) : base(outerXml) + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "trans"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.MeterPerModelUnitPositiveRatio), 0, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.PreTransVector3D), 0, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Scale3D), 0, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Rotate3D), 0, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.PostTransVector3D), 0, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.OfficeArtExtensionList), 0, 1, version: FileFormatVersions.Office2019) + }; + } + + /// + /// MeterPerModelUnitPositiveRatio. + /// Represents the following element tag in the schema: am3d:meterPerModelUnit. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public MeterPerModelUnitPositiveRatio? MeterPerModelUnitPositiveRatio + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// PreTransVector3D. + /// Represents the following element tag in the schema: am3d:preTrans. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public PreTransVector3D? PreTransVector3D + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// Scale3D. + /// Represents the following element tag in the schema: am3d:scale. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public Scale3D? Scale3D + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// Rotate3D. + /// Represents the following element tag in the schema: am3d:rot. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public Rotate3D? Rotate3D + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// PostTransVector3D. + /// Represents the following element tag in the schema: am3d:postTrans. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public PostTransVector3D? PostTransVector3D + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// OfficeArtExtensionList. + /// Represents the following element tag in the schema: am3d:extLst. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public OfficeArtExtensionList? OfficeArtExtensionList + { + get => GetElement(); + set => SetElement(value); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Optional source attribution URL describes from whence the 3D model came.. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:attrSrcUrl. + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "attrSrcUrl")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class PictureAttributionSourceURL : OpenXmlLeafElement + { + /// + /// Initializes a new instance of the PictureAttributionSourceURL class. + /// + public PictureAttributionSourceURL() : base() + { + } + + /// + /// id, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: r:id + /// + /// + /// xmlns:r=http://schemas.openxmlformats.org/officeDocument/2006/relationships + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(19, "id")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Id + { + get => GetAttribute(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "attrSrcUrl"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddElement() +.AddAttribute(19, "id", a => a.Id, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +}); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the Model3DRaster Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:raster. + /// + /// + /// The following table lists the possible child types: + /// + /// Blip <am3d:blip> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "raster")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class Model3DRaster : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the Model3DRaster class. + /// + public Model3DRaster() : base() + { + } + + /// + /// Initializes a new instance of the Model3DRaster class with the specified child elements. + /// + /// Specifies the child elements. + public Model3DRaster(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the Model3DRaster class with the specified child elements. + /// + /// Specifies the child elements. + public Model3DRaster(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the Model3DRaster class from outer XML. + /// + /// Specifies the outer XML of the element. + public Model3DRaster(string outerXml) : base(outerXml) + { + } + + /// + /// rName, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: rName + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "rName")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? RName + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// rVer, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: rVer + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "rVer")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? RVer + { + get => GetAttribute(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "raster"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.AddElement() +.AddAttribute(0, "rName", a => a.RName, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +}) +.AddAttribute(0, "rVer", a => a.RVer, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Blip), 0, 1, version: FileFormatVersions.Office2019) + }; + } + + /// + /// Blip. + /// Represents the following element tag in the schema: am3d:blip. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public Blip? Blip + { + get => GetElement(); + set => SetElement(value); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Future Model3D extensions. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:extLst. + /// + /// + /// The following table lists the possible child types: + /// + /// Model3DExtension <am3d:ext> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "extLst")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class Model3DExtensionList : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the Model3DExtensionList class. + /// + public Model3DExtensionList() : base() + { + } + + /// + /// Initializes a new instance of the Model3DExtensionList class with the specified child elements. + /// + /// Specifies the child elements. + public Model3DExtensionList(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the Model3DExtensionList class with the specified child elements. + /// + /// Specifies the child elements. + public Model3DExtensionList(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the Model3DExtensionList class from outer XML. + /// + /// Specifies the outer XML of the element. + public Model3DExtensionList(string outerXml) : base(outerXml) + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "extLst"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Model3DExtension), 0, 0, version: FileFormatVersions.Office2019) + }; + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the ObjectViewport Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:objViewport. + /// + /// + /// The following table lists the possible child types: + /// + /// OfficeArtExtensionList <am3d:extLst> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "objViewport")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class ObjectViewport : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the ObjectViewport class. + /// + public ObjectViewport() : base() + { + } + + /// + /// Initializes a new instance of the ObjectViewport class with the specified child elements. + /// + /// Specifies the child elements. + public ObjectViewport(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the ObjectViewport class with the specified child elements. + /// + /// Specifies the child elements. + public ObjectViewport(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the ObjectViewport class from outer XML. + /// + /// Specifies the outer XML of the element. + public ObjectViewport(string outerXml) : base(outerXml) + { + } + + /// + /// viewportSz, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: viewportSz + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "viewportSz")] +#pragma warning restore CS0618 // Type or member is obsolete + + public Int64Value? ViewportSz + { + get => GetAttribute(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "objViewport"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.AddElement() +.AddAttribute(0, "viewportSz", a => a.ViewportSz, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new NumberValidator() { MinInclusive = (0L), MaxInclusive = (2147483647L) }); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.OfficeArtExtensionList), 0, 1, version: FileFormatVersions.Office2019) + }; + } + + /// + /// OfficeArtExtensionList. + /// Represents the following element tag in the schema: am3d:extLst. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public OfficeArtExtensionList? OfficeArtExtensionList + { + get => GetElement(); + set => SetElement(value); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the WindowViewport Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:winViewport. + /// + /// + /// The following table lists the possible child types: + /// + /// OfficeArtExtensionList <am3d:extLst> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "winViewport")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class WindowViewport : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the WindowViewport class. + /// + public WindowViewport() : base() + { + } + + /// + /// Initializes a new instance of the WindowViewport class with the specified child elements. + /// + /// Specifies the child elements. + public WindowViewport(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the WindowViewport class with the specified child elements. + /// + /// Specifies the child elements. + public WindowViewport(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the WindowViewport class from outer XML. + /// + /// Specifies the outer XML of the element. + public WindowViewport(string outerXml) : base(outerXml) + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "winViewport"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.OfficeArtExtensionList), 0, 1, version: FileFormatVersions.Office2019) + }; + } + + /// + /// OfficeArtExtensionList. + /// Represents the following element tag in the schema: am3d:extLst. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public OfficeArtExtensionList? OfficeArtExtensionList + { + get => GetElement(); + set => SetElement(value); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Ambient light in a scene. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:ambientLight. + /// + /// + /// The following table lists the possible child types: + /// + /// ColorType <am3d:clr> + /// IlluminancePositiveRatio <am3d:illuminance> + /// OfficeArtExtensionList <am3d:extLst> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "ambientLight")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class AmbientLight : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the AmbientLight class. + /// + public AmbientLight() : base() + { + } + + /// + /// Initializes a new instance of the AmbientLight class with the specified child elements. + /// + /// Specifies the child elements. + public AmbientLight(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the AmbientLight class with the specified child elements. + /// + /// Specifies the child elements. + public AmbientLight(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the AmbientLight class from outer XML. + /// + /// Specifies the outer XML of the element. + public AmbientLight(string outerXml) : base(outerXml) + { + } + + /// + /// enabled, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: enabled + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "enabled")] +#pragma warning restore CS0618 // Type or member is obsolete + + public BooleanValue? Enabled + { + get => GetAttribute(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "ambientLight"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddElement() +.AddAttribute(0, "enabled", a => a.Enabled); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.ColorType), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.IlluminancePositiveRatio), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.OfficeArtExtensionList), 0, 1, version: FileFormatVersions.Office2019) + }; + } + + /// + /// ColorType. + /// Represents the following element tag in the schema: am3d:clr. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public ColorType? ColorType + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// IlluminancePositiveRatio. + /// Represents the following element tag in the schema: am3d:illuminance. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public IlluminancePositiveRatio? IlluminancePositiveRatio + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// OfficeArtExtensionList. + /// Represents the following element tag in the schema: am3d:extLst. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public OfficeArtExtensionList? OfficeArtExtensionList + { + get => GetElement(); + set => SetElement(value); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the PointLight Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:ptLight. + /// + /// + /// The following table lists the possible child types: + /// + /// ColorType <am3d:clr> + /// IntensityPositiveRatio <am3d:intensity> + /// PosPoint3D <am3d:pos> + /// OfficeArtExtensionList <am3d:extLst> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "ptLight")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class PointLight : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the PointLight class. + /// + public PointLight() : base() + { + } + + /// + /// Initializes a new instance of the PointLight class with the specified child elements. + /// + /// Specifies the child elements. + public PointLight(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the PointLight class with the specified child elements. + /// + /// Specifies the child elements. + public PointLight(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the PointLight class from outer XML. + /// + /// Specifies the outer XML of the element. + public PointLight(string outerXml) : base(outerXml) + { + } + + /// + /// enabled, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: enabled + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "enabled")] +#pragma warning restore CS0618 // Type or member is obsolete + + public BooleanValue? Enabled + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// rad, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: rad + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "rad")] +#pragma warning restore CS0618 // Type or member is obsolete + + public Int64Value? Rad + { + get => GetAttribute(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "ptLight"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddElement() +.AddAttribute(0, "enabled", a => a.Enabled) +.AddAttribute(0, "rad", a => a.Rad, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new NumberValidator() { MinInclusive = (0L), MaxInclusive = (2147483647L) }); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.ColorType), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.IntensityPositiveRatio), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.PosPoint3D), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.OfficeArtExtensionList), 0, 1, version: FileFormatVersions.Office2019) + }; + } + + /// + /// ColorType. + /// Represents the following element tag in the schema: am3d:clr. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public ColorType? ColorType + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// IntensityPositiveRatio. + /// Represents the following element tag in the schema: am3d:intensity. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public IntensityPositiveRatio? IntensityPositiveRatio + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// PosPoint3D. + /// Represents the following element tag in the schema: am3d:pos. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public PosPoint3D? PosPoint3D + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// OfficeArtExtensionList. + /// Represents the following element tag in the schema: am3d:extLst. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public OfficeArtExtensionList? OfficeArtExtensionList + { + get => GetElement(); + set => SetElement(value); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the SpotLight Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:spotLight. + /// + /// + /// The following table lists the possible child types: + /// + /// ColorType <am3d:clr> + /// IntensityPositiveRatio <am3d:intensity> + /// PosPoint3D <am3d:pos> + /// LookAtPoint3D <am3d:lookAt> + /// OfficeArtExtensionList <am3d:extLst> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "spotLight")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class SpotLight : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the SpotLight class. + /// + public SpotLight() : base() + { + } + + /// + /// Initializes a new instance of the SpotLight class with the specified child elements. + /// + /// Specifies the child elements. + public SpotLight(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the SpotLight class with the specified child elements. + /// + /// Specifies the child elements. + public SpotLight(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the SpotLight class from outer XML. + /// + /// Specifies the outer XML of the element. + public SpotLight(string outerXml) : base(outerXml) + { + } + + /// + /// enabled, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: enabled + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "enabled")] +#pragma warning restore CS0618 // Type or member is obsolete + + public BooleanValue? Enabled + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// rad, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: rad + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "rad")] +#pragma warning restore CS0618 // Type or member is obsolete + + public Int64Value? Rad + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// spotAng, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: spotAng + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "spotAng")] +#pragma warning restore CS0618 // Type or member is obsolete + + public Int32Value? SpotAng + { + get => GetAttribute(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "spotLight"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddElement() +.AddAttribute(0, "enabled", a => a.Enabled) +.AddAttribute(0, "rad", a => a.Rad, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new NumberValidator() { MinInclusive = (0L), MaxInclusive = (2147483647L) }); +}) +.AddAttribute(0, "spotAng", a => a.SpotAng, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new NumberValidator() { MinInclusive = (0L), MaxInclusive = (10800000L) }); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.ColorType), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.IntensityPositiveRatio), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.PosPoint3D), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.LookAtPoint3D), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.OfficeArtExtensionList), 0, 1, version: FileFormatVersions.Office2019) + }; + } + + /// + /// ColorType. + /// Represents the following element tag in the schema: am3d:clr. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public ColorType? ColorType + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// IntensityPositiveRatio. + /// Represents the following element tag in the schema: am3d:intensity. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public IntensityPositiveRatio? IntensityPositiveRatio + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// PosPoint3D. + /// Represents the following element tag in the schema: am3d:pos. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public PosPoint3D? PosPoint3D + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// LookAtPoint3D. + /// Represents the following element tag in the schema: am3d:lookAt. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public LookAtPoint3D? LookAtPoint3D + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// OfficeArtExtensionList. + /// Represents the following element tag in the schema: am3d:extLst. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public OfficeArtExtensionList? OfficeArtExtensionList + { + get => GetElement(); + set => SetElement(value); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the DirectionalLight Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:dirLight. + /// + /// + /// The following table lists the possible child types: + /// + /// ColorType <am3d:clr> + /// IlluminancePositiveRatio <am3d:illuminance> + /// PosPoint3D <am3d:pos> + /// LookAtPoint3D <am3d:lookAt> + /// OfficeArtExtensionList <am3d:extLst> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "dirLight")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class DirectionalLight : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the DirectionalLight class. + /// + public DirectionalLight() : base() + { + } + + /// + /// Initializes a new instance of the DirectionalLight class with the specified child elements. + /// + /// Specifies the child elements. + public DirectionalLight(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the DirectionalLight class with the specified child elements. + /// + /// Specifies the child elements. + public DirectionalLight(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the DirectionalLight class from outer XML. + /// + /// Specifies the outer XML of the element. + public DirectionalLight(string outerXml) : base(outerXml) + { + } + + /// + /// enabled, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: enabled + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "enabled")] +#pragma warning restore CS0618 // Type or member is obsolete + + public BooleanValue? Enabled + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// angularRad, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: angularRad + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "angularRad")] +#pragma warning restore CS0618 // Type or member is obsolete + + public Int32Value? AngularRad + { + get => GetAttribute(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "dirLight"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddElement() +.AddAttribute(0, "enabled", a => a.Enabled) +.AddAttribute(0, "angularRad", a => a.AngularRad, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new NumberValidator() { MinInclusive = (0L), MaxInclusive = (5400000L) }); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.ColorType), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.IlluminancePositiveRatio), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.PosPoint3D), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.LookAtPoint3D), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Model3D.OfficeArtExtensionList), 0, 1, version: FileFormatVersions.Office2019) + }; + } + + /// + /// ColorType. + /// Represents the following element tag in the schema: am3d:clr. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public ColorType? ColorType + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// IlluminancePositiveRatio. + /// Represents the following element tag in the schema: am3d:illuminance. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public IlluminancePositiveRatio? IlluminancePositiveRatio + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// PosPoint3D. + /// Represents the following element tag in the schema: am3d:pos. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public PosPoint3D? PosPoint3D + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// LookAtPoint3D. + /// Represents the following element tag in the schema: am3d:lookAt. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public LookAtPoint3D? LookAtPoint3D + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// OfficeArtExtensionList. + /// Represents the following element tag in the schema: am3d:extLst. + /// + /// + /// xmlns:am3d = http://schemas.microsoft.com/office/drawing/2017/model3d + /// + public OfficeArtExtensionList? OfficeArtExtensionList + { + get => GetElement(); + set => SetElement(value); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the UnknownLight Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is am3d:unkLight. + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(109, "unkLight")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class UnknownLight : OpenXmlLeafElement + { + /// + /// Initializes a new instance of the UnknownLight class. + /// + public UnknownLight() : base() + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(109, "unkLight"); + builder.Availability = FileFormatVersions.Office2019; + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } +} \ No newline at end of file diff --git a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2018_animation.g.cs b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2018_animation.g.cs new file mode 100644 index 000000000..2dce27dac --- /dev/null +++ b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2018_animation.g.cs @@ -0,0 +1,306 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +#nullable enable + +using DocumentFormat.OpenXml; +using DocumentFormat.OpenXml.Drawing; +using DocumentFormat.OpenXml.Framework; +using DocumentFormat.OpenXml.Framework.Metadata; +using DocumentFormat.OpenXml.Packaging; +using DocumentFormat.OpenXml.Validation.Schema; +using System; +using System.Collections.Generic; +using System.IO.Packaging; + +namespace DocumentFormat.OpenXml.Office2019.Drawing.Animation +{ + /// + /// Defines the AnimationProperties Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is aanim:animPr. + /// + /// + /// The following table lists the possible child types: + /// + /// OfficeArtExtensionList <aanim:extLst> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(111, "animPr")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class AnimationProperties : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the AnimationProperties class. + /// + public AnimationProperties() : base() + { + } + + /// + /// Initializes a new instance of the AnimationProperties class with the specified child elements. + /// + /// Specifies the child elements. + public AnimationProperties(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the AnimationProperties class with the specified child elements. + /// + /// Specifies the child elements. + public AnimationProperties(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the AnimationProperties class from outer XML. + /// + /// Specifies the outer XML of the element. + public AnimationProperties(string outerXml) : base(outerXml) + { + } + + /// + /// name, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: name + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "name")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Name + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// length, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: length + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "length")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Length + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// count, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: count + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "count")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Count + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// auto, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: auto + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "auto")] +#pragma warning restore CS0618 // Type or member is obsolete + + public BooleanValue? Auto + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// offset, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: offset + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "offset")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Offset + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// st, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: st + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "st")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? St + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// end, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: end + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "end")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? End + { + get => GetAttribute(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(111, "animPr"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.AddElement() +.AddAttribute(0, "name", a => a.Name) +.AddAttribute(0, "length", a => a.Length, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +}) +.AddAttribute(0, "count", a => a.Count, aBuilder => +{ +aBuilder.AddUnion(union => +{ +union.AddValidator(NumberValidator.Instance); +union.AddValidator>(EnumValidator.Instance); +}); +}) +.AddAttribute(0, "auto", a => a.Auto) +.AddAttribute(0, "offset", a => a.Offset) +.AddAttribute(0, "st", a => a.St) +.AddAttribute(0, "end", a => a.End); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Animation.OfficeArtExtensionList), 0, 1, version: FileFormatVersions.Office2019) + }; + } + + /// + /// OfficeArtExtensionList. + /// Represents the following element tag in the schema: aanim:extLst. + /// + /// + /// xmlns:aanim = http://schemas.microsoft.com/office/drawing/2018/animation + /// + public OfficeArtExtensionList? OfficeArtExtensionList + { + get => GetElement(); + set => SetElement(value); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the OfficeArtExtensionList Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is aanim:extLst. + /// + /// + /// The following table lists the possible child types: + /// + /// DocumentFormat.OpenXml.Drawing.Extension <a:ext> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(111, "extLst")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class OfficeArtExtensionList : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the OfficeArtExtensionList class. + /// + public OfficeArtExtensionList() : base() + { + } + + /// + /// Initializes a new instance of the OfficeArtExtensionList class with the specified child elements. + /// + /// Specifies the child elements. + public OfficeArtExtensionList(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the OfficeArtExtensionList class with the specified child elements. + /// + /// Specifies the child elements. + public OfficeArtExtensionList(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the OfficeArtExtensionList class from outer XML. + /// + /// Specifies the outer XML of the element. + public OfficeArtExtensionList(string outerXml) : base(outerXml) + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(111, "extLst"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Group, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Extension), 0, 0) + } + } + }; + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the Indefinite enumeration. + /// + [OfficeAvailability(FileFormatVersions.Office2019)] + public enum Indefinite + { + /// + ///indefinite. + ///When the item is serialized out as xml, its value is "indefinite". + /// + [EnumString("indefinite")] + Indefinite, + } +} \ No newline at end of file diff --git a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2018_animation_model3d.g.cs b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2018_animation_model3d.g.cs new file mode 100644 index 000000000..99b285654 --- /dev/null +++ b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2018_animation_model3d.g.cs @@ -0,0 +1,475 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +#nullable enable + +using DocumentFormat.OpenXml; +using DocumentFormat.OpenXml.Drawing; +using DocumentFormat.OpenXml.Framework; +using DocumentFormat.OpenXml.Framework.Metadata; +using DocumentFormat.OpenXml.Office2019.Drawing.Animation; +using DocumentFormat.OpenXml.Packaging; +using DocumentFormat.OpenXml.Validation.Schema; +using System; +using System.Collections.Generic; +using System.IO.Packaging; + +namespace DocumentFormat.OpenXml.Office2019.Drawing.Animation.Model3D +{ + /// + /// Defines the EmbeddedAnimation Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is a3danim:embedAnim. + /// + /// + /// The following table lists the possible child types: + /// + /// AnimationProperties <a3danim:animPr> + /// OfficeArtExtensionList <a3danim:extLst> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(112, "embedAnim")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class EmbeddedAnimation : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the EmbeddedAnimation class. + /// + public EmbeddedAnimation() : base() + { + } + + /// + /// Initializes a new instance of the EmbeddedAnimation class with the specified child elements. + /// + /// Specifies the child elements. + public EmbeddedAnimation(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the EmbeddedAnimation class with the specified child elements. + /// + /// Specifies the child elements. + public EmbeddedAnimation(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the EmbeddedAnimation class from outer XML. + /// + /// Specifies the outer XML of the element. + public EmbeddedAnimation(string outerXml) : base(outerXml) + { + } + + /// + /// animId, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: animId + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "animId")] +#pragma warning restore CS0618 // Type or member is obsolete + + public UInt32Value? AnimId + { + get => GetAttribute(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(112, "embedAnim"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.AddChild(); + builder.AddElement() +.AddAttribute(0, "animId", a => a.AnimId, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Animation.Model3D.AnimationProperties), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Animation.Model3D.OfficeArtExtensionList), 0, 1, version: FileFormatVersions.Office2019) + }; + } + + /// + /// AnimationProperties. + /// Represents the following element tag in the schema: a3danim:animPr. + /// + /// + /// xmlns:a3danim = http://schemas.microsoft.com/office/drawing/2018/animation/model3d + /// + public AnimationProperties? AnimationProperties + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// OfficeArtExtensionList. + /// Represents the following element tag in the schema: a3danim:extLst. + /// + /// + /// xmlns:a3danim = http://schemas.microsoft.com/office/drawing/2018/animation/model3d + /// + public OfficeArtExtensionList? OfficeArtExtensionList + { + get => GetElement(); + set => SetElement(value); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the PosterFrame Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is a3danim:posterFrame. + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(112, "posterFrame")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class PosterFrame : OpenXmlLeafElement + { + /// + /// Initializes a new instance of the PosterFrame class. + /// + public PosterFrame() : base() + { + } + + /// + /// animId, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: animId + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "animId")] +#pragma warning restore CS0618 // Type or member is obsolete + + public UInt32Value? AnimId + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// frame, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: frame + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "frame")] +#pragma warning restore CS0618 // Type or member is obsolete + + public Int32Value? Frame + { + get => GetAttribute(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(112, "posterFrame"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddElement() +.AddAttribute(0, "animId", a => a.AnimId, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +}) +.AddAttribute(0, "frame", a => a.Frame, aBuilder => +{ +aBuilder.AddValidator(new NumberValidator() { MinInclusive = (0L), MaxInclusive = (100000L) }); +}); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the AnimationProperties Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is a3danim:animPr. + /// + /// + /// The following table lists the possible child types: + /// + /// DocumentFormat.OpenXml.Office2019.Drawing.Animation.OfficeArtExtensionList <aanim:extLst> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(112, "animPr")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class AnimationProperties : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the AnimationProperties class. + /// + public AnimationProperties() : base() + { + } + + /// + /// Initializes a new instance of the AnimationProperties class with the specified child elements. + /// + /// Specifies the child elements. + public AnimationProperties(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the AnimationProperties class with the specified child elements. + /// + /// Specifies the child elements. + public AnimationProperties(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the AnimationProperties class from outer XML. + /// + /// Specifies the outer XML of the element. + public AnimationProperties(string outerXml) : base(outerXml) + { + } + + /// + /// name, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: name + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "name")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Name + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// length, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: length + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "length")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Length + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// count, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: count + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "count")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Count + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// auto, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: auto + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "auto")] +#pragma warning restore CS0618 // Type or member is obsolete + + public BooleanValue? Auto + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// offset, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: offset + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "offset")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Offset + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// st, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: st + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "st")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? St + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// end, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: end + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "end")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? End + { + get => GetAttribute(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(112, "animPr"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.AddElement() +.AddAttribute(0, "name", a => a.Name) +.AddAttribute(0, "length", a => a.Length, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +}) +.AddAttribute(0, "count", a => a.Count, aBuilder => +{ +aBuilder.AddUnion(union => +{ +union.AddValidator(NumberValidator.Instance); +union.AddValidator>(EnumValidator.Instance); +}); +}) +.AddAttribute(0, "auto", a => a.Auto) +.AddAttribute(0, "offset", a => a.Offset) +.AddAttribute(0, "st", a => a.St) +.AddAttribute(0, "end", a => a.End); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Animation.OfficeArtExtensionList), 0, 1, version: FileFormatVersions.Office2019) + }; + } + + /// + /// OfficeArtExtensionList. + /// Represents the following element tag in the schema: aanim:extLst. + /// + /// + /// xmlns:aanim = http://schemas.microsoft.com/office/drawing/2018/animation + /// + public DocumentFormat.OpenXml.Office2019.Drawing.Animation.OfficeArtExtensionList? OfficeArtExtensionList + { + get => GetElement(); + set => SetElement(value); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the OfficeArtExtensionList Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is a3danim:extLst. + /// + /// + /// The following table lists the possible child types: + /// + /// DocumentFormat.OpenXml.Drawing.Extension <a:ext> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(112, "extLst")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class OfficeArtExtensionList : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the OfficeArtExtensionList class. + /// + public OfficeArtExtensionList() : base() + { + } + + /// + /// Initializes a new instance of the OfficeArtExtensionList class with the specified child elements. + /// + /// Specifies the child elements. + public OfficeArtExtensionList(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the OfficeArtExtensionList class with the specified child elements. + /// + /// Specifies the child elements. + public OfficeArtExtensionList(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the OfficeArtExtensionList class from outer XML. + /// + /// Specifies the outer XML of the element. + public OfficeArtExtensionList(string outerXml) : base(outerXml) + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(112, "extLst"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Group, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Extension), 0, 0) + } + } + }; + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } +} \ No newline at end of file diff --git a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2018_hyperlinkcolor.g.cs b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2018_hyperlinkcolor.g.cs index 9a5137f58..cd828790f 100644 --- a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2018_hyperlinkcolor.g.cs +++ b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2018_hyperlinkcolor.g.cs @@ -20,7 +20,7 @@ namespace DocumentFormat.OpenXml.Office2019.Drawing.HyperLinkColor /// When the object is serialized out as xml, it's qualified name is ahyp:hlinkClr. /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(106, "hlinkClr")] + [SchemaAttr(113, "hlinkClr")] #pragma warning restore CS0618 // Type or member is obsolete public partial class HyperlinkColor : OpenXmlLeafElement { @@ -50,7 +50,7 @@ public EnumValue() .AddAttribute(0, "val", a => a.Val, aBuilder => diff --git a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_powerpoint_2017_10_main.g.cs b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_powerpoint_2017_10_main.g.cs new file mode 100644 index 000000000..1c0a28d6d --- /dev/null +++ b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_powerpoint_2017_10_main.g.cs @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +#nullable enable + +using DocumentFormat.OpenXml; +using DocumentFormat.OpenXml.Framework; +using DocumentFormat.OpenXml.Framework.Metadata; +using DocumentFormat.OpenXml.Packaging; +using DocumentFormat.OpenXml.Validation.Schema; +using System; +using System.Collections.Generic; +using System.IO.Packaging; + +namespace DocumentFormat.OpenXml.Office2019.Presentation +{ + /// + /// Defines the ReadonlyRecommended Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is p1710:readonlyRecommended. + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(88, "readonlyRecommended")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class ReadonlyRecommended : OpenXmlLeafElement + { + /// + /// Initializes a new instance of the ReadonlyRecommended class. + /// + public ReadonlyRecommended() : base() + { + } + + /// + /// val, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: val + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "val")] +#pragma warning restore CS0618 // Type or member is obsolete + + public BooleanValue? Val + { + get => GetAttribute(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(88, "readonlyRecommended"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddElement() +.AddAttribute(0, "val", a => a.Val, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +}); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } +} \ No newline at end of file diff --git a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_powerpoint_2018_4_main.g.cs b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_powerpoint_2018_4_main.g.cs new file mode 100644 index 000000000..9a4f4a48e --- /dev/null +++ b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_powerpoint_2018_4_main.g.cs @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +#nullable enable + +using DocumentFormat.OpenXml; +using DocumentFormat.OpenXml.Framework; +using DocumentFormat.OpenXml.Framework.Metadata; +using DocumentFormat.OpenXml.Packaging; +using DocumentFormat.OpenXml.Validation.Schema; +using System; +using System.Collections.Generic; +using System.IO.Packaging; + +namespace DocumentFormat.OpenXml.Office2019.Presentation +{ + /// + /// Defines the ClassificationOutcome Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is p184:classification. + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(89, "classification")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class ClassificationOutcome : OpenXmlLeafElement + { + /// + /// Initializes a new instance of the ClassificationOutcome class. + /// + public ClassificationOutcome() : base() + { + } + + /// + /// val, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: val + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "val")] +#pragma warning restore CS0618 // Type or member is obsolete + + public EnumValue? Val + { + get => GetAttribute>(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(89, "classification"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddElement() +.AddAttribute(0, "val", a => a.Val, aBuilder => +{ +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the ClassificationOutcomeType enumeration. + /// + [OfficeAvailability(FileFormatVersions.Office2019)] + public enum ClassificationOutcomeType + { + /// + ///none. + ///When the item is serialized out as xml, its value is "none". + /// + [EnumString("none")] + None, + /// + ///hdr. + ///When the item is serialized out as xml, its value is "hdr". + /// + [EnumString("hdr")] + Hdr, + /// + ///ftr. + ///When the item is serialized out as xml, its value is "ftr". + /// + [EnumString("ftr")] + Ftr, + /// + ///watermark. + ///When the item is serialized out as xml, its value is "watermark". + /// + [EnumString("watermark")] + Watermark, + } +} \ No newline at end of file diff --git a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_spreadsheetml_2016_pivotdefaultlayout.g.cs b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_spreadsheetml_2016_pivotdefaultlayout.g.cs index a7af2590d..3725d38ee 100644 --- a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_spreadsheetml_2016_pivotdefaultlayout.g.cs +++ b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_spreadsheetml_2016_pivotdefaultlayout.g.cs @@ -21,7 +21,7 @@ namespace DocumentFormat.OpenXml.Office2019.Excel.PivotDefaultLayout /// When the object is serialized out as xml, it's qualified name is xpdl:pivotTableDefinition16. /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(88, "pivotTableDefinition16")] + [SchemaAttr(90, "pivotTableDefinition16")] #pragma warning restore CS0618 // Type or member is obsolete public partial class PivotTableDefinition16 : OpenXmlLeafElement { @@ -83,7 +83,7 @@ public BooleanValue? InsertBlankRowDefault internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(88, "pivotTableDefinition16"); + builder.SetSchema(90, "pivotTableDefinition16"); builder.Availability = FileFormatVersions.Office2019; builder.AddElement() .AddAttribute(0, "EnabledSubtotalsDefault", a => a.EnabledSubtotalsDefault) diff --git a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_spreadsheetml_2016_revision5.g.cs b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_spreadsheetml_2016_revision5.g.cs deleted file mode 100644 index e77ee934e..000000000 --- a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_spreadsheetml_2016_revision5.g.cs +++ /dev/null @@ -1,837 +0,0 @@ -// Copyright (c) Microsoft. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -#nullable enable - -using DocumentFormat.OpenXml; -using DocumentFormat.OpenXml.Framework; -using DocumentFormat.OpenXml.Framework.Metadata; -using DocumentFormat.OpenXml.Packaging; -using DocumentFormat.OpenXml.Spreadsheet; -using DocumentFormat.OpenXml.Validation.Schema; -using System; -using System.Collections.Generic; -using System.IO.Packaging; - -namespace DocumentFormat.OpenXml.Office2019.Excel.Revision5 -{ - /// - /// Defines the HeaderRowDxfDxf Class. - /// This class is available in Office 2019 and above. - /// When the object is serialized out as xml, it's qualified name is xr5:headerRowDxf. - /// - /// - /// The following table lists the possible child types: - /// - /// DocumentFormat.OpenXml.Spreadsheet.Font <x:font> - /// DocumentFormat.OpenXml.Spreadsheet.NumberingFormat <x:numFmt> - /// DocumentFormat.OpenXml.Spreadsheet.Fill <x:fill> - /// DocumentFormat.OpenXml.Spreadsheet.Alignment <x:alignment> - /// DocumentFormat.OpenXml.Spreadsheet.Border <x:border> - /// DocumentFormat.OpenXml.Spreadsheet.Protection <x:protection> - /// DocumentFormat.OpenXml.Spreadsheet.ExtensionList <x:extLst> - /// - /// -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(92, "headerRowDxf")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class HeaderRowDxfDxf : DifferentialFormatType - { - /// - /// Initializes a new instance of the HeaderRowDxfDxf class. - /// - public HeaderRowDxfDxf() : base() - { - } - - /// - /// Initializes a new instance of the HeaderRowDxfDxf class with the specified child elements. - /// - /// Specifies the child elements. - public HeaderRowDxfDxf(IEnumerable childElements) : base(childElements) - { - } - - /// - /// Initializes a new instance of the HeaderRowDxfDxf class with the specified child elements. - /// - /// Specifies the child elements. - public HeaderRowDxfDxf(params OpenXmlElement[] childElements) : base(childElements) - { - } - - /// - /// Initializes a new instance of the HeaderRowDxfDxf class from outer XML. - /// - /// Specifies the outer XML of the element. - public HeaderRowDxfDxf(string outerXml) : base(outerXml) - { - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.SetSchema(92, "headerRowDxf"); - builder.Availability = FileFormatVersions.Office2019; - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Font), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.NumberingFormat), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Fill), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Alignment), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Border), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Protection), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.ExtensionList), 0, 1) - }; - } - - /// - public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); - } - - /// - /// Defines the DataDxfDxf Class. - /// This class is available in Office 2019 and above. - /// When the object is serialized out as xml, it's qualified name is xr5:dataDxf. - /// - /// - /// The following table lists the possible child types: - /// - /// DocumentFormat.OpenXml.Spreadsheet.Font <x:font> - /// DocumentFormat.OpenXml.Spreadsheet.NumberingFormat <x:numFmt> - /// DocumentFormat.OpenXml.Spreadsheet.Fill <x:fill> - /// DocumentFormat.OpenXml.Spreadsheet.Alignment <x:alignment> - /// DocumentFormat.OpenXml.Spreadsheet.Border <x:border> - /// DocumentFormat.OpenXml.Spreadsheet.Protection <x:protection> - /// DocumentFormat.OpenXml.Spreadsheet.ExtensionList <x:extLst> - /// - /// -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(92, "dataDxf")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class DataDxfDxf : DifferentialFormatType - { - /// - /// Initializes a new instance of the DataDxfDxf class. - /// - public DataDxfDxf() : base() - { - } - - /// - /// Initializes a new instance of the DataDxfDxf class with the specified child elements. - /// - /// Specifies the child elements. - public DataDxfDxf(IEnumerable childElements) : base(childElements) - { - } - - /// - /// Initializes a new instance of the DataDxfDxf class with the specified child elements. - /// - /// Specifies the child elements. - public DataDxfDxf(params OpenXmlElement[] childElements) : base(childElements) - { - } - - /// - /// Initializes a new instance of the DataDxfDxf class from outer XML. - /// - /// Specifies the outer XML of the element. - public DataDxfDxf(string outerXml) : base(outerXml) - { - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.SetSchema(92, "dataDxf"); - builder.Availability = FileFormatVersions.Office2019; - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Font), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.NumberingFormat), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Fill), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Alignment), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Border), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Protection), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.ExtensionList), 0, 1) - }; - } - - /// - public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); - } - - /// - /// Defines the TotalsRowDxfDxf Class. - /// This class is available in Office 2019 and above. - /// When the object is serialized out as xml, it's qualified name is xr5:totalsRowDxf. - /// - /// - /// The following table lists the possible child types: - /// - /// DocumentFormat.OpenXml.Spreadsheet.Font <x:font> - /// DocumentFormat.OpenXml.Spreadsheet.NumberingFormat <x:numFmt> - /// DocumentFormat.OpenXml.Spreadsheet.Fill <x:fill> - /// DocumentFormat.OpenXml.Spreadsheet.Alignment <x:alignment> - /// DocumentFormat.OpenXml.Spreadsheet.Border <x:border> - /// DocumentFormat.OpenXml.Spreadsheet.Protection <x:protection> - /// DocumentFormat.OpenXml.Spreadsheet.ExtensionList <x:extLst> - /// - /// -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(92, "totalsRowDxf")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class TotalsRowDxfDxf : DifferentialFormatType - { - /// - /// Initializes a new instance of the TotalsRowDxfDxf class. - /// - public TotalsRowDxfDxf() : base() - { - } - - /// - /// Initializes a new instance of the TotalsRowDxfDxf class with the specified child elements. - /// - /// Specifies the child elements. - public TotalsRowDxfDxf(IEnumerable childElements) : base(childElements) - { - } - - /// - /// Initializes a new instance of the TotalsRowDxfDxf class with the specified child elements. - /// - /// Specifies the child elements. - public TotalsRowDxfDxf(params OpenXmlElement[] childElements) : base(childElements) - { - } - - /// - /// Initializes a new instance of the TotalsRowDxfDxf class from outer XML. - /// - /// Specifies the outer XML of the element. - public TotalsRowDxfDxf(string outerXml) : base(outerXml) - { - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.SetSchema(92, "totalsRowDxf"); - builder.Availability = FileFormatVersions.Office2019; - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Font), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.NumberingFormat), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Fill), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Alignment), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Border), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Protection), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.ExtensionList), 0, 1) - }; - } - - /// - public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); - } - - /// - /// Defines the HeaderRowBorderDxfDxf Class. - /// This class is available in Office 2019 and above. - /// When the object is serialized out as xml, it's qualified name is xr5:headerRowBorderDxf. - /// - /// - /// The following table lists the possible child types: - /// - /// DocumentFormat.OpenXml.Spreadsheet.Font <x:font> - /// DocumentFormat.OpenXml.Spreadsheet.NumberingFormat <x:numFmt> - /// DocumentFormat.OpenXml.Spreadsheet.Fill <x:fill> - /// DocumentFormat.OpenXml.Spreadsheet.Alignment <x:alignment> - /// DocumentFormat.OpenXml.Spreadsheet.Border <x:border> - /// DocumentFormat.OpenXml.Spreadsheet.Protection <x:protection> - /// DocumentFormat.OpenXml.Spreadsheet.ExtensionList <x:extLst> - /// - /// -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(92, "headerRowBorderDxf")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class HeaderRowBorderDxfDxf : DifferentialFormatType - { - /// - /// Initializes a new instance of the HeaderRowBorderDxfDxf class. - /// - public HeaderRowBorderDxfDxf() : base() - { - } - - /// - /// Initializes a new instance of the HeaderRowBorderDxfDxf class with the specified child elements. - /// - /// Specifies the child elements. - public HeaderRowBorderDxfDxf(IEnumerable childElements) : base(childElements) - { - } - - /// - /// Initializes a new instance of the HeaderRowBorderDxfDxf class with the specified child elements. - /// - /// Specifies the child elements. - public HeaderRowBorderDxfDxf(params OpenXmlElement[] childElements) : base(childElements) - { - } - - /// - /// Initializes a new instance of the HeaderRowBorderDxfDxf class from outer XML. - /// - /// Specifies the outer XML of the element. - public HeaderRowBorderDxfDxf(string outerXml) : base(outerXml) - { - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.SetSchema(92, "headerRowBorderDxf"); - builder.Availability = FileFormatVersions.Office2019; - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Font), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.NumberingFormat), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Fill), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Alignment), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Border), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Protection), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.ExtensionList), 0, 1) - }; - } - - /// - public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); - } - - /// - /// Defines the TableBorderDxfDxf Class. - /// This class is available in Office 2019 and above. - /// When the object is serialized out as xml, it's qualified name is xr5:tableBorderDxf. - /// - /// - /// The following table lists the possible child types: - /// - /// DocumentFormat.OpenXml.Spreadsheet.Font <x:font> - /// DocumentFormat.OpenXml.Spreadsheet.NumberingFormat <x:numFmt> - /// DocumentFormat.OpenXml.Spreadsheet.Fill <x:fill> - /// DocumentFormat.OpenXml.Spreadsheet.Alignment <x:alignment> - /// DocumentFormat.OpenXml.Spreadsheet.Border <x:border> - /// DocumentFormat.OpenXml.Spreadsheet.Protection <x:protection> - /// DocumentFormat.OpenXml.Spreadsheet.ExtensionList <x:extLst> - /// - /// -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(92, "tableBorderDxf")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class TableBorderDxfDxf : DifferentialFormatType - { - /// - /// Initializes a new instance of the TableBorderDxfDxf class. - /// - public TableBorderDxfDxf() : base() - { - } - - /// - /// Initializes a new instance of the TableBorderDxfDxf class with the specified child elements. - /// - /// Specifies the child elements. - public TableBorderDxfDxf(IEnumerable childElements) : base(childElements) - { - } - - /// - /// Initializes a new instance of the TableBorderDxfDxf class with the specified child elements. - /// - /// Specifies the child elements. - public TableBorderDxfDxf(params OpenXmlElement[] childElements) : base(childElements) - { - } - - /// - /// Initializes a new instance of the TableBorderDxfDxf class from outer XML. - /// - /// Specifies the outer XML of the element. - public TableBorderDxfDxf(string outerXml) : base(outerXml) - { - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.SetSchema(92, "tableBorderDxf"); - builder.Availability = FileFormatVersions.Office2019; - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Font), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.NumberingFormat), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Fill), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Alignment), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Border), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Protection), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.ExtensionList), 0, 1) - }; - } - - /// - public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); - } - - /// - /// Defines the TotalsRowBorderDxfDxf Class. - /// This class is available in Office 2019 and above. - /// When the object is serialized out as xml, it's qualified name is xr5:totalsRowBorderDxf. - /// - /// - /// The following table lists the possible child types: - /// - /// DocumentFormat.OpenXml.Spreadsheet.Font <x:font> - /// DocumentFormat.OpenXml.Spreadsheet.NumberingFormat <x:numFmt> - /// DocumentFormat.OpenXml.Spreadsheet.Fill <x:fill> - /// DocumentFormat.OpenXml.Spreadsheet.Alignment <x:alignment> - /// DocumentFormat.OpenXml.Spreadsheet.Border <x:border> - /// DocumentFormat.OpenXml.Spreadsheet.Protection <x:protection> - /// DocumentFormat.OpenXml.Spreadsheet.ExtensionList <x:extLst> - /// - /// -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(92, "totalsRowBorderDxf")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class TotalsRowBorderDxfDxf : DifferentialFormatType - { - /// - /// Initializes a new instance of the TotalsRowBorderDxfDxf class. - /// - public TotalsRowBorderDxfDxf() : base() - { - } - - /// - /// Initializes a new instance of the TotalsRowBorderDxfDxf class with the specified child elements. - /// - /// Specifies the child elements. - public TotalsRowBorderDxfDxf(IEnumerable childElements) : base(childElements) - { - } - - /// - /// Initializes a new instance of the TotalsRowBorderDxfDxf class with the specified child elements. - /// - /// Specifies the child elements. - public TotalsRowBorderDxfDxf(params OpenXmlElement[] childElements) : base(childElements) - { - } - - /// - /// Initializes a new instance of the TotalsRowBorderDxfDxf class from outer XML. - /// - /// Specifies the outer XML of the element. - public TotalsRowBorderDxfDxf(string outerXml) : base(outerXml) - { - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.SetSchema(92, "totalsRowBorderDxf"); - builder.Availability = FileFormatVersions.Office2019; - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Font), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.NumberingFormat), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Fill), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Alignment), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Border), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Protection), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.ExtensionList), 0, 1) - }; - } - - /// - public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); - } - - /// - /// Defines the ColumnHeaderDxfDxf Class. - /// This class is available in Office 2019 and above. - /// When the object is serialized out as xml, it's qualified name is xr5:columnHeaderDxf. - /// - /// - /// The following table lists the possible child types: - /// - /// DocumentFormat.OpenXml.Spreadsheet.Font <x:font> - /// DocumentFormat.OpenXml.Spreadsheet.NumberingFormat <x:numFmt> - /// DocumentFormat.OpenXml.Spreadsheet.Fill <x:fill> - /// DocumentFormat.OpenXml.Spreadsheet.Alignment <x:alignment> - /// DocumentFormat.OpenXml.Spreadsheet.Border <x:border> - /// DocumentFormat.OpenXml.Spreadsheet.Protection <x:protection> - /// DocumentFormat.OpenXml.Spreadsheet.ExtensionList <x:extLst> - /// - /// -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(92, "columnHeaderDxf")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class ColumnHeaderDxfDxf : DifferentialFormatType - { - /// - /// Initializes a new instance of the ColumnHeaderDxfDxf class. - /// - public ColumnHeaderDxfDxf() : base() - { - } - - /// - /// Initializes a new instance of the ColumnHeaderDxfDxf class with the specified child elements. - /// - /// Specifies the child elements. - public ColumnHeaderDxfDxf(IEnumerable childElements) : base(childElements) - { - } - - /// - /// Initializes a new instance of the ColumnHeaderDxfDxf class with the specified child elements. - /// - /// Specifies the child elements. - public ColumnHeaderDxfDxf(params OpenXmlElement[] childElements) : base(childElements) - { - } - - /// - /// Initializes a new instance of the ColumnHeaderDxfDxf class from outer XML. - /// - /// Specifies the outer XML of the element. - public ColumnHeaderDxfDxf(string outerXml) : base(outerXml) - { - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.SetSchema(92, "columnHeaderDxf"); - builder.Availability = FileFormatVersions.Office2019; - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Font), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.NumberingFormat), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Fill), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Alignment), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Border), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Protection), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.ExtensionList), 0, 1) - }; - } - - /// - public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); - } - - /// - /// Defines the ColumnBodyDxfDxf Class. - /// This class is available in Office 2019 and above. - /// When the object is serialized out as xml, it's qualified name is xr5:columnBodyDxf. - /// - /// - /// The following table lists the possible child types: - /// - /// DocumentFormat.OpenXml.Spreadsheet.Font <x:font> - /// DocumentFormat.OpenXml.Spreadsheet.NumberingFormat <x:numFmt> - /// DocumentFormat.OpenXml.Spreadsheet.Fill <x:fill> - /// DocumentFormat.OpenXml.Spreadsheet.Alignment <x:alignment> - /// DocumentFormat.OpenXml.Spreadsheet.Border <x:border> - /// DocumentFormat.OpenXml.Spreadsheet.Protection <x:protection> - /// DocumentFormat.OpenXml.Spreadsheet.ExtensionList <x:extLst> - /// - /// -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(92, "columnBodyDxf")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class ColumnBodyDxfDxf : DifferentialFormatType - { - /// - /// Initializes a new instance of the ColumnBodyDxfDxf class. - /// - public ColumnBodyDxfDxf() : base() - { - } - - /// - /// Initializes a new instance of the ColumnBodyDxfDxf class with the specified child elements. - /// - /// Specifies the child elements. - public ColumnBodyDxfDxf(IEnumerable childElements) : base(childElements) - { - } - - /// - /// Initializes a new instance of the ColumnBodyDxfDxf class with the specified child elements. - /// - /// Specifies the child elements. - public ColumnBodyDxfDxf(params OpenXmlElement[] childElements) : base(childElements) - { - } - - /// - /// Initializes a new instance of the ColumnBodyDxfDxf class from outer XML. - /// - /// Specifies the outer XML of the element. - public ColumnBodyDxfDxf(string outerXml) : base(outerXml) - { - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.SetSchema(92, "columnBodyDxf"); - builder.Availability = FileFormatVersions.Office2019; - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Font), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.NumberingFormat), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Fill), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Alignment), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Border), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Protection), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.ExtensionList), 0, 1) - }; - } - - /// - public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); - } - - /// - /// Defines the ColumnTotalsDxfDxf Class. - /// This class is available in Office 2019 and above. - /// When the object is serialized out as xml, it's qualified name is xr5:columnTotalsDxf. - /// - /// - /// The following table lists the possible child types: - /// - /// DocumentFormat.OpenXml.Spreadsheet.Font <x:font> - /// DocumentFormat.OpenXml.Spreadsheet.NumberingFormat <x:numFmt> - /// DocumentFormat.OpenXml.Spreadsheet.Fill <x:fill> - /// DocumentFormat.OpenXml.Spreadsheet.Alignment <x:alignment> - /// DocumentFormat.OpenXml.Spreadsheet.Border <x:border> - /// DocumentFormat.OpenXml.Spreadsheet.Protection <x:protection> - /// DocumentFormat.OpenXml.Spreadsheet.ExtensionList <x:extLst> - /// - /// -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(92, "columnTotalsDxf")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class ColumnTotalsDxfDxf : DifferentialFormatType - { - /// - /// Initializes a new instance of the ColumnTotalsDxfDxf class. - /// - public ColumnTotalsDxfDxf() : base() - { - } - - /// - /// Initializes a new instance of the ColumnTotalsDxfDxf class with the specified child elements. - /// - /// Specifies the child elements. - public ColumnTotalsDxfDxf(IEnumerable childElements) : base(childElements) - { - } - - /// - /// Initializes a new instance of the ColumnTotalsDxfDxf class with the specified child elements. - /// - /// Specifies the child elements. - public ColumnTotalsDxfDxf(params OpenXmlElement[] childElements) : base(childElements) - { - } - - /// - /// Initializes a new instance of the ColumnTotalsDxfDxf class from outer XML. - /// - /// Specifies the outer XML of the element. - public ColumnTotalsDxfDxf(string outerXml) : base(outerXml) - { - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.SetSchema(92, "columnTotalsDxf"); - builder.Availability = FileFormatVersions.Office2019; - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Font), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.NumberingFormat), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Fill), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Alignment), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Border), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Protection), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.ExtensionList), 0, 1) - }; - } - - /// - public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); - } - - /// - /// Defines the DifferentialFormatType Class. - /// This class is available in Office 2007 and above. - /// When the object is serialized out as xml, it's qualified name is :. - /// - /// - /// The following table lists the possible child types: - /// - /// DocumentFormat.OpenXml.Spreadsheet.Font <x:font> - /// DocumentFormat.OpenXml.Spreadsheet.NumberingFormat <x:numFmt> - /// DocumentFormat.OpenXml.Spreadsheet.Fill <x:fill> - /// DocumentFormat.OpenXml.Spreadsheet.Alignment <x:alignment> - /// DocumentFormat.OpenXml.Spreadsheet.Border <x:border> - /// DocumentFormat.OpenXml.Spreadsheet.Protection <x:protection> - /// DocumentFormat.OpenXml.Spreadsheet.ExtensionList <x:extLst> - /// - /// - public abstract partial class DifferentialFormatType : OpenXmlCompositeElement - { - /// - /// Initializes a new instance of the DifferentialFormatType class. - /// - protected DifferentialFormatType() : base() - { - } - - /// - /// Initializes a new instance of the DifferentialFormatType class with the specified child elements. - /// - /// Specifies the child elements. - protected DifferentialFormatType(IEnumerable childElements) : base(childElements) - { - } - - /// - /// Initializes a new instance of the DifferentialFormatType class with the specified child elements. - /// - /// Specifies the child elements. - protected DifferentialFormatType(params OpenXmlElement[] childElements) : base(childElements) - { - } - - /// - /// Initializes a new instance of the DifferentialFormatType class from outer XML. - /// - /// Specifies the outer XML of the element. - protected DifferentialFormatType(string outerXml) : base(outerXml) - { - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - } - - /// - /// Font Properties. - /// Represents the following element tag in the schema: x:font. - /// - /// - /// xmlns:x = http://schemas.openxmlformats.org/spreadsheetml/2006/main - /// - public DocumentFormat.OpenXml.Spreadsheet.Font? Font - { - get => GetElement(); - set => SetElement(value); - } - - /// - /// Number Format. - /// Represents the following element tag in the schema: x:numFmt. - /// - /// - /// xmlns:x = http://schemas.openxmlformats.org/spreadsheetml/2006/main - /// - public DocumentFormat.OpenXml.Spreadsheet.NumberingFormat? NumberingFormat - { - get => GetElement(); - set => SetElement(value); - } - - /// - /// Fill. - /// Represents the following element tag in the schema: x:fill. - /// - /// - /// xmlns:x = http://schemas.openxmlformats.org/spreadsheetml/2006/main - /// - public DocumentFormat.OpenXml.Spreadsheet.Fill? Fill - { - get => GetElement(); - set => SetElement(value); - } - - /// - /// Alignment. - /// Represents the following element tag in the schema: x:alignment. - /// - /// - /// xmlns:x = http://schemas.openxmlformats.org/spreadsheetml/2006/main - /// - public DocumentFormat.OpenXml.Spreadsheet.Alignment? Alignment - { - get => GetElement(); - set => SetElement(value); - } - - /// - /// Border Properties. - /// Represents the following element tag in the schema: x:border. - /// - /// - /// xmlns:x = http://schemas.openxmlformats.org/spreadsheetml/2006/main - /// - public DocumentFormat.OpenXml.Spreadsheet.Border? Border - { - get => GetElement(); - set => SetElement(value); - } - - /// - /// Protection Properties. - /// Represents the following element tag in the schema: x:protection. - /// - /// - /// xmlns:x = http://schemas.openxmlformats.org/spreadsheetml/2006/main - /// - public DocumentFormat.OpenXml.Spreadsheet.Protection? Protection - { - get => GetElement(); - set => SetElement(value); - } - - /// - /// Future Feature Data Storage Area. - /// Represents the following element tag in the schema: x:extLst. - /// - /// - /// xmlns:x = http://schemas.openxmlformats.org/spreadsheetml/2006/main - /// - public DocumentFormat.OpenXml.Spreadsheet.ExtensionList? ExtensionList - { - get => GetElement(); - set => SetElement(value); - } - } -} \ No newline at end of file diff --git a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_spreadsheetml_2017_dynamicarray.g.cs b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_spreadsheetml_2017_dynamicarray.g.cs index a17029182..ae77582e2 100644 --- a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_spreadsheetml_2017_dynamicarray.g.cs +++ b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_spreadsheetml_2017_dynamicarray.g.cs @@ -27,7 +27,7 @@ namespace DocumentFormat.OpenXml.Office2019.Excel.DynamicArray /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(102, "dynamicArrayProperties")] + [SchemaAttr(104, "dynamicArrayProperties")] #pragma warning restore CS0618 // Type or member is obsolete public partial class DynamicArrayProperties : OpenXmlCompositeElement { @@ -97,7 +97,7 @@ public BooleanValue? FCollapsed internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(102, "dynamicArrayProperties"); + builder.SetSchema(104, "dynamicArrayProperties"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.AddElement() @@ -138,7 +138,7 @@ public ExtensionList? ExtensionList /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(102, "extLst")] + [SchemaAttr(104, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete public partial class ExtensionList : OpenXmlCompositeElement { @@ -176,7 +176,7 @@ public ExtensionList(string outerXml) : base(outerXml) internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(102, "extLst"); + builder.SetSchema(104, "extLst"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) diff --git a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_spreadsheetml_2017_richdata.g.cs b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_spreadsheetml_2017_richdata.g.cs index c308e739c..2ef93cf56 100644 --- a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_spreadsheetml_2017_richdata.g.cs +++ b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_spreadsheetml_2017_richdata.g.cs @@ -21,7 +21,7 @@ namespace DocumentFormat.OpenXml.Office2019.Excel.RichData /// When the object is serialized out as xml, it's qualified name is xlrd:rvb. /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(98, "rvb")] + [SchemaAttr(100, "rvb")] #pragma warning restore CS0618 // Type or member is obsolete public partial class RichValueBlock : OpenXmlLeafElement { @@ -51,7 +51,7 @@ public UInt32Value? I internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(98, "rvb"); + builder.SetSchema(100, "rvb"); builder.Availability = FileFormatVersions.Office2019; builder.AddElement() .AddAttribute(0, "i", a => a.I, aBuilder => @@ -77,7 +77,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(98, "rvData")] + [SchemaAttr(100, "rvData")] #pragma warning restore CS0618 // Type or member is obsolete public partial class RichValueData : OpenXmlCompositeElement { @@ -131,7 +131,7 @@ public UInt32Value? Count internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(98, "rvData"); + builder.SetSchema(100, "rvData"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.AddChild(); @@ -164,7 +164,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(98, "rvStructures")] + [SchemaAttr(100, "rvStructures")] #pragma warning restore CS0618 // Type or member is obsolete public partial class RichValueStructures : OpenXmlCompositeElement { @@ -218,7 +218,7 @@ public UInt32Value? Count internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(98, "rvStructures"); + builder.SetSchema(100, "rvStructures"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.AddChild(); @@ -251,7 +251,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(98, "rv")] + [SchemaAttr(100, "rv")] #pragma warning restore CS0618 // Type or member is obsolete public partial class RichValue : OpenXmlCompositeElement { @@ -305,7 +305,7 @@ public UInt32Value? S internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(98, "rv"); + builder.SetSchema(100, "rv"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.AddChild(); @@ -350,7 +350,7 @@ public RichValueFallback? RichValueFallback /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(98, "extLst")] + [SchemaAttr(100, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete public partial class ExtensionList : OpenXmlCompositeElement { @@ -388,7 +388,7 @@ public ExtensionList(string outerXml) : base(outerXml) internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(98, "extLst"); + builder.SetSchema(100, "extLst"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) @@ -413,7 +413,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// When the object is serialized out as xml, it's qualified name is xlrd:fb. /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(98, "fb")] + [SchemaAttr(100, "fb")] #pragma warning restore CS0618 // Type or member is obsolete public partial class RichValueFallback : OpenXmlLeafTextElement { @@ -456,7 +456,7 @@ public EnumValue() .AddAttribute(0, "t", a => a.T); @@ -472,7 +472,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// When the object is serialized out as xml, it's qualified name is xlrd:v. /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(98, "v")] + [SchemaAttr(100, "v")] #pragma warning restore CS0618 // Type or member is obsolete public partial class Value : OpenXmlLeafTextElement { @@ -499,7 +499,7 @@ internal override OpenXmlSimpleType InnerTextToValue(string text) internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(98, "v"); + builder.SetSchema(100, "v"); builder.Availability = FileFormatVersions.Office2019; } @@ -519,7 +519,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(98, "s")] + [SchemaAttr(100, "s")] #pragma warning restore CS0618 // Type or member is obsolete public partial class RichValueStructure : OpenXmlCompositeElement { @@ -573,7 +573,7 @@ public StringValue? T internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(98, "s"); + builder.SetSchema(100, "s"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.AddElement() @@ -597,7 +597,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// When the object is serialized out as xml, it's qualified name is xlrd:k. /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(98, "k")] + [SchemaAttr(100, "k")] #pragma warning restore CS0618 // Type or member is obsolete public partial class Key : OpenXmlLeafElement { @@ -643,7 +643,7 @@ public EnumValue() .AddAttribute(0, "n", a => a.N, aBuilder => diff --git a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_spreadsheetml_2017_richdata2.g.cs b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_spreadsheetml_2017_richdata2.g.cs index 44f905a09..51017ab1e 100644 --- a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_spreadsheetml_2017_richdata2.g.cs +++ b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_spreadsheetml_2017_richdata2.g.cs @@ -32,7 +32,7 @@ namespace DocumentFormat.OpenXml.Office2019.Excel.RichData2 /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "filterColumn")] + [SchemaAttr(99, "filterColumn")] #pragma warning restore CS0618 // Type or member is obsolete public partial class RichFilterColumn : OpenXmlCompositeElement { @@ -70,7 +70,7 @@ public RichFilterColumn(string outerXml) : base(outerXml) internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "filterColumn"); + builder.SetSchema(99, "filterColumn"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.AddChild(); @@ -162,7 +162,7 @@ public ExtensionList? ExtensionList /// When the object is serialized out as xml, it's qualified name is xlrd2:richSortCondition. /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "richSortCondition")] + [SchemaAttr(99, "richSortCondition")] #pragma warning restore CS0618 // Type or member is obsolete public partial class RichSortCondition : OpenXmlLeafElement { @@ -304,7 +304,7 @@ public UInt32Value? IconId internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "richSortCondition"); + builder.SetSchema(99, "richSortCondition"); builder.Availability = FileFormatVersions.Office2019; builder.AddElement() .AddAttribute(0, "richSortKey", a => a.RichSortKey) @@ -337,7 +337,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "supportingPropertyBags")] + [SchemaAttr(99, "supportingPropertyBags")] #pragma warning restore CS0618 // Type or member is obsolete public partial class SupportingPropertyBags : OpenXmlCompositeElement { @@ -375,7 +375,7 @@ public SupportingPropertyBags(string outerXml) : base(outerXml) internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "supportingPropertyBags"); + builder.SetSchema(99, "supportingPropertyBags"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.AddChild(); @@ -429,7 +429,7 @@ public SupportingPropertyBagData? SupportingPropertyBagData /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "spbStructures")] + [SchemaAttr(99, "spbStructures")] #pragma warning restore CS0618 // Type or member is obsolete public partial class SupportingPropertyBagStructures : OpenXmlCompositeElement { @@ -483,7 +483,7 @@ public UInt32Value? Count internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "spbStructures"); + builder.SetSchema(99, "spbStructures"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.AddChild(); @@ -516,7 +516,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "arrayData")] + [SchemaAttr(99, "arrayData")] #pragma warning restore CS0618 // Type or member is obsolete public partial class ArrayData : OpenXmlCompositeElement { @@ -570,7 +570,7 @@ public UInt32Value? Count internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "arrayData"); + builder.SetSchema(99, "arrayData"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.AddChild(); @@ -605,7 +605,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "richStyleSheet")] + [SchemaAttr(99, "richStyleSheet")] #pragma warning restore CS0618 // Type or member is obsolete public partial class RichStylesheet : OpenXmlCompositeElement { @@ -643,7 +643,7 @@ public RichStylesheet(string outerXml) : base(outerXml) internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "richStyleSheet"); + builder.SetSchema(99, "richStyleSheet"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.AddChild(); @@ -728,7 +728,7 @@ public ExtensionList? ExtensionList /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "rvTypesInfo")] + [SchemaAttr(99, "rvTypesInfo")] #pragma warning restore CS0618 // Type or member is obsolete public partial class RichValueTypesInfo : OpenXmlCompositeElement { @@ -766,7 +766,7 @@ public RichValueTypesInfo(string outerXml) : base(outerXml) internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "rvTypesInfo"); + builder.SetSchema(99, "rvTypesInfo"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.AddChild(); @@ -836,7 +836,7 @@ public ExtensionList? ExtensionList /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "filters")] + [SchemaAttr(99, "filters")] #pragma warning restore CS0618 // Type or member is obsolete public partial class RichFilters : OpenXmlCompositeElement { @@ -874,7 +874,7 @@ public RichFilters(string outerXml) : base(outerXml) internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "filters"); + builder.SetSchema(99, "filters"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.AddChild(); @@ -897,7 +897,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// When the object is serialized out as xml, it's qualified name is xlrd2:top10. /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "top10")] + [SchemaAttr(99, "top10")] #pragma warning restore CS0618 // Type or member is obsolete public partial class RichTop10 : OpenXmlLeafElement { @@ -991,7 +991,7 @@ public DoubleValue? FilterValue internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "top10"); + builder.SetSchema(99, "top10"); builder.Availability = FileFormatVersions.Office2019; builder.AddElement() .AddAttribute(0, "key", a => a.Key) @@ -1021,7 +1021,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "customFilters")] + [SchemaAttr(99, "customFilters")] #pragma warning restore CS0618 // Type or member is obsolete public partial class CustomRichFilters : OpenXmlCompositeElement { @@ -1075,7 +1075,7 @@ public BooleanValue? And internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "customFilters"); + builder.SetSchema(99, "customFilters"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.AddChild(); @@ -1101,7 +1101,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// When the object is serialized out as xml, it's qualified name is xlrd2:dynamicFilter. /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "dynamicFilter")] + [SchemaAttr(99, "dynamicFilter")] #pragma warning restore CS0618 // Type or member is obsolete public partial class DynamicRichFilter : OpenXmlLeafElement { @@ -1211,7 +1211,7 @@ public DateTimeValue? MaxValIso internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "dynamicFilter"); + builder.SetSchema(99, "dynamicFilter"); builder.Availability = FileFormatVersions.Office2019; builder.AddElement() .AddAttribute(0, "key", a => a.Key) @@ -1235,82 +1235,6 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); } - /// - /// Defines the RichExtensionList Class. - /// This class is available in Office 2019 and above. - /// When the object is serialized out as xml, it's qualified name is xlrd2:richExtLst. - /// - /// - /// The following table lists the possible child types: - /// - /// ExtensionList <xlrd2:extLst> - /// - /// -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "richExtLst")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class RichExtensionList : OpenXmlCompositeElement - { - /// - /// Initializes a new instance of the RichExtensionList class. - /// - public RichExtensionList() : base() - { - } - - /// - /// Initializes a new instance of the RichExtensionList class with the specified child elements. - /// - /// Specifies the child elements. - public RichExtensionList(IEnumerable childElements) : base(childElements) - { - } - - /// - /// Initializes a new instance of the RichExtensionList class with the specified child elements. - /// - /// Specifies the child elements. - public RichExtensionList(params OpenXmlElement[] childElements) : base(childElements) - { - } - - /// - /// Initializes a new instance of the RichExtensionList class from outer XML. - /// - /// Specifies the outer XML of the element. - public RichExtensionList(string outerXml) : base(outerXml) - { - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.SetSchema(97, "richExtLst"); - builder.Availability = FileFormatVersions.Office2019; - builder.AddChild(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Excel.RichData2.ExtensionList), 1, 1, version: FileFormatVersions.Office2019) - }; - } - - /// - /// ExtensionList. - /// Represents the following element tag in the schema: xlrd2:extLst. - /// - /// - /// xmlns:xlrd2 = http://schemas.microsoft.com/office/spreadsheetml/2017/richdata2 - /// - public ExtensionList? ExtensionList - { - get => GetElement(); - set => SetElement(value); - } - - /// - public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); - } - /// /// Defines the ExtensionList Class. /// This class is available in Office 2019 and above. @@ -1323,7 +1247,7 @@ public ExtensionList? ExtensionList /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "extLst")] + [SchemaAttr(99, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete public partial class ExtensionList : OpenXmlCompositeElement { @@ -1361,7 +1285,7 @@ public ExtensionList(string outerXml) : base(outerXml) internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "extLst"); + builder.SetSchema(99, "extLst"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) @@ -1386,7 +1310,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// When the object is serialized out as xml, it's qualified name is xlrd2:filter. /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "filter")] + [SchemaAttr(99, "filter")] #pragma warning restore CS0618 // Type or member is obsolete public partial class RichFilter : OpenXmlLeafElement { @@ -1464,7 +1388,7 @@ public BooleanValue? Nodata internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "filter"); + builder.SetSchema(99, "filter"); builder.Availability = FileFormatVersions.Office2019; builder.AddElement() .AddAttribute(0, "key", a => a.Key) @@ -1483,7 +1407,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// When the object is serialized out as xml, it's qualified name is xlrd2:dateGroupItem. /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "dateGroupItem")] + [SchemaAttr(99, "dateGroupItem")] #pragma warning restore CS0618 // Type or member is obsolete public partial class RichDateGroupItem : OpenXmlLeafElement { @@ -1625,7 +1549,7 @@ public EnumValue? Dat internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "dateGroupItem"); + builder.SetSchema(99, "dateGroupItem"); builder.Availability = FileFormatVersions.Office2019; builder.AddElement() .AddAttribute(0, "key", a => a.Key) @@ -1654,7 +1578,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// When the object is serialized out as xml, it's qualified name is xlrd2:customFilter. /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "customFilter")] + [SchemaAttr(99, "customFilter")] #pragma warning restore CS0618 // Type or member is obsolete public partial class CustomRichFilter : OpenXmlLeafElement { @@ -1716,7 +1640,7 @@ public StringValue? Val internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "customFilter"); + builder.SetSchema(99, "customFilter"); builder.Availability = FileFormatVersions.Office2019; builder.AddElement() .AddAttribute(0, "key", a => a.Key) @@ -1741,7 +1665,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "spbArrays")] + [SchemaAttr(99, "spbArrays")] #pragma warning restore CS0618 // Type or member is obsolete public partial class SupportingPropertyBagArrayData : OpenXmlCompositeElement { @@ -1795,7 +1719,7 @@ public UInt32Value? Count internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "spbArrays"); + builder.SetSchema(99, "spbArrays"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.AddChild(); @@ -1828,7 +1752,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "spbData")] + [SchemaAttr(99, "spbData")] #pragma warning restore CS0618 // Type or member is obsolete public partial class SupportingPropertyBagData : OpenXmlCompositeElement { @@ -1882,7 +1806,7 @@ public UInt32Value? Count internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "spbData"); + builder.SetSchema(99, "spbData"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.AddChild(); @@ -1914,7 +1838,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "spb")] + [SchemaAttr(99, "spb")] #pragma warning restore CS0618 // Type or member is obsolete public partial class SupportingPropertyBag : OpenXmlCompositeElement { @@ -1968,7 +1892,7 @@ public UInt32Value? S internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "spb"); + builder.SetSchema(99, "spb"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.AddElement() @@ -1992,7 +1916,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// When the object is serialized out as xml, it's qualified name is xlrd2:v. /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "v")] + [SchemaAttr(99, "v")] #pragma warning restore CS0618 // Type or member is obsolete public partial class SupportingPropertyBagValue : OpenXmlLeafTextElement { @@ -2019,7 +1943,7 @@ internal override OpenXmlSimpleType InnerTextToValue(string text) internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "v"); + builder.SetSchema(99, "v"); builder.Availability = FileFormatVersions.Office2019; } @@ -2039,7 +1963,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "s")] + [SchemaAttr(99, "s")] #pragma warning restore CS0618 // Type or member is obsolete public partial class SupportingPropertyBagStructure : OpenXmlCompositeElement { @@ -2077,7 +2001,7 @@ public SupportingPropertyBagStructure(string outerXml) : base(outerXml) internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "s"); + builder.SetSchema(99, "s"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) @@ -2096,7 +2020,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// When the object is serialized out as xml, it's qualified name is xlrd2:k. /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "k")] + [SchemaAttr(99, "k")] #pragma warning restore CS0618 // Type or member is obsolete public partial class SupportingPropertyBagKey : OpenXmlLeafElement { @@ -2142,7 +2066,7 @@ public EnumValue() .AddAttribute(0, "n", a => a.N, aBuilder => @@ -2168,7 +2092,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "a")] + [SchemaAttr(99, "a")] #pragma warning restore CS0618 // Type or member is obsolete public partial class SupportingPropertyBagArray : OpenXmlCompositeElement { @@ -2222,7 +2146,7 @@ public UInt32Value? Count internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "a"); + builder.SetSchema(99, "a"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.AddElement() @@ -2246,7 +2170,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// When the object is serialized out as xml, it's qualified name is xlrd2:v. /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "v")] + [SchemaAttr(99, "v")] #pragma warning restore CS0618 // Type or member is obsolete public partial class SupportingPropertyBagArrayValue : OpenXmlLeafTextElement { @@ -2289,7 +2213,7 @@ public EnumValue() .AddAttribute(0, "t", a => a.T); @@ -2311,7 +2235,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "a")] + [SchemaAttr(99, "a")] #pragma warning restore CS0618 // Type or member is obsolete public partial class Array : OpenXmlCompositeElement { @@ -2381,7 +2305,7 @@ public UInt32Value? C internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "a"); + builder.SetSchema(99, "a"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.AddElement() @@ -2406,7 +2330,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// When the object is serialized out as xml, it's qualified name is xlrd2:v. /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "v")] + [SchemaAttr(99, "v")] #pragma warning restore CS0618 // Type or member is obsolete public partial class ArrayValue : OpenXmlLeafTextElement { @@ -2449,7 +2373,7 @@ public EnumValue() .AddAttribute(0, "t", a => a.T); @@ -2471,7 +2395,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "dxfs")] + [SchemaAttr(99, "dxfs")] #pragma warning restore CS0618 // Type or member is obsolete public partial class Dxfs : OpenXmlCompositeElement { @@ -2525,7 +2449,7 @@ public UInt32Value? Count internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "dxfs"); + builder.SetSchema(99, "dxfs"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.AddElement() @@ -2552,7 +2476,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "richProperties")] + [SchemaAttr(99, "richProperties")] #pragma warning restore CS0618 // Type or member is obsolete public partial class RichFormatProperties : OpenXmlCompositeElement { @@ -2590,7 +2514,7 @@ public RichFormatProperties(string outerXml) : base(outerXml) internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "richProperties"); + builder.SetSchema(99, "richProperties"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) @@ -2615,7 +2539,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "richStyles")] + [SchemaAttr(99, "richStyles")] #pragma warning restore CS0618 // Type or member is obsolete public partial class RichStyles : OpenXmlCompositeElement { @@ -2653,7 +2577,7 @@ public RichStyles(string outerXml) : base(outerXml) internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "richStyles"); + builder.SetSchema(99, "richStyles"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) @@ -2672,7 +2596,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// When the object is serialized out as xml, it's qualified name is xlrd2:rPr. /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "rPr")] + [SchemaAttr(99, "rPr")] #pragma warning restore CS0618 // Type or member is obsolete public partial class RichFormatProperty : OpenXmlLeafElement { @@ -2718,7 +2642,7 @@ public EnumValue() .AddAttribute(0, "n", a => a.N, aBuilder => @@ -2747,7 +2671,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "rSty")] + [SchemaAttr(99, "rSty")] #pragma warning restore CS0618 // Type or member is obsolete public partial class RichStyle : OpenXmlCompositeElement { @@ -2801,7 +2725,7 @@ public UInt32Value? Dxfid internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "rSty"); + builder.SetSchema(99, "rSty"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.AddElement() @@ -2822,7 +2746,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// When the object is serialized out as xml, it's qualified name is xlrd2:rpv. /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "rpv")] + [SchemaAttr(99, "rpv")] #pragma warning restore CS0618 // Type or member is obsolete public partial class RichStylePropertyValue : OpenXmlLeafTextElement { @@ -2865,7 +2789,7 @@ public UInt32Value? I internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "rpv"); + builder.SetSchema(99, "rpv"); builder.Availability = FileFormatVersions.Office2019; builder.AddElement() .AddAttribute(0, "i", a => a.I, aBuilder => @@ -2891,7 +2815,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "global")] + [SchemaAttr(99, "global")] #pragma warning restore CS0618 // Type or member is obsolete public partial class RichValueGlobalType : OpenXmlCompositeElement { @@ -2929,7 +2853,7 @@ public RichValueGlobalType(string outerXml) : base(outerXml) internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "global"); + builder.SetSchema(99, "global"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.AddChild(); @@ -2982,7 +2906,7 @@ public ExtensionList? ExtensionList /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "types")] + [SchemaAttr(99, "types")] #pragma warning restore CS0618 // Type or member is obsolete public partial class RichValueTypes : OpenXmlCompositeElement { @@ -3020,7 +2944,7 @@ public RichValueTypes(string outerXml) : base(outerXml) internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "types"); + builder.SetSchema(99, "types"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) @@ -3046,7 +2970,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "type")] + [SchemaAttr(99, "type")] #pragma warning restore CS0618 // Type or member is obsolete public partial class RichValueType : OpenXmlCompositeElement { @@ -3100,7 +3024,7 @@ public StringValue? Name internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "type"); + builder.SetSchema(99, "type"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.AddChild(); @@ -3158,7 +3082,7 @@ public ExtensionList? ExtensionList /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "keyFlags")] + [SchemaAttr(99, "keyFlags")] #pragma warning restore CS0618 // Type or member is obsolete public partial class RichValueTypeKeyFlags : OpenXmlCompositeElement { @@ -3196,7 +3120,7 @@ public RichValueTypeKeyFlags(string outerXml) : base(outerXml) internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "keyFlags"); + builder.SetSchema(99, "keyFlags"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) @@ -3221,7 +3145,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "key")] + [SchemaAttr(99, "key")] #pragma warning restore CS0618 // Type or member is obsolete public partial class RichValueTypeReservedKey : OpenXmlCompositeElement { @@ -3275,7 +3199,7 @@ public StringValue? Name internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "key"); + builder.SetSchema(99, "key"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.AddElement() @@ -3299,7 +3223,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// When the object is serialized out as xml, it's qualified name is xlrd2:flag. /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(97, "flag")] + [SchemaAttr(99, "flag")] #pragma warning restore CS0618 // Type or member is obsolete public partial class RichValueTypeReservedKeyFlag : OpenXmlLeafElement { @@ -3345,7 +3269,7 @@ public BooleanValue? Value internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(97, "flag"); + builder.SetSchema(99, "flag"); builder.Availability = FileFormatVersions.Office2019; builder.AddElement() .AddAttribute(0, "name", a => a.Name, aBuilder => diff --git a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_spreadsheetml_2018_calcfeatures.g.cs b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_spreadsheetml_2018_calcfeatures.g.cs index b4ab3587f..12a409b03 100644 --- a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_spreadsheetml_2018_calcfeatures.g.cs +++ b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_spreadsheetml_2018_calcfeatures.g.cs @@ -27,7 +27,7 @@ namespace DocumentFormat.OpenXml.Office2019.Excel.CalcFeatures /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(99, "calcFeatures")] + [SchemaAttr(101, "calcFeatures")] #pragma warning restore CS0618 // Type or member is obsolete public partial class CalcFeatures : OpenXmlCompositeElement { @@ -65,7 +65,7 @@ public CalcFeatures(string outerXml) : base(outerXml) internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(99, "calcFeatures"); + builder.SetSchema(101, "calcFeatures"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) @@ -84,7 +84,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// When the object is serialized out as xml, it's qualified name is xcalcf:feature. /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(99, "feature")] + [SchemaAttr(101, "feature")] #pragma warning restore CS0618 // Type or member is obsolete public partial class CalcFeature : OpenXmlLeafElement { @@ -114,7 +114,7 @@ public StringValue? Name internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(99, "feature"); + builder.SetSchema(101, "feature"); builder.Availability = FileFormatVersions.Office2019; builder.AddElement() .AddAttribute(0, "name", a => a.Name, aBuilder => diff --git a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_spreadsheetml_2018_threadedcomments.g.cs b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_spreadsheetml_2018_threadedcomments.g.cs new file mode 100644 index 000000000..6bcc43c78 --- /dev/null +++ b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_spreadsheetml_2018_threadedcomments.g.cs @@ -0,0 +1,807 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +#nullable enable + +using DocumentFormat.OpenXml; +using DocumentFormat.OpenXml.Framework; +using DocumentFormat.OpenXml.Framework.Metadata; +using DocumentFormat.OpenXml.Packaging; +using DocumentFormat.OpenXml.Spreadsheet; +using DocumentFormat.OpenXml.Validation.Schema; +using System; +using System.Collections.Generic; +using System.IO.Packaging; + +namespace DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments +{ + /// + /// Defines the PersonList Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is xltc:personList. + /// + /// + /// The following table lists the possible child types: + /// + /// Person <xltc:person> + /// ExtensionList <xltc:extLst> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(102, "personList")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class PersonList : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the PersonList class. + /// + public PersonList() : base() + { + } + + /// + /// Initializes a new instance of the PersonList class with the specified child elements. + /// + /// Specifies the child elements. + public PersonList(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the PersonList class with the specified child elements. + /// + /// Specifies the child elements. + public PersonList(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the PersonList class from outer XML. + /// + /// Specifies the outer XML of the element. + public PersonList(string outerXml) : base(outerXml) + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(102, "personList"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.AddChild(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.Person), 0, 0, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.ExtensionList), 0, 1, version: FileFormatVersions.Office2019) + }; + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the ThreadedComments Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is xltc:ThreadedComments. + /// + /// + /// The following table lists the possible child types: + /// + /// ThreadedComment <xltc:threadedComment> + /// ExtensionList <xltc:extLst> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(102, "ThreadedComments")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class ThreadedComments : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the ThreadedComments class. + /// + public ThreadedComments() : base() + { + } + + /// + /// Initializes a new instance of the ThreadedComments class with the specified child elements. + /// + /// Specifies the child elements. + public ThreadedComments(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the ThreadedComments class with the specified child elements. + /// + /// Specifies the child elements. + public ThreadedComments(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the ThreadedComments class from outer XML. + /// + /// Specifies the outer XML of the element. + public ThreadedComments(string outerXml) : base(outerXml) + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(102, "ThreadedComments"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.AddChild(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.ThreadedComment), 0, 0, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.ExtensionList), 0, 1, version: FileFormatVersions.Office2019) + }; + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the Person Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is xltc:person. + /// + /// + /// The following table lists the possible child types: + /// + /// ExtensionList <xltc:extLst> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(102, "person")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class Person : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the Person class. + /// + public Person() : base() + { + } + + /// + /// Initializes a new instance of the Person class with the specified child elements. + /// + /// Specifies the child elements. + public Person(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the Person class with the specified child elements. + /// + /// Specifies the child elements. + public Person(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the Person class from outer XML. + /// + /// Specifies the outer XML of the element. + public Person(string outerXml) : base(outerXml) + { + } + + /// + /// displayName, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: displayName + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "displayName")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? DisplayName + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// id, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: id + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "id")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Id + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// userId, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: userId + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "userId")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? UserId + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// providerId, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: providerId + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "providerId")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? ProviderId + { + get => GetAttribute(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(102, "person"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.AddElement() +.AddAttribute(0, "displayName", a => a.DisplayName, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +}) +.AddAttribute(0, "id", a => a.Id, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true), Pattern = ("\\{[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}\\}") }); +}) +.AddAttribute(0, "userId", a => a.UserId) +.AddAttribute(0, "providerId", a => a.ProviderId); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.ExtensionList), 0, 1, version: FileFormatVersions.Office2019) + }; + } + + /// + /// ExtensionList. + /// Represents the following element tag in the schema: xltc:extLst. + /// + /// + /// xmlns:xltc = http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments + /// + public ExtensionList? ExtensionList + { + get => GetElement(); + set => SetElement(value); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the ExtensionList Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is xltc:extLst. + /// + /// + /// The following table lists the possible child types: + /// + /// DocumentFormat.OpenXml.Spreadsheet.Extension <x:ext> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(102, "extLst")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class ExtensionList : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the ExtensionList class. + /// + public ExtensionList() : base() + { + } + + /// + /// Initializes a new instance of the ExtensionList class with the specified child elements. + /// + /// Specifies the child elements. + public ExtensionList(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the ExtensionList class with the specified child elements. + /// + /// Specifies the child elements. + public ExtensionList(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the ExtensionList class from outer XML. + /// + /// Specifies the outer XML of the element. + public ExtensionList(string outerXml) : base(outerXml) + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(102, "extLst"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Group, 0, 1) + { + new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Spreadsheet.Extension), 0, 0) + } + } + }; + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the ThreadedComment Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is xltc:threadedComment. + /// + /// + /// The following table lists the possible child types: + /// + /// ThreadedCommentText <xltc:text> + /// ThreadedCommentMentions <xltc:mentions> + /// ExtensionList <xltc:extLst> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(102, "threadedComment")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class ThreadedComment : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the ThreadedComment class. + /// + public ThreadedComment() : base() + { + } + + /// + /// Initializes a new instance of the ThreadedComment class with the specified child elements. + /// + /// Specifies the child elements. + public ThreadedComment(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the ThreadedComment class with the specified child elements. + /// + /// Specifies the child elements. + public ThreadedComment(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the ThreadedComment class from outer XML. + /// + /// Specifies the outer XML of the element. + public ThreadedComment(string outerXml) : base(outerXml) + { + } + + /// + /// ref, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: ref + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "ref")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Ref + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// dT, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: dT + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "dT")] +#pragma warning restore CS0618 // Type or member is obsolete + + public DateTimeValue? DT + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// personId, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: personId + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "personId")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? PersonId + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// id, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: id + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "id")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Id + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// parentId, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: parentId + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "parentId")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? ParentId + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// done, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: done + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "done")] +#pragma warning restore CS0618 // Type or member is obsolete + + public BooleanValue? Done + { + get => GetAttribute(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(102, "threadedComment"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddElement() +.AddAttribute(0, "ref", a => a.Ref) +.AddAttribute(0, "dT", a => a.DT) +.AddAttribute(0, "personId", a => a.PersonId, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true), Pattern = ("\\{[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}\\}") }); +}) +.AddAttribute(0, "id", a => a.Id, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true), Pattern = ("\\{[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}\\}") }); +}) +.AddAttribute(0, "parentId", a => a.ParentId, aBuilder => +{ +aBuilder.AddValidator(new StringValidator() { IsToken = (true), Pattern = ("\\{[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}\\}") }); +}) +.AddAttribute(0, "done", a => a.Done); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.ThreadedCommentText), 0, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.ThreadedCommentMentions), 0, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.ExtensionList), 0, 1, version: FileFormatVersions.Office2019) + }; + } + + /// + /// ThreadedCommentText. + /// Represents the following element tag in the schema: xltc:text. + /// + /// + /// xmlns:xltc = http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments + /// + public ThreadedCommentText? ThreadedCommentText + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// ThreadedCommentMentions. + /// Represents the following element tag in the schema: xltc:mentions. + /// + /// + /// xmlns:xltc = http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments + /// + public ThreadedCommentMentions? ThreadedCommentMentions + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// ExtensionList. + /// Represents the following element tag in the schema: xltc:extLst. + /// + /// + /// xmlns:xltc = http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments + /// + public ExtensionList? ExtensionList + { + get => GetElement(); + set => SetElement(value); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the ThreadedCommentText Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is xltc:text. + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(102, "text")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class ThreadedCommentText : OpenXmlLeafTextElement + { + /// + /// Initializes a new instance of the ThreadedCommentText class. + /// + public ThreadedCommentText() : base() + { + } + + /// + /// Initializes a new instance of the ThreadedCommentText class with the specified text content. + /// + /// Specifies the text content of the element. + public ThreadedCommentText(string text) : base(text) + { + } + + internal override OpenXmlSimpleType InnerTextToValue(string text) + { + return new StringValue { InnerText = text }; + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(102, "text"); + builder.Availability = FileFormatVersions.Office2019; + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the ThreadedCommentMentions Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is xltc:mentions. + /// + /// + /// The following table lists the possible child types: + /// + /// Mention <xltc:mention> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(102, "mentions")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class ThreadedCommentMentions : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the ThreadedCommentMentions class. + /// + public ThreadedCommentMentions() : base() + { + } + + /// + /// Initializes a new instance of the ThreadedCommentMentions class with the specified child elements. + /// + /// Specifies the child elements. + public ThreadedCommentMentions(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the ThreadedCommentMentions class with the specified child elements. + /// + /// Specifies the child elements. + public ThreadedCommentMentions(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the ThreadedCommentMentions class from outer XML. + /// + /// Specifies the outer XML of the element. + public ThreadedCommentMentions(string outerXml) : base(outerXml) + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(102, "mentions"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.Mention), 0, 0, version: FileFormatVersions.Office2019) + }; + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the Mention Class. + /// This class is available in Office 2019 and above. + /// When the object is serialized out as xml, it's qualified name is xltc:mention. + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(102, "mention")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class Mention : OpenXmlLeafElement + { + /// + /// Initializes a new instance of the Mention class. + /// + public Mention() : base() + { + } + + /// + /// mentionpersonId, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: mentionpersonId + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "mentionpersonId")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? MentionpersonId + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// mentionId, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: mentionId + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "mentionId")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? MentionId + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// startIndex, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: startIndex + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "startIndex")] +#pragma warning restore CS0618 // Type or member is obsolete + + public UInt32Value? StartIndex + { + get => GetAttribute(); + set => SetAttribute(value); + } + + /// + /// length, this property is only available in Office 2019 and later. + /// Represents the following attribute in the schema: length + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "length")] +#pragma warning restore CS0618 // Type or member is obsolete + + public UInt32Value? Length + { + get => GetAttribute(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(102, "mention"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddElement() +.AddAttribute(0, "mentionpersonId", a => a.MentionpersonId, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true), Pattern = ("\\{[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}\\}") }); +}) +.AddAttribute(0, "mentionId", a => a.MentionId, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true), Pattern = ("\\{[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}\\}") }); +}) +.AddAttribute(0, "startIndex", a => a.StartIndex, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +}) +.AddAttribute(0, "length", a => a.Length, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +}); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } +} \ No newline at end of file diff --git a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_word_2016_wordml_cid.g.cs b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_word_2016_wordml_cid.g.cs index f31a3ec8b..6decbcfe6 100644 --- a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_word_2016_wordml_cid.g.cs +++ b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_word_2016_wordml_cid.g.cs @@ -27,7 +27,7 @@ namespace DocumentFormat.OpenXml.Office2019.Word.Cid /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(107, "commentsIds")] + [SchemaAttr(114, "commentsIds")] #pragma warning restore CS0618 // Type or member is obsolete public partial class CommentsIds : OpenXmlCompositeElement { @@ -65,7 +65,7 @@ public CommentsIds(string outerXml) : base(outerXml) internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(107, "commentsIds"); + builder.SetSchema(114, "commentsIds"); builder.Availability = FileFormatVersions.Office2019; builder.AddChild(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) @@ -84,7 +84,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// When the object is serialized out as xml, it's qualified name is w16cid:commentId. /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(107, "commentId")] + [SchemaAttr(114, "commentId")] #pragma warning restore CS0618 // Type or member is obsolete public partial class CommentId : OpenXmlLeafElement { @@ -105,7 +105,7 @@ public CommentId() : base() #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(107, "paraId")] + [SchemaAttr(114, "paraId")] #pragma warning restore CS0618 // Type or member is obsolete public HexBinaryValue? ParaId @@ -124,7 +124,7 @@ public HexBinaryValue? ParaId #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(107, "durableId")] + [SchemaAttr(114, "durableId")] #pragma warning restore CS0618 // Type or member is obsolete public HexBinaryValue? DurableId @@ -136,16 +136,16 @@ public HexBinaryValue? DurableId internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(107, "commentId"); + builder.SetSchema(114, "commentId"); builder.Availability = FileFormatVersions.Office2019; builder.AddElement() -.AddAttribute(107, "paraId", a => a.ParaId, aBuilder => +.AddAttribute(114, "paraId", a => a.ParaId, aBuilder => { aBuilder.AddValidator(RequiredValidator.Instance); aBuilder.AddValidator(new OfficeVersionValidator(FileFormatVersions.Office2019)); aBuilder.AddValidator(new StringValidator() { Length = (4L) }); }) -.AddAttribute(107, "durableId", a => a.DurableId, aBuilder => +.AddAttribute(114, "durableId", a => a.DurableId, aBuilder => { aBuilder.AddValidator(RequiredValidator.Instance); aBuilder.AddValidator(new OfficeVersionValidator(FileFormatVersions.Office2019)); diff --git a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_openxmlformats_org_drawingml_2006_chart.g.cs b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_openxmlformats_org_drawingml_2006_chart.g.cs index 573b82b68..a2f568270 100644 --- a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_openxmlformats_org_drawingml_2006_chart.g.cs +++ b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_openxmlformats_org_drawingml_2006_chart.g.cs @@ -10,6 +10,7 @@ using DocumentFormat.OpenXml.Framework.Metadata; using DocumentFormat.OpenXml.Office2010.Drawing.Charts; using DocumentFormat.OpenXml.Office2013.Drawing.Chart; +using DocumentFormat.OpenXml.Office2019.Drawing.Chart; using DocumentFormat.OpenXml.Packaging; using DocumentFormat.OpenXml.Validation.Schema; using DocumentFormat.OpenXml.Validation.Semantic; @@ -1141,87 +1142,6 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); } - /// - /// Auto Title Is Deleted. - /// This class is available in Office 2007 and above. - /// When the object is serialized out as xml, it's qualified name is c:autoTitleDeleted. - /// -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "autoTitleDeleted")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class AutoTitleDeleted : BooleanType - { - /// - /// Initializes a new instance of the AutoTitleDeleted class. - /// - public AutoTitleDeleted() : base() - { - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "autoTitleDeleted"); - } - - /// - public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); - } - - /// - /// Plot Visible Only. - /// This class is available in Office 2007 and above. - /// When the object is serialized out as xml, it's qualified name is c:plotVisOnly. - /// -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "plotVisOnly")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class PlotVisibleOnly : BooleanType - { - /// - /// Initializes a new instance of the PlotVisibleOnly class. - /// - public PlotVisibleOnly() : base() - { - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "plotVisOnly"); - } - - /// - public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); - } - - /// - /// Show Data Labels over Maximum. - /// This class is available in Office 2007 and above. - /// When the object is serialized out as xml, it's qualified name is c:showDLblsOverMax. - /// -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "showDLblsOverMax")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class ShowDataLabelsOverMaximum : BooleanType - { - /// - /// Initializes a new instance of the ShowDataLabelsOverMaximum class. - /// - public ShowDataLabelsOverMaximum() : base() - { - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "showDLblsOverMax"); - } - - /// - public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); - } - /// /// Chart Object. /// This class is available in Office 2007 and above. @@ -1573,6 +1493,87 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); } + /// + /// True if the chart automatic title has been deleted.. + /// This class is available in Office 2007 and above. + /// When the object is serialized out as xml, it's qualified name is c:autoTitleDeleted. + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "autoTitleDeleted")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class AutoTitleDeleted : BooleanType + { + /// + /// Initializes a new instance of the AutoTitleDeleted class. + /// + public AutoTitleDeleted() : base() + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(11, "autoTitleDeleted"); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// True if only visible cells are plotted.. + /// This class is available in Office 2007 and above. + /// When the object is serialized out as xml, it's qualified name is c:plotVisOnly. + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "plotVisOnly")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class PlotVisibleOnly : BooleanType + { + /// + /// Initializes a new instance of the PlotVisibleOnly class. + /// + public PlotVisibleOnly() : base() + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(11, "plotVisOnly"); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// True if we should render datalabels over the maximum scale. + /// This class is available in Office 2007 and above. + /// When the object is serialized out as xml, it's qualified name is c:showDLblsOverMax. + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "showDLblsOverMax")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class ShowDataLabelsOverMaximum : BooleanType + { + /// + /// Initializes a new instance of the ShowDataLabelsOverMaximum class. + /// + public ShowDataLabelsOverMaximum() : base() + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(11, "showDLblsOverMax"); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + /// /// Defines the BooleanType Class. /// This class is available in Office 2007 and above. @@ -9778,1763 +9779,2439 @@ public Index? Index } /// - /// Pivot Formats. + /// Header and Footer. /// This class is available in Office 2007 and above. - /// When the object is serialized out as xml, it's qualified name is c:pivotFmts. + /// When the object is serialized out as xml, it's qualified name is c:headerFooter. /// /// /// The following table lists the possible child types: /// - /// PivotFormat <c:pivotFmt> + /// OddHeader <c:oddHeader> + /// OddFooter <c:oddFooter> + /// EvenHeader <c:evenHeader> + /// EvenFooter <c:evenFooter> + /// FirstHeader <c:firstHeader> + /// FirstFooter <c:firstFooter> /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "pivotFmts")] + [SchemaAttr(11, "headerFooter")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class PivotFormats : OpenXmlCompositeElement + public partial class HeaderFooter : OpenXmlCompositeElement { /// - /// Initializes a new instance of the PivotFormats class. + /// Initializes a new instance of the HeaderFooter class. /// - public PivotFormats() : base() + public HeaderFooter() : base() { } /// - /// Initializes a new instance of the PivotFormats class with the specified child elements. + /// Initializes a new instance of the HeaderFooter class with the specified child elements. /// /// Specifies the child elements. - public PivotFormats(IEnumerable childElements) : base(childElements) + public HeaderFooter(IEnumerable childElements) : base(childElements) { } /// - /// Initializes a new instance of the PivotFormats class with the specified child elements. + /// Initializes a new instance of the HeaderFooter class with the specified child elements. /// /// Specifies the child elements. - public PivotFormats(params OpenXmlElement[] childElements) : base(childElements) + public HeaderFooter(params OpenXmlElement[] childElements) : base(childElements) { } /// - /// Initializes a new instance of the PivotFormats class from outer XML. + /// Initializes a new instance of the HeaderFooter class from outer XML. /// /// Specifies the outer XML of the element. - public PivotFormats(string outerXml) : base(outerXml) - { - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + public HeaderFooter(string outerXml) : base(outerXml) { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "pivotFmts"); - builder.AddChild(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PivotFormat), 0, 0) - }; } - /// - public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); - } + /// + /// Align With Margins + /// Represents the following attribute in the schema: alignWithMargins + /// - /// - /// View In 3D. - /// This class is available in Office 2007 and above. - /// When the object is serialized out as xml, it's qualified name is c:view3D. - /// - /// - /// The following table lists the possible child types: - /// - /// RotateX <c:rotX> - /// HeightPercent <c:hPercent> - /// RotateY <c:rotY> - /// DepthPercent <c:depthPercent> - /// RightAngleAxes <c:rAngAx> - /// Perspective <c:perspective> - /// ExtensionList <c:extLst> - /// - /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "view3D")] + + [SchemaAttr(0, "alignWithMargins")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class View3D : OpenXmlCompositeElement - { - /// - /// Initializes a new instance of the View3D class. - /// - public View3D() : base() - { - } - /// - /// Initializes a new instance of the View3D class with the specified child elements. - /// - /// Specifies the child elements. - public View3D(IEnumerable childElements) : base(childElements) + public BooleanValue? AlignWithMargins { + get => GetAttribute(); + set => SetAttribute(value); } /// - /// Initializes a new instance of the View3D class with the specified child elements. + /// Different Odd Even + /// Represents the following attribute in the schema: differentOddEven /// - /// Specifies the child elements. - public View3D(params OpenXmlElement[] childElements) : base(childElements) + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "differentOddEven")] +#pragma warning restore CS0618 // Type or member is obsolete + + public BooleanValue? DifferentOddEven { + get => GetAttribute(); + set => SetAttribute(value); } /// - /// Initializes a new instance of the View3D class from outer XML. + /// Different First + /// Represents the following attribute in the schema: differentFirst /// - /// Specifies the outer XML of the element. - public View3D(string outerXml) : base(outerXml) + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "differentFirst")] +#pragma warning restore CS0618 // Type or member is obsolete + + public BooleanValue? DifferentFirst { + get => GetAttribute(); + set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "view3D"); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); + builder.SetSchema(11, "headerFooter"); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddElement() +.AddAttribute(0, "alignWithMargins", a => a.AlignWithMargins) +.AddAttribute(0, "differentOddEven", a => a.DifferentOddEven) +.AddAttribute(0, "differentFirst", a => a.DifferentFirst); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.RotateX), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.HeightPercent), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.RotateY), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DepthPercent), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.RightAngleAxes), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Perspective), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.OddHeader), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.OddFooter), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.EvenHeader), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.EvenFooter), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.FirstHeader), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.FirstFooter), 0, 1) }; } /// - /// X Rotation. - /// Represents the following element tag in the schema: c:rotX. - /// - /// - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// - public RotateX? RotateX - { - get => GetElement(); - set => SetElement(value); - } - - /// - /// Height Percent. - /// Represents the following element tag in the schema: c:hPercent. + /// Odd Header. + /// Represents the following element tag in the schema: c:oddHeader. /// /// /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// - public HeightPercent? HeightPercent + public OddHeader? OddHeader { - get => GetElement(); + get => GetElement(); set => SetElement(value); } /// - /// Y Rotation. - /// Represents the following element tag in the schema: c:rotY. + /// Odd Footer. + /// Represents the following element tag in the schema: c:oddFooter. /// /// /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// - public RotateY? RotateY + public OddFooter? OddFooter { - get => GetElement(); + get => GetElement(); set => SetElement(value); } /// - /// Depth Percent. - /// Represents the following element tag in the schema: c:depthPercent. + /// Even Header. + /// Represents the following element tag in the schema: c:evenHeader. /// /// /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// - public DepthPercent? DepthPercent + public EvenHeader? EvenHeader { - get => GetElement(); + get => GetElement(); set => SetElement(value); } /// - /// Right Angle Axes. - /// Represents the following element tag in the schema: c:rAngAx. + /// Even Footer. + /// Represents the following element tag in the schema: c:evenFooter. /// /// /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// - public RightAngleAxes? RightAngleAxes + public EvenFooter? EvenFooter { - get => GetElement(); + get => GetElement(); set => SetElement(value); } /// - /// Perspective. - /// Represents the following element tag in the schema: c:perspective. + /// First Header. + /// Represents the following element tag in the schema: c:firstHeader. /// /// /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// - public Perspective? Perspective + public FirstHeader? FirstHeader { - get => GetElement(); + get => GetElement(); set => SetElement(value); } /// - /// Chart Extensibility. - /// Represents the following element tag in the schema: c:extLst. + /// First Footer. + /// Represents the following element tag in the schema: c:firstFooter. /// /// /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// - public ExtensionList? ExtensionList + public FirstFooter? FirstFooter { - get => GetElement(); + get => GetElement(); set => SetElement(value); } /// - public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); } /// - /// Floor. + /// Page Margins. /// This class is available in Office 2007 and above. - /// When the object is serialized out as xml, it's qualified name is c:floor. + /// When the object is serialized out as xml, it's qualified name is c:pageMargins. /// - /// - /// The following table lists the possible child types: - /// - /// Thickness <c:thickness> - /// ShapeProperties <c:spPr> - /// PictureOptions <c:pictureOptions> - /// ExtensionList <c:extLst> - /// - /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "floor")] + [SchemaAttr(11, "pageMargins")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class Floor : SurfaceType + public partial class PageMargins : OpenXmlLeafElement { /// - /// Initializes a new instance of the Floor class. + /// Initializes a new instance of the PageMargins class. /// - public Floor() : base() + public PageMargins() : base() { } /// - /// Initializes a new instance of the Floor class with the specified child elements. + /// Left + /// Represents the following attribute in the schema: l /// - /// Specifies the child elements. - public Floor(IEnumerable childElements) : base(childElements) - { - } - /// - /// Initializes a new instance of the Floor class with the specified child elements. - /// - /// Specifies the child elements. - public Floor(params OpenXmlElement[] childElements) : base(childElements) +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "l")] +#pragma warning restore CS0618 // Type or member is obsolete + + public DoubleValue? Left { + get => GetAttribute(); + set => SetAttribute(value); } /// - /// Initializes a new instance of the Floor class from outer XML. + /// Right + /// Represents the following attribute in the schema: r /// - /// Specifies the outer XML of the element. - public Floor(string outerXml) : base(outerXml) - { - } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "r")] +#pragma warning restore CS0618 // Type or member is obsolete + + public DoubleValue? Right { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "floor"); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Thickness), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShapeProperties), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PictureOptions), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) - }; + get => GetAttribute(); + set => SetAttribute(value); } - /// - public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); - } + /// + /// Top + /// Represents the following attribute in the schema: t + /// - /// - /// Side Wall. - /// This class is available in Office 2007 and above. - /// When the object is serialized out as xml, it's qualified name is c:sideWall. - /// - /// - /// The following table lists the possible child types: - /// - /// Thickness <c:thickness> - /// ShapeProperties <c:spPr> - /// PictureOptions <c:pictureOptions> - /// ExtensionList <c:extLst> - /// - /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "sideWall")] + + [SchemaAttr(0, "t")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class SideWall : SurfaceType - { - /// - /// Initializes a new instance of the SideWall class. - /// - public SideWall() : base() + + public DoubleValue? Top { + get => GetAttribute(); + set => SetAttribute(value); } /// - /// Initializes a new instance of the SideWall class with the specified child elements. + /// Bottom + /// Represents the following attribute in the schema: b /// - /// Specifies the child elements. - public SideWall(IEnumerable childElements) : base(childElements) + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "b")] +#pragma warning restore CS0618 // Type or member is obsolete + + public DoubleValue? Bottom { + get => GetAttribute(); + set => SetAttribute(value); } /// - /// Initializes a new instance of the SideWall class with the specified child elements. + /// Header + /// Represents the following attribute in the schema: header /// - /// Specifies the child elements. - public SideWall(params OpenXmlElement[] childElements) : base(childElements) + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "header")] +#pragma warning restore CS0618 // Type or member is obsolete + + public DoubleValue? Header { + get => GetAttribute(); + set => SetAttribute(value); } /// - /// Initializes a new instance of the SideWall class from outer XML. + /// Footer + /// Represents the following attribute in the schema: footer /// - /// Specifies the outer XML of the element. - public SideWall(string outerXml) : base(outerXml) + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "footer")] +#pragma warning restore CS0618 // Type or member is obsolete + + public DoubleValue? Footer { + get => GetAttribute(); + set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "sideWall"); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Thickness), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShapeProperties), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PictureOptions), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) - }; - } - + builder.SetSchema(11, "pageMargins"); + builder.AddElement() +.AddAttribute(0, "l", a => a.Left, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +}) +.AddAttribute(0, "r", a => a.Right, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +}) +.AddAttribute(0, "t", a => a.Top, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +}) +.AddAttribute(0, "b", a => a.Bottom, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +}) +.AddAttribute(0, "header", a => a.Header, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +}) +.AddAttribute(0, "footer", a => a.Footer, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +}); + builder.AddConstraint(new AttributeValueRangeConstraint(3 /*:b*/, true, 0, true, 49, false)); + builder.AddConstraint(new AttributeValueRangeConstraint(5 /*:footer*/, true, 0, true, 49, false)); + builder.AddConstraint(new AttributeValueRangeConstraint(4 /*:header*/, true, 0, true, 49, false)); + builder.AddConstraint(new AttributeValueRangeConstraint(0 /*:l*/, true, 0, true, 49, false)); + builder.AddConstraint(new AttributeValueRangeConstraint(1 /*:r*/, true, 0, true, 49, false)); + builder.AddConstraint(new AttributeValueRangeConstraint(2 /*:t*/, true, 0, true, 49, false)); + } + /// - public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); } /// - /// Back Wall. + /// Page Setup. /// This class is available in Office 2007 and above. - /// When the object is serialized out as xml, it's qualified name is c:backWall. + /// When the object is serialized out as xml, it's qualified name is c:pageSetup. /// - /// - /// The following table lists the possible child types: - /// - /// Thickness <c:thickness> - /// ShapeProperties <c:spPr> - /// PictureOptions <c:pictureOptions> - /// ExtensionList <c:extLst> - /// - /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "backWall")] + [SchemaAttr(11, "pageSetup")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class BackWall : SurfaceType + public partial class PageSetup : OpenXmlLeafElement { /// - /// Initializes a new instance of the BackWall class. + /// Initializes a new instance of the PageSetup class. /// - public BackWall() : base() + public PageSetup() : base() { } /// - /// Initializes a new instance of the BackWall class with the specified child elements. + /// Page Size + /// Represents the following attribute in the schema: paperSize /// - /// Specifies the child elements. - public BackWall(IEnumerable childElements) : base(childElements) - { - } - /// - /// Initializes a new instance of the BackWall class with the specified child elements. - /// - /// Specifies the child elements. - public BackWall(params OpenXmlElement[] childElements) : base(childElements) +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "paperSize")] +#pragma warning restore CS0618 // Type or member is obsolete + + public UInt32Value? PaperSize { + get => GetAttribute(); + set => SetAttribute(value); } /// - /// Initializes a new instance of the BackWall class from outer XML. + /// First Page Number + /// Represents the following attribute in the schema: firstPageNumber /// - /// Specifies the outer XML of the element. - public BackWall(string outerXml) : base(outerXml) - { - } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "backWall"); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Thickness), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShapeProperties), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PictureOptions), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) - }; - } +#pragma warning disable CS0618 // Type or member is obsolete - /// - public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); - } + [SchemaAttr(0, "firstPageNumber")] +#pragma warning restore CS0618 // Type or member is obsolete - /// - /// Defines the SurfaceType Class. - /// This class is available in Office 2007 and above. - /// When the object is serialized out as xml, it's qualified name is :. - /// - /// - /// The following table lists the possible child types: - /// - /// Thickness <c:thickness> - /// ShapeProperties <c:spPr> - /// PictureOptions <c:pictureOptions> - /// ExtensionList <c:extLst> - /// - /// - public abstract partial class SurfaceType : OpenXmlCompositeElement - { - /// - /// Initializes a new instance of the SurfaceType class. - /// - protected SurfaceType() : base() + public Int32Value? FirstPageNumber { + get => GetAttribute(); + set => SetAttribute(value); } /// - /// Initializes a new instance of the SurfaceType class with the specified child elements. + /// Orientation + /// Represents the following attribute in the schema: orientation /// - /// Specifies the child elements. - protected SurfaceType(IEnumerable childElements) : base(childElements) + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "orientation")] +#pragma warning restore CS0618 // Type or member is obsolete + + public EnumValue? Orientation { + get => GetAttribute>(); + set => SetAttribute(value); } /// - /// Initializes a new instance of the SurfaceType class with the specified child elements. + /// Black and White + /// Represents the following attribute in the schema: blackAndWhite /// - /// Specifies the child elements. - protected SurfaceType(params OpenXmlElement[] childElements) : base(childElements) + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "blackAndWhite")] +#pragma warning restore CS0618 // Type or member is obsolete + + public BooleanValue? BlackAndWhite { + get => GetAttribute(); + set => SetAttribute(value); } /// - /// Initializes a new instance of the SurfaceType class from outer XML. + /// Draft + /// Represents the following attribute in the schema: draft /// - /// Specifies the outer XML of the element. - protected SurfaceType(string outerXml) : base(outerXml) - { - } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "draft")] +#pragma warning restore CS0618 // Type or member is obsolete + + public BooleanValue? Draft { - base.ConfigureMetadata(builder); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); + get => GetAttribute(); + set => SetAttribute(value); } /// - /// Thickness. - /// Represents the following element tag in the schema: c:thickness. + /// Use First Page Number + /// Represents the following attribute in the schema: useFirstPageNumber /// - /// - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// - public Thickness? Thickness + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "useFirstPageNumber")] +#pragma warning restore CS0618 // Type or member is obsolete + + public BooleanValue? UseFirstPageNumber { - get => GetElement(); - set => SetElement(value); + get => GetAttribute(); + set => SetAttribute(value); } /// - /// ShapeProperties. - /// Represents the following element tag in the schema: c:spPr. + /// Horizontal DPI + /// Represents the following attribute in the schema: horizontalDpi /// - /// - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// - public ShapeProperties? ShapeProperties + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "horizontalDpi")] +#pragma warning restore CS0618 // Type or member is obsolete + + public Int32Value? HorizontalDpi { - get => GetElement(); - set => SetElement(value); + get => GetAttribute(); + set => SetAttribute(value); } /// - /// Picture Options. - /// Represents the following element tag in the schema: c:pictureOptions. + /// Vertical DPI + /// Represents the following attribute in the schema: verticalDpi /// - /// - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// - public PictureOptions? PictureOptions + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "verticalDpi")] +#pragma warning restore CS0618 // Type or member is obsolete + + public Int32Value? VerticalDpi { - get => GetElement(); - set => SetElement(value); + get => GetAttribute(); + set => SetAttribute(value); } /// - /// Chart Extensibility. - /// Represents the following element tag in the schema: c:extLst. + /// Copies + /// Represents the following attribute in the schema: copies /// - /// - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// - public ExtensionList? ExtensionList + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "copies")] +#pragma warning restore CS0618 // Type or member is obsolete + + public UInt32Value? Copies { - get => GetElement(); - set => SetElement(value); + get => GetAttribute(); + set => SetAttribute(value); } - } - /// - /// Plot Area. - /// This class is available in Office 2007 and above. - /// When the object is serialized out as xml, it's qualified name is c:plotArea. - /// - /// - /// The following table lists the possible child types: + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(11, "pageSetup"); + builder.AddElement() +.AddAttribute(0, "paperSize", a => a.PaperSize) +.AddAttribute(0, "firstPageNumber", a => a.FirstPageNumber) +.AddAttribute(0, "orientation", a => a.Orientation) +.AddAttribute(0, "blackAndWhite", a => a.BlackAndWhite) +.AddAttribute(0, "draft", a => a.Draft) +.AddAttribute(0, "useFirstPageNumber", a => a.UseFirstPageNumber) +.AddAttribute(0, "horizontalDpi", a => a.HorizontalDpi) +.AddAttribute(0, "verticalDpi", a => a.VerticalDpi) +.AddAttribute(0, "copies", a => a.Copies); + builder.AddConstraint(new AttributeValueRangeConstraint(8 /*:copies*/, true, double.NegativeInfinity, true, 2147483647, true)); + builder.AddConstraint(new AttributeValueRangeConstraint(0 /*:paperSize*/, true, double.NegativeInfinity, true, 2147483647, true) { Application = ApplicationType.Excel }); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Defines the ShapeProperties Class. + /// This class is available in Office 2007 and above. + /// When the object is serialized out as xml, it's qualified name is c:spPr. + /// + /// + /// The following table lists the possible child types: /// - /// Layout <c:layout> - /// AreaChart <c:areaChart> - /// Area3DChart <c:area3DChart> - /// LineChart <c:lineChart> - /// Line3DChart <c:line3DChart> - /// StockChart <c:stockChart> - /// RadarChart <c:radarChart> - /// ScatterChart <c:scatterChart> - /// PieChart <c:pieChart> - /// Pie3DChart <c:pie3DChart> - /// DoughnutChart <c:doughnutChart> - /// BarChart <c:barChart> - /// Bar3DChart <c:bar3DChart> - /// OfPieChart <c:ofPieChart> - /// SurfaceChart <c:surfaceChart> - /// Surface3DChart <c:surface3DChart> - /// BubbleChart <c:bubbleChart> - /// ValueAxis <c:valAx> - /// CategoryAxis <c:catAx> - /// DateAxis <c:dateAx> - /// SeriesAxis <c:serAx> - /// DataTable <c:dTable> - /// ShapeProperties <c:spPr> - /// ExtensionList <c:extLst> + /// DocumentFormat.OpenXml.Drawing.Transform2D <a:xfrm> + /// DocumentFormat.OpenXml.Drawing.CustomGeometry <a:custGeom> + /// DocumentFormat.OpenXml.Drawing.PresetGeometry <a:prstGeom> + /// DocumentFormat.OpenXml.Drawing.NoFill <a:noFill> + /// DocumentFormat.OpenXml.Drawing.SolidFill <a:solidFill> + /// DocumentFormat.OpenXml.Drawing.GradientFill <a:gradFill> + /// DocumentFormat.OpenXml.Drawing.BlipFill <a:blipFill> + /// DocumentFormat.OpenXml.Drawing.PatternFill <a:pattFill> + /// DocumentFormat.OpenXml.Drawing.GroupFill <a:grpFill> + /// DocumentFormat.OpenXml.Drawing.Outline <a:ln> + /// DocumentFormat.OpenXml.Drawing.EffectList <a:effectLst> + /// DocumentFormat.OpenXml.Drawing.EffectDag <a:effectDag> + /// DocumentFormat.OpenXml.Drawing.Scene3DType <a:scene3d> + /// DocumentFormat.OpenXml.Drawing.Shape3DType <a:sp3d> + /// DocumentFormat.OpenXml.Drawing.ShapePropertiesExtensionList <a:extLst> /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "plotArea")] + [SchemaAttr(11, "spPr")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class PlotArea : OpenXmlCompositeElement + public partial class ShapeProperties : OpenXmlCompositeElement { /// - /// Initializes a new instance of the PlotArea class. + /// Initializes a new instance of the ShapeProperties class. /// - public PlotArea() : base() + public ShapeProperties() : base() { } /// - /// Initializes a new instance of the PlotArea class with the specified child elements. + /// Initializes a new instance of the ShapeProperties class with the specified child elements. /// /// Specifies the child elements. - public PlotArea(IEnumerable childElements) : base(childElements) + public ShapeProperties(IEnumerable childElements) : base(childElements) { } /// - /// Initializes a new instance of the PlotArea class with the specified child elements. + /// Initializes a new instance of the ShapeProperties class with the specified child elements. /// /// Specifies the child elements. - public PlotArea(params OpenXmlElement[] childElements) : base(childElements) + public ShapeProperties(params OpenXmlElement[] childElements) : base(childElements) { } /// - /// Initializes a new instance of the PlotArea class from outer XML. + /// Initializes a new instance of the ShapeProperties class from outer XML. /// /// Specifies the outer XML of the element. - public PlotArea(string outerXml) : base(outerXml) + public ShapeProperties(string outerXml) : base(outerXml) + { + } + + /// + /// Black and White Mode + /// Represents the following attribute in the schema: bwMode + /// + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "bwMode")] +#pragma warning restore CS0618 // Type or member is obsolete + + public EnumValue? BlackWhiteMode { + get => GetAttribute>(); + set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "plotArea"); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); + builder.SetSchema(11, "spPr"); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddElement() +.AddAttribute(0, "bwMode", a => a.BlackWhiteMode, aBuilder => +{ +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Layout), 0, 1), - new CompositeParticle.Builder(ParticleType.Choice, 1, 0) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Transform2D), 0, 1), + new CompositeParticle.Builder(ParticleType.Group, 0, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AreaChart), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Area3DChart), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.LineChart), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Line3DChart), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.StockChart), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.RadarChart), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ScatterChart), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PieChart), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Pie3DChart), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DoughnutChart), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BarChart), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Bar3DChart), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.OfPieChart), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SurfaceChart), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Surface3DChart), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BubbleChart), 1, 1) + new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.CustomGeometry), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.PresetGeometry), 1, 1) + } }, - new CompositeParticle.Builder(ParticleType.Choice, 0, 4) + new CompositeParticle.Builder(ParticleType.Group, 0, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ValueAxis), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CategoryAxis), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DateAxis), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SeriesAxis), 1, 1) + new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.NoFill), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.SolidFill), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.GradientFill), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.BlipFill), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.PatternFill), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.GroupFill), 1, 1) + } }, - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataTable), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShapeProperties), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Outline), 0, 1), + new CompositeParticle.Builder(ParticleType.Group, 0, 1) + { + new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.EffectList), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.EffectDag), 1, 1) + } + }, + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Scene3DType), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Shape3DType), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.ShapePropertiesExtensionList), 0, 1) }; } /// - /// Layout. - /// Represents the following element tag in the schema: c:layout. + /// 2D Transform for Individual Objects. + /// Represents the following element tag in the schema: a:xfrm. /// /// - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main /// - public Layout? Layout + public DocumentFormat.OpenXml.Drawing.Transform2D? Transform2D { - get => GetElement(); + get => GetElement(); set => SetElement(value); } /// - public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); } /// - /// Legend. + /// Data Label. /// This class is available in Office 2007 and above. - /// When the object is serialized out as xml, it's qualified name is c:legend. + /// When the object is serialized out as xml, it's qualified name is c:dLbl. /// /// /// The following table lists the possible child types: /// - /// LegendPosition <c:legendPos> - /// LegendEntry <c:legendEntry> + /// Index <c:idx> + /// Delete <c:delete> /// Layout <c:layout> - /// Overlay <c:overlay> + /// ChartText <c:tx> + /// NumberingFormat <c:numFmt> /// ChartShapeProperties <c:spPr> /// TextProperties <c:txPr> - /// ExtensionList <c:extLst> + /// DataLabelPosition <c:dLblPos> + /// ShowLegendKey <c:showLegendKey> + /// ShowValue <c:showVal> + /// ShowCategoryName <c:showCatName> + /// ShowSeriesName <c:showSerName> + /// ShowPercent <c:showPercent> + /// ShowBubbleSize <c:showBubbleSize> + /// Separator <c:separator> + /// DLblExtensionList <c:extLst> /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "legend")] + [SchemaAttr(11, "dLbl")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class Legend : OpenXmlCompositeElement + public partial class DataLabel : OpenXmlCompositeElement { /// - /// Initializes a new instance of the Legend class. + /// Initializes a new instance of the DataLabel class. /// - public Legend() : base() + public DataLabel() : base() { } /// - /// Initializes a new instance of the Legend class with the specified child elements. + /// Initializes a new instance of the DataLabel class with the specified child elements. /// /// Specifies the child elements. - public Legend(IEnumerable childElements) : base(childElements) + public DataLabel(IEnumerable childElements) : base(childElements) { } /// - /// Initializes a new instance of the Legend class with the specified child elements. + /// Initializes a new instance of the DataLabel class with the specified child elements. /// /// Specifies the child elements. - public Legend(params OpenXmlElement[] childElements) : base(childElements) + public DataLabel(params OpenXmlElement[] childElements) : base(childElements) { } /// - /// Initializes a new instance of the Legend class from outer XML. + /// Initializes a new instance of the DataLabel class from outer XML. /// /// Specifies the outer XML of the element. - public Legend(string outerXml) : base(outerXml) + public DataLabel(string outerXml) : base(outerXml) { } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "legend"); - builder.AddChild(); - builder.AddChild(); + builder.SetSchema(11, "dLbl"); + builder.AddChild(); + builder.AddChild(); builder.AddChild(); - builder.AddChild(); + builder.AddChild(); + builder.AddChild(); builder.AddChild(); builder.AddChild(); - builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.LegendPosition), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.LegendEntry), 0, 0), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Layout), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Overlay), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartShapeProperties), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TextProperties), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Index), 1, 1), + new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Delete), 1, 1), + new CompositeParticle.Builder(ParticleType.Group, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Layout), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartText), 0, 1), + new CompositeParticle.Builder(ParticleType.Group, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.NumberingFormat), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartShapeProperties), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TextProperties), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabelPosition), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShowLegendKey), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShowValue), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShowCategoryName), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShowSeriesName), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShowPercent), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShowBubbleSize), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Separator), 0, 1) + } + } + } + } + }, + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DLblExtensionList), 0, 1) }; } /// - /// Legend Position. - /// Represents the following element tag in the schema: c:legendPos. + /// Index. + /// Represents the following element tag in the schema: c:idx. /// /// /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// - public LegendPosition? LegendPosition + public Index? Index { - get => GetElement(); + get => GetElement(); set => SetElement(value); } /// - public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); } /// - /// Display Blanks As. + /// Area Charts. /// This class is available in Office 2007 and above. - /// When the object is serialized out as xml, it's qualified name is c:dispBlanksAs. + /// When the object is serialized out as xml, it's qualified name is c:areaChart. /// + /// + /// The following table lists the possible child types: + /// + /// Grouping <c:grouping> + /// VaryColors <c:varyColors> + /// AreaChartSeries <c:ser> + /// DataLabels <c:dLbls> + /// DropLines <c:dropLines> + /// AxisId <c:axId> + /// AreaChartExtensionList <c:extLst> + /// + /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "dispBlanksAs")] + [SchemaAttr(11, "areaChart")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class DisplayBlanksAs : OpenXmlLeafElement + public partial class AreaChart : OpenXmlCompositeElement { /// - /// Initializes a new instance of the DisplayBlanksAs class. + /// Initializes a new instance of the AreaChart class. /// - public DisplayBlanksAs() : base() + public AreaChart() : base() { } /// - /// Display Blanks As Value - /// Represents the following attribute in the schema: val + /// Initializes a new instance of the AreaChart class with the specified child elements. /// + /// Specifies the child elements. + public AreaChart(IEnumerable childElements) : base(childElements) + { + } -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "val")] -#pragma warning restore CS0618 // Type or member is obsolete + /// + /// Initializes a new instance of the AreaChart class with the specified child elements. + /// + /// Specifies the child elements. + public AreaChart(params OpenXmlElement[] childElements) : base(childElements) + { + } - public EnumValue? Val + /// + /// Initializes a new instance of the AreaChart class from outer XML. + /// + /// Specifies the outer XML of the element. + public AreaChart(string outerXml) : base(outerXml) { - get => GetAttribute>(); - set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "dispBlanksAs"); - builder.AddElement() -.AddAttribute(0, "val", a => a.Val); + builder.SetSchema(11, "areaChart"); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Group, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Grouping), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.VaryColors), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AreaChartSeries), 0, 0), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DropLines), 0, 1) + } + }, + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 2, 2), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AreaChartExtensionList), 0, 1) + }; + } + + /// + /// Grouping. + /// Represents the following element tag in the schema: c:grouping. + /// + /// + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// + public Grouping? Grouping + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// VaryColors. + /// Represents the following element tag in the schema: c:varyColors. + /// + /// + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// + public VaryColors? VaryColors + { + get => GetElement(); + set => SetElement(value); } /// - public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); } /// - /// Header and Footer. + /// 3D Area Charts. /// This class is available in Office 2007 and above. - /// When the object is serialized out as xml, it's qualified name is c:headerFooter. + /// When the object is serialized out as xml, it's qualified name is c:area3DChart. /// /// /// The following table lists the possible child types: /// - /// OddHeader <c:oddHeader> - /// OddFooter <c:oddFooter> - /// EvenHeader <c:evenHeader> - /// EvenFooter <c:evenFooter> - /// FirstHeader <c:firstHeader> - /// FirstFooter <c:firstFooter> + /// Grouping <c:grouping> + /// VaryColors <c:varyColors> + /// AreaChartSeries <c:ser> + /// DataLabels <c:dLbls> + /// DropLines <c:dropLines> + /// GapDepth <c:gapDepth> + /// AxisId <c:axId> + /// Area3DChartExtensionList <c:extLst> /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "headerFooter")] + [SchemaAttr(11, "area3DChart")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class HeaderFooter : OpenXmlCompositeElement + public partial class Area3DChart : OpenXmlCompositeElement { /// - /// Initializes a new instance of the HeaderFooter class. + /// Initializes a new instance of the Area3DChart class. /// - public HeaderFooter() : base() + public Area3DChart() : base() { } /// - /// Initializes a new instance of the HeaderFooter class with the specified child elements. + /// Initializes a new instance of the Area3DChart class with the specified child elements. /// /// Specifies the child elements. - public HeaderFooter(IEnumerable childElements) : base(childElements) + public Area3DChart(IEnumerable childElements) : base(childElements) { } /// - /// Initializes a new instance of the HeaderFooter class with the specified child elements. + /// Initializes a new instance of the Area3DChart class with the specified child elements. /// /// Specifies the child elements. - public HeaderFooter(params OpenXmlElement[] childElements) : base(childElements) + public Area3DChart(params OpenXmlElement[] childElements) : base(childElements) { } /// - /// Initializes a new instance of the HeaderFooter class from outer XML. + /// Initializes a new instance of the Area3DChart class from outer XML. /// /// Specifies the outer XML of the element. - public HeaderFooter(string outerXml) : base(outerXml) + public Area3DChart(string outerXml) : base(outerXml) { } - /// - /// Align With Margins - /// Represents the following attribute in the schema: alignWithMargins - /// - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "alignWithMargins")] -#pragma warning restore CS0618 // Type or member is obsolete - - public BooleanValue? AlignWithMargins + internal override void ConfigureMetadata(ElementMetadata.Builder builder) { - get => GetAttribute(); - set => SetAttribute(value); + base.ConfigureMetadata(builder); + builder.SetSchema(11, "area3DChart"); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Group, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Grouping), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.VaryColors), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AreaChartSeries), 0, 0), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DropLines), 0, 1) + } + }, + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.GapDepth), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 2, 3), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Area3DChartExtensionList), 0, 1) + }; } /// - /// Different Odd Even - /// Represents the following attribute in the schema: differentOddEven + /// Grouping. + /// Represents the following element tag in the schema: c:grouping. /// - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "differentOddEven")] -#pragma warning restore CS0618 // Type or member is obsolete - - public BooleanValue? DifferentOddEven + /// + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// + public Grouping? Grouping { - get => GetAttribute(); - set => SetAttribute(value); + get => GetElement(); + set => SetElement(value); } /// - /// Different First - /// Represents the following attribute in the schema: differentFirst + /// VaryColors. + /// Represents the following element tag in the schema: c:varyColors. /// - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "differentFirst")] -#pragma warning restore CS0618 // Type or member is obsolete - - public BooleanValue? DifferentFirst + /// + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// + public VaryColors? VaryColors { - get => GetAttribute(); - set => SetAttribute(value); + get => GetElement(); + set => SetElement(value); } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "headerFooter"); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddElement() -.AddAttribute(0, "alignWithMargins", a => a.AlignWithMargins) -.AddAttribute(0, "differentOddEven", a => a.DifferentOddEven) -.AddAttribute(0, "differentFirst", a => a.DifferentFirst); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.OddHeader), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.OddFooter), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.EvenHeader), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.EvenFooter), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.FirstHeader), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.FirstFooter), 0, 1) - }; - } + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + /// + /// Line Charts. + /// This class is available in Office 2007 and above. + /// When the object is serialized out as xml, it's qualified name is c:lineChart. + /// + /// + /// The following table lists the possible child types: + /// + /// Grouping <c:grouping> + /// VaryColors <c:varyColors> + /// LineChartSeries <c:ser> + /// DataLabels <c:dLbls> + /// DropLines <c:dropLines> + /// HighLowLines <c:hiLowLines> + /// UpDownBars <c:upDownBars> + /// ShowMarker <c:marker> + /// Smooth <c:smooth> + /// AxisId <c:axId> + /// LineChartExtensionList <c:extLst> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "lineChart")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class LineChart : OpenXmlCompositeElement + { /// - /// Odd Header. - /// Represents the following element tag in the schema: c:oddHeader. + /// Initializes a new instance of the LineChart class. /// - /// - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// - public OddHeader? OddHeader + public LineChart() : base() { - get => GetElement(); - set => SetElement(value); } /// - /// Odd Footer. - /// Represents the following element tag in the schema: c:oddFooter. + /// Initializes a new instance of the LineChart class with the specified child elements. /// - /// - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// - public OddFooter? OddFooter + /// Specifies the child elements. + public LineChart(IEnumerable childElements) : base(childElements) { - get => GetElement(); - set => SetElement(value); } /// - /// Even Header. - /// Represents the following element tag in the schema: c:evenHeader. + /// Initializes a new instance of the LineChart class with the specified child elements. /// - /// - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// - public EvenHeader? EvenHeader + /// Specifies the child elements. + public LineChart(params OpenXmlElement[] childElements) : base(childElements) { - get => GetElement(); - set => SetElement(value); } /// - /// Even Footer. - /// Represents the following element tag in the schema: c:evenFooter. + /// Initializes a new instance of the LineChart class from outer XML. /// - /// - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// - public EvenFooter? EvenFooter + /// Specifies the outer XML of the element. + public LineChart(string outerXml) : base(outerXml) { - get => GetElement(); - set => SetElement(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(11, "lineChart"); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Group, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Grouping), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.VaryColors), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.LineChartSeries), 0, 0), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DropLines), 0, 1) + } + }, + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.HighLowLines), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.UpDownBars), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShowMarker), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Smooth), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 2, 2), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.LineChartExtensionList), 0, 1) + }; } /// - /// First Header. - /// Represents the following element tag in the schema: c:firstHeader. + /// Grouping. + /// Represents the following element tag in the schema: c:grouping. /// /// /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// - public FirstHeader? FirstHeader + public Grouping? Grouping { - get => GetElement(); + get => GetElement(); set => SetElement(value); } /// - /// First Footer. - /// Represents the following element tag in the schema: c:firstFooter. + /// VaryColors. + /// Represents the following element tag in the schema: c:varyColors. /// /// /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// - public FirstFooter? FirstFooter + public VaryColors? VaryColors { - get => GetElement(); + get => GetElement(); set => SetElement(value); } /// - public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); } /// - /// Page Margins. + /// 3D Line Charts. /// This class is available in Office 2007 and above. - /// When the object is serialized out as xml, it's qualified name is c:pageMargins. + /// When the object is serialized out as xml, it's qualified name is c:line3DChart. /// + /// + /// The following table lists the possible child types: + /// + /// Grouping <c:grouping> + /// VaryColors <c:varyColors> + /// LineChartSeries <c:ser> + /// DataLabels <c:dLbls> + /// DropLines <c:dropLines> + /// GapDepth <c:gapDepth> + /// AxisId <c:axId> + /// Line3DChartExtensionList <c:extLst> + /// + /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "pageMargins")] + [SchemaAttr(11, "line3DChart")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class PageMargins : OpenXmlLeafElement + public partial class Line3DChart : OpenXmlCompositeElement { /// - /// Initializes a new instance of the PageMargins class. + /// Initializes a new instance of the Line3DChart class. /// - public PageMargins() : base() + public Line3DChart() : base() { } /// - /// Left - /// Represents the following attribute in the schema: l + /// Initializes a new instance of the Line3DChart class with the specified child elements. /// - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "l")] -#pragma warning restore CS0618 // Type or member is obsolete - - public DoubleValue? Left + /// Specifies the child elements. + public Line3DChart(IEnumerable childElements) : base(childElements) { - get => GetAttribute(); - set => SetAttribute(value); } /// - /// Right - /// Represents the following attribute in the schema: r + /// Initializes a new instance of the Line3DChart class with the specified child elements. /// - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "r")] -#pragma warning restore CS0618 // Type or member is obsolete - - public DoubleValue? Right + /// Specifies the child elements. + public Line3DChart(params OpenXmlElement[] childElements) : base(childElements) { - get => GetAttribute(); - set => SetAttribute(value); } /// - /// Top - /// Represents the following attribute in the schema: t + /// Initializes a new instance of the Line3DChart class from outer XML. /// - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "t")] -#pragma warning restore CS0618 // Type or member is obsolete - - public DoubleValue? Top + /// Specifies the outer XML of the element. + public Line3DChart(string outerXml) : base(outerXml) { - get => GetAttribute(); - set => SetAttribute(value); } - /// - /// Bottom - /// Represents the following attribute in the schema: b - /// - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "b")] -#pragma warning restore CS0618 // Type or member is obsolete - - public DoubleValue? Bottom + internal override void ConfigureMetadata(ElementMetadata.Builder builder) { - get => GetAttribute(); - set => SetAttribute(value); + base.ConfigureMetadata(builder); + builder.SetSchema(11, "line3DChart"); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Group, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Grouping), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.VaryColors), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.LineChartSeries), 0, 0), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DropLines), 0, 1) + } + }, + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.GapDepth), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 3, 3), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Line3DChartExtensionList), 0, 1) + }; } /// - /// Header - /// Represents the following attribute in the schema: header + /// Grouping. + /// Represents the following element tag in the schema: c:grouping. /// - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "header")] -#pragma warning restore CS0618 // Type or member is obsolete - - public DoubleValue? Header + /// + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// + public Grouping? Grouping { - get => GetAttribute(); - set => SetAttribute(value); + get => GetElement(); + set => SetElement(value); } /// - /// Footer - /// Represents the following attribute in the schema: footer + /// VaryColors. + /// Represents the following element tag in the schema: c:varyColors. /// - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "footer")] -#pragma warning restore CS0618 // Type or member is obsolete - - public DoubleValue? Footer - { - get => GetAttribute(); - set => SetAttribute(value); - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// + public VaryColors? VaryColors { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "pageMargins"); - builder.AddElement() -.AddAttribute(0, "l", a => a.Left, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -}) -.AddAttribute(0, "r", a => a.Right, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -}) -.AddAttribute(0, "t", a => a.Top, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -}) -.AddAttribute(0, "b", a => a.Bottom, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -}) -.AddAttribute(0, "header", a => a.Header, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -}) -.AddAttribute(0, "footer", a => a.Footer, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -}); - builder.AddConstraint(new AttributeValueRangeConstraint(3 /*:b*/, true, 0, true, 49, false)); - builder.AddConstraint(new AttributeValueRangeConstraint(5 /*:footer*/, true, 0, true, 49, false)); - builder.AddConstraint(new AttributeValueRangeConstraint(4 /*:header*/, true, 0, true, 49, false)); - builder.AddConstraint(new AttributeValueRangeConstraint(0 /*:l*/, true, 0, true, 49, false)); - builder.AddConstraint(new AttributeValueRangeConstraint(1 /*:r*/, true, 0, true, 49, false)); - builder.AddConstraint(new AttributeValueRangeConstraint(2 /*:t*/, true, 0, true, 49, false)); + get => GetElement(); + set => SetElement(value); } /// - public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); } /// - /// Page Setup. + /// Stock Charts. /// This class is available in Office 2007 and above. - /// When the object is serialized out as xml, it's qualified name is c:pageSetup. + /// When the object is serialized out as xml, it's qualified name is c:stockChart. /// + /// + /// The following table lists the possible child types: + /// + /// LineChartSeries <c:ser> + /// DataLabels <c:dLbls> + /// DropLines <c:dropLines> + /// HighLowLines <c:hiLowLines> + /// UpDownBars <c:upDownBars> + /// AxisId <c:axId> + /// StockChartExtensionList <c:extLst> + /// + /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "pageSetup")] + [SchemaAttr(11, "stockChart")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class PageSetup : OpenXmlLeafElement + public partial class StockChart : OpenXmlCompositeElement { /// - /// Initializes a new instance of the PageSetup class. + /// Initializes a new instance of the StockChart class. /// - public PageSetup() : base() + public StockChart() : base() { } /// - /// Page Size - /// Represents the following attribute in the schema: paperSize + /// Initializes a new instance of the StockChart class with the specified child elements. /// - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "paperSize")] -#pragma warning restore CS0618 // Type or member is obsolete - - public UInt32Value? PaperSize + /// Specifies the child elements. + public StockChart(IEnumerable childElements) : base(childElements) { - get => GetAttribute(); - set => SetAttribute(value); } /// - /// First Page Number - /// Represents the following attribute in the schema: firstPageNumber + /// Initializes a new instance of the StockChart class with the specified child elements. /// - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "firstPageNumber")] -#pragma warning restore CS0618 // Type or member is obsolete - - public Int32Value? FirstPageNumber + /// Specifies the child elements. + public StockChart(params OpenXmlElement[] childElements) : base(childElements) { - get => GetAttribute(); - set => SetAttribute(value); } /// - /// Orientation - /// Represents the following attribute in the schema: orientation + /// Initializes a new instance of the StockChart class from outer XML. /// + /// Specifies the outer XML of the element. + public StockChart(string outerXml) : base(outerXml) + { + } -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "orientation")] -#pragma warning restore CS0618 // Type or member is obsolete - - public EnumValue? Orientation + internal override void ConfigureMetadata(ElementMetadata.Builder builder) { - get => GetAttribute>(); - set => SetAttribute(value); + base.ConfigureMetadata(builder); + builder.SetSchema(11, "stockChart"); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.LineChartSeries), 3, 4), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DropLines), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.HighLowLines), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.UpDownBars), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 2, 2), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.StockChartExtensionList), 0, 1) + }; } - /// - /// Black and White - /// Represents the following attribute in the schema: blackAndWhite - /// + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + /// + /// Radar Charts. + /// This class is available in Office 2007 and above. + /// When the object is serialized out as xml, it's qualified name is c:radarChart. + /// + /// + /// The following table lists the possible child types: + /// + /// RadarStyle <c:radarStyle> + /// VaryColors <c:varyColors> + /// RadarChartSeries <c:ser> + /// DataLabels <c:dLbls> + /// AxisId <c:axId> + /// RadarChartExtensionList <c:extLst> + /// + /// #pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "blackAndWhite")] + [SchemaAttr(11, "radarChart")] #pragma warning restore CS0618 // Type or member is obsolete - - public BooleanValue? BlackAndWhite + public partial class RadarChart : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the RadarChart class. + /// + public RadarChart() : base() { - get => GetAttribute(); - set => SetAttribute(value); } /// - /// Draft - /// Represents the following attribute in the schema: draft + /// Initializes a new instance of the RadarChart class with the specified child elements. /// - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "draft")] -#pragma warning restore CS0618 // Type or member is obsolete - - public BooleanValue? Draft + /// Specifies the child elements. + public RadarChart(IEnumerable childElements) : base(childElements) { - get => GetAttribute(); - set => SetAttribute(value); } /// - /// Use First Page Number - /// Represents the following attribute in the schema: useFirstPageNumber + /// Initializes a new instance of the RadarChart class with the specified child elements. /// + /// Specifies the child elements. + public RadarChart(params OpenXmlElement[] childElements) : base(childElements) + { + } -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "useFirstPageNumber")] -#pragma warning restore CS0618 // Type or member is obsolete - - public BooleanValue? UseFirstPageNumber + /// + /// Initializes a new instance of the RadarChart class from outer XML. + /// + /// Specifies the outer XML of the element. + public RadarChart(string outerXml) : base(outerXml) { - get => GetAttribute(); - set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(11, "radarChart"); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.RadarStyle), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.VaryColors), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.RadarChartSeries), 0, 0), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 2, 2), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.RadarChartExtensionList), 0, 1) + }; } /// - /// Horizontal DPI - /// Represents the following attribute in the schema: horizontalDpi + /// RadarStyle. + /// Represents the following element tag in the schema: c:radarStyle. /// + /// + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// + public RadarStyle? RadarStyle + { + get => GetElement(); + set => SetElement(value); + } -#pragma warning disable CS0618 // Type or member is obsolete + /// + /// VaryColors. + /// Represents the following element tag in the schema: c:varyColors. + /// + /// + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// + public VaryColors? VaryColors + { + get => GetElement(); + set => SetElement(value); + } - [SchemaAttr(0, "horizontalDpi")] + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Scatter Charts. + /// This class is available in Office 2007 and above. + /// When the object is serialized out as xml, it's qualified name is c:scatterChart. + /// + /// + /// The following table lists the possible child types: + /// + /// ScatterStyle <c:scatterStyle> + /// VaryColors <c:varyColors> + /// ScatterChartSeries <c:ser> + /// DataLabels <c:dLbls> + /// AxisId <c:axId> + /// ScatterChartExtensionList <c:extLst> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "scatterChart")] #pragma warning restore CS0618 // Type or member is obsolete + public partial class ScatterChart : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the ScatterChart class. + /// + public ScatterChart() : base() + { + } - public Int32Value? HorizontalDpi + /// + /// Initializes a new instance of the ScatterChart class with the specified child elements. + /// + /// Specifies the child elements. + public ScatterChart(IEnumerable childElements) : base(childElements) { - get => GetAttribute(); - set => SetAttribute(value); } /// - /// Vertical DPI - /// Represents the following attribute in the schema: verticalDpi + /// Initializes a new instance of the ScatterChart class with the specified child elements. /// + /// Specifies the child elements. + public ScatterChart(params OpenXmlElement[] childElements) : base(childElements) + { + } -#pragma warning disable CS0618 // Type or member is obsolete + /// + /// Initializes a new instance of the ScatterChart class from outer XML. + /// + /// Specifies the outer XML of the element. + public ScatterChart(string outerXml) : base(outerXml) + { + } - [SchemaAttr(0, "verticalDpi")] -#pragma warning restore CS0618 // Type or member is obsolete + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(11, "scatterChart"); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ScatterStyle), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.VaryColors), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ScatterChartSeries), 0, 0), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 2, 2), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ScatterChartExtensionList), 0, 1) + }; + } - public Int32Value? VerticalDpi + /// + /// ScatterStyle. + /// Represents the following element tag in the schema: c:scatterStyle. + /// + /// + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// + public ScatterStyle? ScatterStyle { - get => GetAttribute(); - set => SetAttribute(value); + get => GetElement(); + set => SetElement(value); } /// - /// Copies - /// Represents the following attribute in the schema: copies + /// VaryColors. + /// Represents the following element tag in the schema: c:varyColors. /// + /// + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// + public VaryColors? VaryColors + { + get => GetElement(); + set => SetElement(value); + } -#pragma warning disable CS0618 // Type or member is obsolete + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } - [SchemaAttr(0, "copies")] + /// + /// Pie Charts. + /// This class is available in Office 2007 and above. + /// When the object is serialized out as xml, it's qualified name is c:pieChart. + /// + /// + /// The following table lists the possible child types: + /// + /// VaryColors <c:varyColors> + /// PieChartSeries <c:ser> + /// DataLabels <c:dLbls> + /// FirstSliceAngle <c:firstSliceAng> + /// PieChartExtensionList <c:extLst> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "pieChart")] #pragma warning restore CS0618 // Type or member is obsolete + public partial class PieChart : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the PieChart class. + /// + public PieChart() : base() + { + } - public UInt32Value? Copies + /// + /// Initializes a new instance of the PieChart class with the specified child elements. + /// + /// Specifies the child elements. + public PieChart(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the PieChart class with the specified child elements. + /// + /// Specifies the child elements. + public PieChart(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the PieChart class from outer XML. + /// + /// Specifies the outer XML of the element. + public PieChart(string outerXml) : base(outerXml) { - get => GetAttribute(); - set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "pageSetup"); - builder.AddElement() -.AddAttribute(0, "paperSize", a => a.PaperSize) -.AddAttribute(0, "firstPageNumber", a => a.FirstPageNumber) -.AddAttribute(0, "orientation", a => a.Orientation) -.AddAttribute(0, "blackAndWhite", a => a.BlackAndWhite) -.AddAttribute(0, "draft", a => a.Draft) -.AddAttribute(0, "useFirstPageNumber", a => a.UseFirstPageNumber) -.AddAttribute(0, "horizontalDpi", a => a.HorizontalDpi) -.AddAttribute(0, "verticalDpi", a => a.VerticalDpi) -.AddAttribute(0, "copies", a => a.Copies); - builder.AddConstraint(new AttributeValueRangeConstraint(8 /*:copies*/, true, double.NegativeInfinity, true, 2147483647, true)); - builder.AddConstraint(new AttributeValueRangeConstraint(0 /*:paperSize*/, true, double.NegativeInfinity, true, 2147483647, true) { Application = ApplicationType.Excel }); + base.ConfigureMetadata(builder); + builder.SetSchema(11, "pieChart"); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Group, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.VaryColors), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PieChartSeries), 0, 0), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1) + } + }, + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.FirstSliceAngle), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PieChartExtensionList), 0, 1) + }; + } + + /// + /// VaryColors. + /// Represents the following element tag in the schema: c:varyColors. + /// + /// + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// + public VaryColors? VaryColors + { + get => GetElement(); + set => SetElement(value); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// 3D Pie Charts. + /// This class is available in Office 2007 and above. + /// When the object is serialized out as xml, it's qualified name is c:pie3DChart. + /// + /// + /// The following table lists the possible child types: + /// + /// VaryColors <c:varyColors> + /// PieChartSeries <c:ser> + /// DataLabels <c:dLbls> + /// Pie3DChartExtensionList <c:extLst> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "pie3DChart")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class Pie3DChart : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the Pie3DChart class. + /// + public Pie3DChart() : base() + { + } + + /// + /// Initializes a new instance of the Pie3DChart class with the specified child elements. + /// + /// Specifies the child elements. + public Pie3DChart(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the Pie3DChart class with the specified child elements. + /// + /// Specifies the child elements. + public Pie3DChart(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the Pie3DChart class from outer XML. + /// + /// Specifies the outer XML of the element. + public Pie3DChart(string outerXml) : base(outerXml) + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(11, "pie3DChart"); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Group, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.VaryColors), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PieChartSeries), 0, 0), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1) + } + }, + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Pie3DChartExtensionList), 0, 1) + }; + } + + /// + /// VaryColors. + /// Represents the following element tag in the schema: c:varyColors. + /// + /// + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// + public VaryColors? VaryColors + { + get => GetElement(); + set => SetElement(value); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Doughnut Charts. + /// This class is available in Office 2007 and above. + /// When the object is serialized out as xml, it's qualified name is c:doughnutChart. + /// + /// + /// The following table lists the possible child types: + /// + /// VaryColors <c:varyColors> + /// PieChartSeries <c:ser> + /// DataLabels <c:dLbls> + /// FirstSliceAngle <c:firstSliceAng> + /// HoleSize <c:holeSize> + /// ExtensionList <c:extLst> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "doughnutChart")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class DoughnutChart : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the DoughnutChart class. + /// + public DoughnutChart() : base() + { + } + + /// + /// Initializes a new instance of the DoughnutChart class with the specified child elements. + /// + /// Specifies the child elements. + public DoughnutChart(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the DoughnutChart class with the specified child elements. + /// + /// Specifies the child elements. + public DoughnutChart(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the DoughnutChart class from outer XML. + /// + /// Specifies the outer XML of the element. + public DoughnutChart(string outerXml) : base(outerXml) + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(11, "doughnutChart"); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Group, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.VaryColors), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PieChartSeries), 0, 0), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1) + } + }, + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.FirstSliceAngle), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.HoleSize), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) + }; + } + + /// + /// VaryColors. + /// Represents the following element tag in the schema: c:varyColors. + /// + /// + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// + public VaryColors? VaryColors + { + get => GetElement(); + set => SetElement(value); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// Bar Charts. + /// This class is available in Office 2007 and above. + /// When the object is serialized out as xml, it's qualified name is c:barChart. + /// + /// + /// The following table lists the possible child types: + /// + /// BarDirection <c:barDir> + /// BarGrouping <c:grouping> + /// VaryColors <c:varyColors> + /// BarChartSeries <c:ser> + /// DataLabels <c:dLbls> + /// GapWidth <c:gapWidth> + /// Overlap <c:overlap> + /// SeriesLines <c:serLines> + /// AxisId <c:axId> + /// BarChartExtensionList <c:extLst> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "barChart")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class BarChart : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the BarChart class. + /// + public BarChart() : base() + { + } + + /// + /// Initializes a new instance of the BarChart class with the specified child elements. + /// + /// Specifies the child elements. + public BarChart(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the BarChart class with the specified child elements. + /// + /// Specifies the child elements. + public BarChart(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the BarChart class from outer XML. + /// + /// Specifies the outer XML of the element. + public BarChart(string outerXml) : base(outerXml) + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(11, "barChart"); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Group, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BarDirection), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BarGrouping), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.VaryColors), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BarChartSeries), 0, 0), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1) + } + }, + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.GapWidth), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Overlap), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SeriesLines), 0, 0), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 2, 2), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BarChartExtensionList), 0, 1) + }; + } + + /// + /// Bar Direction. + /// Represents the following element tag in the schema: c:barDir. + /// + /// + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// + public BarDirection? BarDirection + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// Bar Grouping. + /// Represents the following element tag in the schema: c:grouping. + /// + /// + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// + public BarGrouping? BarGrouping + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// VaryColors. + /// Represents the following element tag in the schema: c:varyColors. + /// + /// + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// + public VaryColors? VaryColors + { + get => GetElement(); + set => SetElement(value); + } + + /// + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + } + + /// + /// 3D Bar Charts. + /// This class is available in Office 2007 and above. + /// When the object is serialized out as xml, it's qualified name is c:bar3DChart. + /// + /// + /// The following table lists the possible child types: + /// + /// BarDirection <c:barDir> + /// BarGrouping <c:grouping> + /// VaryColors <c:varyColors> + /// BarChartSeries <c:ser> + /// DataLabels <c:dLbls> + /// GapWidth <c:gapWidth> + /// GapDepth <c:gapDepth> + /// Shape <c:shape> + /// AxisId <c:axId> + /// Bar3DChartExtensionList <c:extLst> + /// + /// +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "bar3DChart")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class Bar3DChart : OpenXmlCompositeElement + { + /// + /// Initializes a new instance of the Bar3DChart class. + /// + public Bar3DChart() : base() + { + } + + /// + /// Initializes a new instance of the Bar3DChart class with the specified child elements. + /// + /// Specifies the child elements. + public Bar3DChart(IEnumerable childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the Bar3DChart class with the specified child elements. + /// + /// Specifies the child elements. + public Bar3DChart(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// + /// Initializes a new instance of the Bar3DChart class from outer XML. + /// + /// Specifies the outer XML of the element. + public Bar3DChart(string outerXml) : base(outerXml) + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(11, "bar3DChart"); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Group, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BarDirection), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BarGrouping), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.VaryColors), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BarChartSeries), 0, 0), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1) + } + }, + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.GapWidth), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.GapDepth), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Shape), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 2, 3), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Bar3DChartExtensionList), 0, 1) + }; + } + + /// + /// Bar Direction. + /// Represents the following element tag in the schema: c:barDir. + /// + /// + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// + public BarDirection? BarDirection + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// Bar Grouping. + /// Represents the following element tag in the schema: c:grouping. + /// + /// + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// + public BarGrouping? BarGrouping + { + get => GetElement(); + set => SetElement(value); + } + + /// + /// VaryColors. + /// Represents the following element tag in the schema: c:varyColors. + /// + /// + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// + public VaryColors? VaryColors + { + get => GetElement(); + set => SetElement(value); } /// - public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); } /// - /// Defines the ShapeProperties Class. + /// Pie of Pie or Bar of Pie Charts. /// This class is available in Office 2007 and above. - /// When the object is serialized out as xml, it's qualified name is c:spPr. + /// When the object is serialized out as xml, it's qualified name is c:ofPieChart. /// /// /// The following table lists the possible child types: /// - /// DocumentFormat.OpenXml.Drawing.Transform2D <a:xfrm> - /// DocumentFormat.OpenXml.Drawing.CustomGeometry <a:custGeom> - /// DocumentFormat.OpenXml.Drawing.PresetGeometry <a:prstGeom> - /// DocumentFormat.OpenXml.Drawing.NoFill <a:noFill> - /// DocumentFormat.OpenXml.Drawing.SolidFill <a:solidFill> - /// DocumentFormat.OpenXml.Drawing.GradientFill <a:gradFill> - /// DocumentFormat.OpenXml.Drawing.BlipFill <a:blipFill> - /// DocumentFormat.OpenXml.Drawing.PatternFill <a:pattFill> - /// DocumentFormat.OpenXml.Drawing.GroupFill <a:grpFill> - /// DocumentFormat.OpenXml.Drawing.Outline <a:ln> - /// DocumentFormat.OpenXml.Drawing.EffectList <a:effectLst> - /// DocumentFormat.OpenXml.Drawing.EffectDag <a:effectDag> - /// DocumentFormat.OpenXml.Drawing.Scene3DType <a:scene3d> - /// DocumentFormat.OpenXml.Drawing.Shape3DType <a:sp3d> - /// DocumentFormat.OpenXml.Drawing.ShapePropertiesExtensionList <a:extLst> + /// OfPieType <c:ofPieType> + /// VaryColors <c:varyColors> + /// PieChartSeries <c:ser> + /// DataLabels <c:dLbls> + /// GapWidth <c:gapWidth> + /// SplitType <c:splitType> + /// SplitPosition <c:splitPos> + /// CustomSplit <c:custSplit> + /// SecondPieSize <c:secondPieSize> + /// SeriesLines <c:serLines> + /// ExtensionList <c:extLst> /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "spPr")] + [SchemaAttr(11, "ofPieChart")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class ShapeProperties : OpenXmlCompositeElement + public partial class OfPieChart : OpenXmlCompositeElement { /// - /// Initializes a new instance of the ShapeProperties class. + /// Initializes a new instance of the OfPieChart class. /// - public ShapeProperties() : base() + public OfPieChart() : base() { } /// - /// Initializes a new instance of the ShapeProperties class with the specified child elements. + /// Initializes a new instance of the OfPieChart class with the specified child elements. /// /// Specifies the child elements. - public ShapeProperties(IEnumerable childElements) : base(childElements) + public OfPieChart(IEnumerable childElements) : base(childElements) { } /// - /// Initializes a new instance of the ShapeProperties class with the specified child elements. + /// Initializes a new instance of the OfPieChart class with the specified child elements. /// /// Specifies the child elements. - public ShapeProperties(params OpenXmlElement[] childElements) : base(childElements) + public OfPieChart(params OpenXmlElement[] childElements) : base(childElements) { } /// - /// Initializes a new instance of the ShapeProperties class from outer XML. + /// Initializes a new instance of the OfPieChart class from outer XML. /// /// Specifies the outer XML of the element. - public ShapeProperties(string outerXml) : base(outerXml) - { - } - - /// - /// Black and White Mode - /// Represents the following attribute in the schema: bwMode - /// - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "bwMode")] -#pragma warning restore CS0618 // Type or member is obsolete - - public EnumValue? BlackWhiteMode + public OfPieChart(string outerXml) : base(outerXml) { - get => GetAttribute>(); - set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "spPr"); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddElement() -.AddAttribute(0, "bwMode", a => a.BlackWhiteMode, aBuilder => -{ -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}); + builder.SetSchema(11, "ofPieChart"); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Transform2D), 0, 1), - new CompositeParticle.Builder(ParticleType.Group, 0, 1) - { - new CompositeParticle.Builder(ParticleType.Choice, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.CustomGeometry), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.PresetGeometry), 1, 1) - } - }, - new CompositeParticle.Builder(ParticleType.Group, 0, 1) - { - new CompositeParticle.Builder(ParticleType.Choice, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.NoFill), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.SolidFill), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.GradientFill), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.BlipFill), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.PatternFill), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.GroupFill), 1, 1) - } - }, - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Outline), 0, 1), - new CompositeParticle.Builder(ParticleType.Group, 0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.OfPieType), 1, 1), + new CompositeParticle.Builder(ParticleType.Group, 1, 1) { - new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.EffectList), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.EffectDag), 1, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.VaryColors), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PieChartSeries), 0, 0), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1) } }, - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Scene3DType), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Shape3DType), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.ShapePropertiesExtensionList), 0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.GapWidth), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SplitType), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SplitPosition), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CustomSplit), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SecondPieSize), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SeriesLines), 0, 0), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) }; } /// - /// 2D Transform for Individual Objects. - /// Represents the following element tag in the schema: a:xfrm. + /// Pie of Pie or Bar of Pie Type. + /// Represents the following element tag in the schema: c:ofPieType. /// /// - /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// - public DocumentFormat.OpenXml.Drawing.Transform2D? Transform2D + public OfPieType? OfPieType { - get => GetElement(); + get => GetElement(); + set => SetElement(value); + } + + /// + /// VaryColors. + /// Represents the following element tag in the schema: c:varyColors. + /// + /// + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// + public VaryColors? VaryColors + { + get => GetElement(); set => SetElement(value); } /// - public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); } /// - /// Data Label. + /// Surface Charts. /// This class is available in Office 2007 and above. - /// When the object is serialized out as xml, it's qualified name is c:dLbl. + /// When the object is serialized out as xml, it's qualified name is c:surfaceChart. /// /// /// The following table lists the possible child types: /// - /// Index <c:idx> - /// Delete <c:delete> - /// Layout <c:layout> - /// ChartText <c:tx> - /// NumberingFormat <c:numFmt> - /// ChartShapeProperties <c:spPr> - /// TextProperties <c:txPr> - /// DataLabelPosition <c:dLblPos> - /// ShowLegendKey <c:showLegendKey> - /// ShowValue <c:showVal> - /// ShowCategoryName <c:showCatName> - /// ShowSeriesName <c:showSerName> - /// ShowPercent <c:showPercent> - /// ShowBubbleSize <c:showBubbleSize> - /// Separator <c:separator> - /// DLblExtensionList <c:extLst> + /// Wireframe <c:wireframe> + /// SurfaceChartSeries <c:ser> + /// BandFormats <c:bandFmts> + /// AxisId <c:axId> + /// SurfaceChartExtensionList <c:extLst> /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "dLbl")] + [SchemaAttr(11, "surfaceChart")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class DataLabel : OpenXmlCompositeElement + public partial class SurfaceChart : OpenXmlCompositeElement { /// - /// Initializes a new instance of the DataLabel class. + /// Initializes a new instance of the SurfaceChart class. /// - public DataLabel() : base() + public SurfaceChart() : base() { } /// - /// Initializes a new instance of the DataLabel class with the specified child elements. + /// Initializes a new instance of the SurfaceChart class with the specified child elements. /// /// Specifies the child elements. - public DataLabel(IEnumerable childElements) : base(childElements) + public SurfaceChart(IEnumerable childElements) : base(childElements) { } /// - /// Initializes a new instance of the DataLabel class with the specified child elements. + /// Initializes a new instance of the SurfaceChart class with the specified child elements. /// /// Specifies the child elements. - public DataLabel(params OpenXmlElement[] childElements) : base(childElements) - { - } - - /// - /// Initializes a new instance of the DataLabel class from outer XML. - /// - /// Specifies the outer XML of the element. - public DataLabel(string outerXml) : base(outerXml) + public SurfaceChart(params OpenXmlElement[] childElements) : base(childElements) { } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "dLbl"); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); + /// + /// Initializes a new instance of the SurfaceChart class from outer XML. + /// + /// Specifies the outer XML of the element. + public SurfaceChart(string outerXml) : base(outerXml) + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(11, "surfaceChart"); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Index), 1, 1), - new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + new CompositeParticle.Builder(ParticleType.Group, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Delete), 1, 1), - new CompositeParticle.Builder(ParticleType.Group, 1, 1) + new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Layout), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartText), 0, 1), - new CompositeParticle.Builder(ParticleType.Group, 1, 1) - { - new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.NumberingFormat), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartShapeProperties), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TextProperties), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabelPosition), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShowLegendKey), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShowValue), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShowCategoryName), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShowSeriesName), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShowPercent), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShowBubbleSize), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Separator), 0, 1) - } - } - } + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Wireframe), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SurfaceChartSeries), 0, 0), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BandFormats), 0, 1) } }, - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DLblExtensionList), 0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 2, 3), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SurfaceChartExtensionList), 0, 1) }; } /// - /// Index. - /// Represents the following element tag in the schema: c:idx. + /// Wireframe. + /// Represents the following element tag in the schema: c:wireframe. /// /// /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// - public Index? Index + public Wireframe? Wireframe { - get => GetElement(); + get => GetElement(); set => SetElement(value); } /// - public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); } /// - /// Area Charts. + /// 3D Surface Charts. /// This class is available in Office 2007 and above. - /// When the object is serialized out as xml, it's qualified name is c:areaChart. + /// When the object is serialized out as xml, it's qualified name is c:surface3DChart. /// /// /// The following table lists the possible child types: /// - /// Grouping <c:grouping> + /// Wireframe <c:wireframe> /// VaryColors <c:varyColors> - /// AreaChartSeries <c:ser> - /// DataLabels <c:dLbls> - /// DropLines <c:dropLines> + /// SurfaceChartSeries <c:ser> + /// BandFormats <c:bandFmts> /// AxisId <c:axId> - /// AreaChartExtensionList <c:extLst> + /// Surface3DChartExtensionList <c:extLst> /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "areaChart")] + [SchemaAttr(11, "surface3DChart")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class AreaChart : OpenXmlCompositeElement + public partial class Surface3DChart : OpenXmlCompositeElement { /// - /// Initializes a new instance of the AreaChart class. + /// Initializes a new instance of the Surface3DChart class. /// - public AreaChart() : base() + public Surface3DChart() : base() { } /// - /// Initializes a new instance of the AreaChart class with the specified child elements. + /// Initializes a new instance of the Surface3DChart class with the specified child elements. /// /// Specifies the child elements. - public AreaChart(IEnumerable childElements) : base(childElements) + public Surface3DChart(IEnumerable childElements) : base(childElements) { } /// - /// Initializes a new instance of the AreaChart class with the specified child elements. + /// Initializes a new instance of the Surface3DChart class with the specified child elements. /// /// Specifies the child elements. - public AreaChart(params OpenXmlElement[] childElements) : base(childElements) + public Surface3DChart(params OpenXmlElement[] childElements) : base(childElements) { } /// - /// Initializes a new instance of the AreaChart class from outer XML. + /// Initializes a new instance of the Surface3DChart class from outer XML. /// /// Specifies the outer XML of the element. - public AreaChart(string outerXml) : base(outerXml) + public Surface3DChart(string outerXml) : base(outerXml) { } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "areaChart"); - builder.AddChild(); + builder.SetSchema(11, "surface3DChart"); + builder.AddChild(); builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); + builder.AddChild(); + builder.AddChild(); builder.AddChild(); - builder.AddChild(); + builder.AddChild(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new CompositeParticle.Builder(ParticleType.Group, 1, 1) - { - new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Grouping), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.VaryColors), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AreaChartSeries), 0, 0), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DropLines), 0, 1) - } - }, - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 2, 2), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AreaChartExtensionList), 0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Wireframe), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.VaryColors), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SurfaceChartSeries), 0, 0), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BandFormats), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 3, 3), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Surface3DChartExtensionList), 0, 1) }; } /// - /// Grouping. - /// Represents the following element tag in the schema: c:grouping. + /// Wireframe. + /// Represents the following element tag in the schema: c:wireframe. /// /// /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// - public Grouping? Grouping + public Wireframe? Wireframe { - get => GetElement(); + get => GetElement(); set => SetElement(value); } @@ -11552,107 +12229,91 @@ public VaryColors? VaryColors } /// - public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); } /// - /// 3D Area Charts. + /// Bubble Charts. /// This class is available in Office 2007 and above. - /// When the object is serialized out as xml, it's qualified name is c:area3DChart. + /// When the object is serialized out as xml, it's qualified name is c:bubbleChart. /// /// /// The following table lists the possible child types: /// - /// Grouping <c:grouping> /// VaryColors <c:varyColors> - /// AreaChartSeries <c:ser> + /// BubbleChartSeries <c:ser> /// DataLabels <c:dLbls> - /// DropLines <c:dropLines> - /// GapDepth <c:gapDepth> + /// Bubble3D <c:bubble3D> + /// BubbleScale <c:bubbleScale> + /// ShowNegativeBubbles <c:showNegBubbles> + /// SizeRepresents <c:sizeRepresents> /// AxisId <c:axId> - /// Area3DChartExtensionList <c:extLst> + /// BubbleChartExtensionList <c:extLst> /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "area3DChart")] + [SchemaAttr(11, "bubbleChart")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class Area3DChart : OpenXmlCompositeElement + public partial class BubbleChart : OpenXmlCompositeElement { /// - /// Initializes a new instance of the Area3DChart class. + /// Initializes a new instance of the BubbleChart class. /// - public Area3DChart() : base() + public BubbleChart() : base() { } /// - /// Initializes a new instance of the Area3DChart class with the specified child elements. + /// Initializes a new instance of the BubbleChart class with the specified child elements. /// /// Specifies the child elements. - public Area3DChart(IEnumerable childElements) : base(childElements) + public BubbleChart(IEnumerable childElements) : base(childElements) { } /// - /// Initializes a new instance of the Area3DChart class with the specified child elements. + /// Initializes a new instance of the BubbleChart class with the specified child elements. /// /// Specifies the child elements. - public Area3DChart(params OpenXmlElement[] childElements) : base(childElements) + public BubbleChart(params OpenXmlElement[] childElements) : base(childElements) { } /// - /// Initializes a new instance of the Area3DChart class from outer XML. + /// Initializes a new instance of the BubbleChart class from outer XML. /// /// Specifies the outer XML of the element. - public Area3DChart(string outerXml) : base(outerXml) + public BubbleChart(string outerXml) : base(outerXml) { } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "area3DChart"); - builder.AddChild(); + builder.SetSchema(11, "bubbleChart"); builder.AddChild(); - builder.AddChild(); + builder.AddChild(); builder.AddChild(); - builder.AddChild(); - builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); builder.AddChild(); - builder.AddChild(); + builder.AddChild(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new CompositeParticle.Builder(ParticleType.Group, 1, 1) - { - new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Grouping), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.VaryColors), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AreaChartSeries), 0, 0), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DropLines), 0, 1) - } - }, - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.GapDepth), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 2, 3), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Area3DChartExtensionList), 0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.VaryColors), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BubbleChartSeries), 0, 0), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Bubble3D), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BubbleScale), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShowNegativeBubbles), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SizeRepresents), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 2, 2), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BubbleChartExtensionList), 0, 1) }; } - /// - /// Grouping. - /// Represents the following element tag in the schema: c:grouping. - /// - /// - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// - public Grouping? Grouping - { - get => GetElement(); - set => SetElement(value); - } - /// /// VaryColors. /// Represents the following element tag in the schema: c:varyColors. @@ -11667,3218 +12328,3012 @@ public VaryColors? VaryColors } /// - public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp(deep); } /// - /// Line Charts. + /// Value Axis. /// This class is available in Office 2007 and above. - /// When the object is serialized out as xml, it's qualified name is c:lineChart. + /// When the object is serialized out as xml, it's qualified name is c:valAx. /// /// /// The following table lists the possible child types: /// - /// Grouping <c:grouping> - /// VaryColors <c:varyColors> - /// LineChartSeries <c:ser> - /// DataLabels <c:dLbls> - /// DropLines <c:dropLines> - /// HighLowLines <c:hiLowLines> - /// UpDownBars <c:upDownBars> - /// ShowMarker <c:marker> - /// Smooth <c:smooth> /// AxisId <c:axId> - /// LineChartExtensionList <c:extLst> + /// Scaling <c:scaling> + /// Delete <c:delete> + /// AxisPosition <c:axPos> + /// MajorGridlines <c:majorGridlines> + /// MinorGridlines <c:minorGridlines> + /// Title <c:title> + /// NumberingFormat <c:numFmt> + /// MajorTickMark <c:majorTickMark> + /// MinorTickMark <c:minorTickMark> + /// TickLabelPosition <c:tickLblPos> + /// ChartShapeProperties <c:spPr> + /// TextProperties <c:txPr> + /// CrossingAxis <c:crossAx> + /// Crosses <c:crosses> + /// CrossesAt <c:crossesAt> + /// CrossBetween <c:crossBetween> + /// MajorUnit <c:majorUnit> + /// MinorUnit <c:minorUnit> + /// DisplayUnits <c:dispUnits> + /// ValAxExtensionList <c:extLst> /// /// #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "lineChart")] + [SchemaAttr(11, "valAx")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class LineChart : OpenXmlCompositeElement + public partial class ValueAxis : OpenXmlCompositeElement { /// - /// Initializes a new instance of the LineChart class. + /// Initializes a new instance of the ValueAxis class. /// - public LineChart() : base() + public ValueAxis() : base() { } /// - /// Initializes a new instance of the LineChart class with the specified child elements. + /// Initializes a new instance of the ValueAxis class with the specified child elements. /// /// Specifies the child elements. - public LineChart(IEnumerable childElements) : base(childElements) + public ValueAxis(IEnumerable childElements) : base(childElements) { } /// - /// Initializes a new instance of the LineChart class with the specified child elements. + /// Initializes a new instance of the ValueAxis class with the specified child elements. /// /// Specifies the child elements. - public LineChart(params OpenXmlElement[] childElements) : base(childElements) + public ValueAxis(params OpenXmlElement[] childElements) : base(childElements) { } /// - /// Initializes a new instance of the LineChart class from outer XML. + /// Initializes a new instance of the ValueAxis class from outer XML. /// /// Specifies the outer XML of the element. - public LineChart(string outerXml) : base(outerXml) + public ValueAxis(string outerXml) : base(outerXml) { } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "lineChart"); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); - builder.AddChild(); + builder.SetSchema(11, "valAx"); builder.AddChild(); - builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild(); + builder.AddChild<NumberingFormat>(); + builder.AddChild<MajorTickMark>(); + builder.AddChild<MinorTickMark>(); + builder.AddChild<TickLabelPosition>(); + builder.AddChild<ChartShapeProperties>(); + builder.AddChild<TextProperties>(); + builder.AddChild<CrossingAxis>(); + builder.AddChild<Crosses>(); + builder.AddChild<CrossesAt>(); + builder.AddChild<CrossBetween>(); + builder.AddChild<MajorUnit>(); + builder.AddChild<MinorUnit>(); + builder.AddChild<DisplayUnits>(); + builder.AddChild<ValAxExtensionList>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { new CompositeParticle.Builder(ParticleType.Group, 1, 1) { new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Grouping), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.VaryColors), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.LineChartSeries), 0, 0), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DropLines), 0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Scaling), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Delete), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisPosition), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MajorGridlines), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MinorGridlines), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Title), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.NumberingFormat), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MajorTickMark), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MinorTickMark), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TickLabelPosition), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartShapeProperties), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TextProperties), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CrossingAxis), 1, 1), + new CompositeParticle.Builder(ParticleType.Choice, 0, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Crosses), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CrossesAt), 1, 1) + } } }, - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.HighLowLines), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.UpDownBars), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShowMarker), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Smooth), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 2, 2), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.LineChartExtensionList), 0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CrossBetween), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MajorUnit), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MinorUnit), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DisplayUnits), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ValAxExtensionList), 0, 1) }; } /// <summary> - /// <para>Grouping.</para> - /// <para>Represents the following element tag in the schema: c:grouping.</para> + /// <para>Axis ID.</para> + /// <para>Represents the following element tag in the schema: c:axId.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public Grouping? Grouping + public AxisId? AxisId { - get => GetElement<Grouping>(); + get => GetElement<AxisId>(); set => SetElement(value); } /// <summary> - /// <para>VaryColors.</para> - /// <para>Represents the following element tag in the schema: c:varyColors.</para> + /// <para>Scaling.</para> + /// <para>Represents the following element tag in the schema: c:scaling.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public VaryColors? VaryColors + public Scaling? Scaling { - get => GetElement<VaryColors>(); + get => GetElement<Scaling>(); set => SetElement(value); } - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<LineChart>(deep); - } - - /// <summary> - /// <para>3D Line Charts.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:line3DChart.</para> - /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>Grouping <c:grouping></description></item> - /// <item><description>VaryColors <c:varyColors></description></item> - /// <item><description>LineChartSeries <c:ser></description></item> - /// <item><description>DataLabels <c:dLbls></description></item> - /// <item><description>DropLines <c:dropLines></description></item> - /// <item><description>GapDepth <c:gapDepth></description></item> - /// <item><description>AxisId <c:axId></description></item> - /// <item><description>Line3DChartExtensionList <c:extLst></description></item> - /// </list> - /// </remark> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "line3DChart")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class Line3DChart : OpenXmlCompositeElement - { /// <summary> - /// Initializes a new instance of the Line3DChart class. + /// <para>Delete.</para> + /// <para>Represents the following element tag in the schema: c:delete.</para> /// </summary> - public Line3DChart() : base() + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public Delete? Delete { + get => GetElement<Delete>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the Line3DChart class with the specified child elements. + /// <para>Axis Position.</para> + /// <para>Represents the following element tag in the schema: c:axPos.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public Line3DChart(IEnumerable<OpenXmlElement> childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public AxisPosition? AxisPosition { + get => GetElement<AxisPosition>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the Line3DChart class with the specified child elements. + /// <para>Major Gridlines.</para> + /// <para>Represents the following element tag in the schema: c:majorGridlines.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public Line3DChart(params OpenXmlElement[] childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public MajorGridlines? MajorGridlines { + get => GetElement<MajorGridlines>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the Line3DChart class from outer XML. + /// <para>Minor Gridlines.</para> + /// <para>Represents the following element tag in the schema: c:minorGridlines.</para> /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public Line3DChart(string outerXml) : base(outerXml) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public MinorGridlines? MinorGridlines { + get => GetElement<MinorGridlines>(); + set => SetElement(value); } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// <summary> + /// <para>Title.</para> + /// <para>Represents the following element tag in the schema: c:title.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public Title? Title { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "line3DChart"); - builder.AddChild<Grouping>(); - builder.AddChild<VaryColors>(); - builder.AddChild<LineChartSeries>(); - builder.AddChild<DataLabels>(); - builder.AddChild<DropLines>(); - builder.AddChild<GapDepth>(); - builder.AddChild<AxisId>(); - builder.AddChild<Line3DChartExtensionList>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new CompositeParticle.Builder(ParticleType.Group, 1, 1) - { - new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Grouping), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.VaryColors), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.LineChartSeries), 0, 0), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DropLines), 0, 1) - } - }, - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.GapDepth), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 3, 3), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Line3DChartExtensionList), 0, 1) - }; + get => GetElement<Title>(); + set => SetElement(value); } /// <summary> - /// <para>Grouping.</para> - /// <para>Represents the following element tag in the schema: c:grouping.</para> + /// <para>Number Format.</para> + /// <para>Represents the following element tag in the schema: c:numFmt.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public Grouping? Grouping + public NumberingFormat? NumberingFormat { - get => GetElement<Grouping>(); + get => GetElement<NumberingFormat>(); set => SetElement(value); } /// <summary> - /// <para>VaryColors.</para> - /// <para>Represents the following element tag in the schema: c:varyColors.</para> + /// <para>Major Tick Mark.</para> + /// <para>Represents the following element tag in the schema: c:majorTickMark.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public VaryColors? VaryColors + public MajorTickMark? MajorTickMark { - get => GetElement<VaryColors>(); + get => GetElement<MajorTickMark>(); set => SetElement(value); } - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<Line3DChart>(deep); - } - - /// <summary> - /// <para>Stock Charts.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:stockChart.</para> - /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>LineChartSeries <c:ser></description></item> - /// <item><description>DataLabels <c:dLbls></description></item> - /// <item><description>DropLines <c:dropLines></description></item> - /// <item><description>HighLowLines <c:hiLowLines></description></item> - /// <item><description>UpDownBars <c:upDownBars></description></item> - /// <item><description>AxisId <c:axId></description></item> - /// <item><description>StockChartExtensionList <c:extLst></description></item> - /// </list> - /// </remark> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "stockChart")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class StockChart : OpenXmlCompositeElement - { /// <summary> - /// Initializes a new instance of the StockChart class. + /// <para>Minor Tick Mark.</para> + /// <para>Represents the following element tag in the schema: c:minorTickMark.</para> /// </summary> - public StockChart() : base() + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public MinorTickMark? MinorTickMark { + get => GetElement<MinorTickMark>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the StockChart class with the specified child elements. + /// <para>Tick Label Position.</para> + /// <para>Represents the following element tag in the schema: c:tickLblPos.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public StockChart(IEnumerable<OpenXmlElement> childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public TickLabelPosition? TickLabelPosition { + get => GetElement<TickLabelPosition>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the StockChart class with the specified child elements. + /// <para>ChartShapeProperties.</para> + /// <para>Represents the following element tag in the schema: c:spPr.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public StockChart(params OpenXmlElement[] childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public ChartShapeProperties? ChartShapeProperties { + get => GetElement<ChartShapeProperties>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the StockChart class from outer XML. + /// <para>TextProperties.</para> + /// <para>Represents the following element tag in the schema: c:txPr.</para> /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public StockChart(string outerXml) : base(outerXml) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public TextProperties? TextProperties { + get => GetElement<TextProperties>(); + set => SetElement(value); } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// <summary> + /// <para>Crossing Axis ID.</para> + /// <para>Represents the following element tag in the schema: c:crossAx.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public CrossingAxis? CrossingAxis { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "stockChart"); - builder.AddChild<LineChartSeries>(); - builder.AddChild<DataLabels>(); - builder.AddChild<DropLines>(); - builder.AddChild<HighLowLines>(); - builder.AddChild<UpDownBars>(); - builder.AddChild<AxisId>(); - builder.AddChild<StockChartExtensionList>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.LineChartSeries), 3, 4), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DropLines), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.HighLowLines), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.UpDownBars), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 2, 2), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.StockChartExtensionList), 0, 1) - }; + get => GetElement<CrossingAxis>(); + set => SetElement(value); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<StockChart>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<ValueAxis>(deep); } /// <summary> - /// <para>Radar Charts.</para> + /// <para>Category Axis Data.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:radarChart.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:catAx.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>RadarStyle <c:radarStyle></description></item> - /// <item><description>VaryColors <c:varyColors></description></item> - /// <item><description>RadarChartSeries <c:ser></description></item> - /// <item><description>DataLabels <c:dLbls></description></item> /// <item><description>AxisId <c:axId></description></item> - /// <item><description>RadarChartExtensionList <c:extLst></description></item> + /// <item><description>Scaling <c:scaling></description></item> + /// <item><description>Delete <c:delete></description></item> + /// <item><description>AxisPosition <c:axPos></description></item> + /// <item><description>MajorGridlines <c:majorGridlines></description></item> + /// <item><description>MinorGridlines <c:minorGridlines></description></item> + /// <item><description>Title <c:title></description></item> + /// <item><description>NumberingFormat <c:numFmt></description></item> + /// <item><description>MajorTickMark <c:majorTickMark></description></item> + /// <item><description>MinorTickMark <c:minorTickMark></description></item> + /// <item><description>TickLabelPosition <c:tickLblPos></description></item> + /// <item><description>ChartShapeProperties <c:spPr></description></item> + /// <item><description>TextProperties <c:txPr></description></item> + /// <item><description>CrossingAxis <c:crossAx></description></item> + /// <item><description>Crosses <c:crosses></description></item> + /// <item><description>CrossesAt <c:crossesAt></description></item> + /// <item><description>AutoLabeled <c:auto></description></item> + /// <item><description>LabelAlignment <c:lblAlgn></description></item> + /// <item><description>LabelOffset <c:lblOffset></description></item> + /// <item><description>TickLabelSkip <c:tickLblSkip></description></item> + /// <item><description>TickMarkSkip <c:tickMarkSkip></description></item> + /// <item><description>NoMultiLevelLabels <c:noMultiLvlLbl></description></item> + /// <item><description>CatAxExtensionList <c:extLst></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "radarChart")] + [SchemaAttr(11, "catAx")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class RadarChart : OpenXmlCompositeElement + public partial class CategoryAxis : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the RadarChart class. + /// Initializes a new instance of the CategoryAxis class. /// </summary> - public RadarChart() : base() + public CategoryAxis() : base() { } /// <summary> - /// Initializes a new instance of the RadarChart class with the specified child elements. + /// Initializes a new instance of the CategoryAxis class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public RadarChart(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public CategoryAxis(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the RadarChart class with the specified child elements. + /// Initializes a new instance of the CategoryAxis class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public RadarChart(params OpenXmlElement[] childElements) : base(childElements) + public CategoryAxis(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the RadarChart class from outer XML. + /// Initializes a new instance of the CategoryAxis class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public RadarChart(string outerXml) : base(outerXml) + public CategoryAxis(string outerXml) : base(outerXml) { } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "radarChart"); - builder.AddChild<RadarStyle>(); - builder.AddChild<VaryColors>(); - builder.AddChild<RadarChartSeries>(); - builder.AddChild<DataLabels>(); + builder.SetSchema(11, "catAx"); builder.AddChild<AxisId>(); - builder.AddChild<RadarChartExtensionList>(); + builder.AddChild<Scaling>(); + builder.AddChild<Delete>(); + builder.AddChild<AxisPosition>(); + builder.AddChild<MajorGridlines>(); + builder.AddChild<MinorGridlines>(); + builder.AddChild<Title>(); + builder.AddChild<NumberingFormat>(); + builder.AddChild<MajorTickMark>(); + builder.AddChild<MinorTickMark>(); + builder.AddChild<TickLabelPosition>(); + builder.AddChild<ChartShapeProperties>(); + builder.AddChild<TextProperties>(); + builder.AddChild<CrossingAxis>(); + builder.AddChild<Crosses>(); + builder.AddChild<CrossesAt>(); + builder.AddChild<AutoLabeled>(); + builder.AddChild<LabelAlignment>(); + builder.AddChild<LabelOffset>(); + builder.AddChild<TickLabelSkip>(); + builder.AddChild<TickMarkSkip>(); + builder.AddChild<NoMultiLevelLabels>(); + builder.AddChild<CatAxExtensionList>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.RadarStyle), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.VaryColors), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.RadarChartSeries), 0, 0), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 2, 2), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.RadarChartExtensionList), 0, 1) + new CompositeParticle.Builder(ParticleType.Group, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Scaling), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Delete), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisPosition), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MajorGridlines), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MinorGridlines), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Title), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.NumberingFormat), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MajorTickMark), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MinorTickMark), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TickLabelPosition), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartShapeProperties), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TextProperties), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CrossingAxis), 1, 1), + new CompositeParticle.Builder(ParticleType.Choice, 0, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Crosses), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CrossesAt), 1, 1) + } + } + }, + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AutoLabeled), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.LabelAlignment), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.LabelOffset), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TickLabelSkip), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TickMarkSkip), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.NoMultiLevelLabels), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CatAxExtensionList), 0, 1) }; } /// <summary> - /// <para>RadarStyle.</para> - /// <para>Represents the following element tag in the schema: c:radarStyle.</para> + /// <para>Axis ID.</para> + /// <para>Represents the following element tag in the schema: c:axId.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public RadarStyle? RadarStyle + public AxisId? AxisId { - get => GetElement<RadarStyle>(); + get => GetElement<AxisId>(); set => SetElement(value); } /// <summary> - /// <para>VaryColors.</para> - /// <para>Represents the following element tag in the schema: c:varyColors.</para> + /// <para>Scaling.</para> + /// <para>Represents the following element tag in the schema: c:scaling.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public VaryColors? VaryColors + public Scaling? Scaling { - get => GetElement<VaryColors>(); + get => GetElement<Scaling>(); set => SetElement(value); } - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<RadarChart>(deep); - } - - /// <summary> - /// <para>Scatter Charts.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:scatterChart.</para> - /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>ScatterStyle <c:scatterStyle></description></item> - /// <item><description>VaryColors <c:varyColors></description></item> - /// <item><description>ScatterChartSeries <c:ser></description></item> - /// <item><description>DataLabels <c:dLbls></description></item> - /// <item><description>AxisId <c:axId></description></item> - /// <item><description>ScatterChartExtensionList <c:extLst></description></item> - /// </list> - /// </remark> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "scatterChart")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class ScatterChart : OpenXmlCompositeElement - { - /// <summary> - /// Initializes a new instance of the ScatterChart class. - /// </summary> - public ScatterChart() : base() - { - } - /// <summary> - /// Initializes a new instance of the ScatterChart class with the specified child elements. + /// <para>Delete.</para> + /// <para>Represents the following element tag in the schema: c:delete.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public ScatterChart(IEnumerable<OpenXmlElement> childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public Delete? Delete { + get => GetElement<Delete>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the ScatterChart class with the specified child elements. + /// <para>Axis Position.</para> + /// <para>Represents the following element tag in the schema: c:axPos.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public ScatterChart(params OpenXmlElement[] childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public AxisPosition? AxisPosition { + get => GetElement<AxisPosition>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the ScatterChart class from outer XML. + /// <para>Major Gridlines.</para> + /// <para>Represents the following element tag in the schema: c:majorGridlines.</para> /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public ScatterChart(string outerXml) : base(outerXml) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public MajorGridlines? MajorGridlines { + get => GetElement<MajorGridlines>(); + set => SetElement(value); } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// <summary> + /// <para>Minor Gridlines.</para> + /// <para>Represents the following element tag in the schema: c:minorGridlines.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public MinorGridlines? MinorGridlines { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "scatterChart"); - builder.AddChild<ScatterStyle>(); - builder.AddChild<VaryColors>(); - builder.AddChild<ScatterChartSeries>(); - builder.AddChild<DataLabels>(); - builder.AddChild<AxisId>(); - builder.AddChild<ScatterChartExtensionList>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ScatterStyle), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.VaryColors), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ScatterChartSeries), 0, 0), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 2, 2), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ScatterChartExtensionList), 0, 1) - }; + get => GetElement<MinorGridlines>(); + set => SetElement(value); } /// <summary> - /// <para>ScatterStyle.</para> - /// <para>Represents the following element tag in the schema: c:scatterStyle.</para> + /// <para>Title.</para> + /// <para>Represents the following element tag in the schema: c:title.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public ScatterStyle? ScatterStyle + public Title? Title { - get => GetElement<ScatterStyle>(); + get => GetElement<Title>(); set => SetElement(value); } /// <summary> - /// <para>VaryColors.</para> - /// <para>Represents the following element tag in the schema: c:varyColors.</para> + /// <para>Number Format.</para> + /// <para>Represents the following element tag in the schema: c:numFmt.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public VaryColors? VaryColors + public NumberingFormat? NumberingFormat { - get => GetElement<VaryColors>(); + get => GetElement<NumberingFormat>(); set => SetElement(value); } - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<ScatterChart>(deep); - } - - /// <summary> - /// <para>Pie Charts.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:pieChart.</para> - /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>VaryColors <c:varyColors></description></item> - /// <item><description>PieChartSeries <c:ser></description></item> - /// <item><description>DataLabels <c:dLbls></description></item> - /// <item><description>FirstSliceAngle <c:firstSliceAng></description></item> - /// <item><description>PieChartExtensionList <c:extLst></description></item> - /// </list> - /// </remark> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "pieChart")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class PieChart : OpenXmlCompositeElement - { /// <summary> - /// Initializes a new instance of the PieChart class. + /// <para>Major Tick Mark.</para> + /// <para>Represents the following element tag in the schema: c:majorTickMark.</para> /// </summary> - public PieChart() : base() + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public MajorTickMark? MajorTickMark { + get => GetElement<MajorTickMark>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the PieChart class with the specified child elements. + /// <para>Minor Tick Mark.</para> + /// <para>Represents the following element tag in the schema: c:minorTickMark.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public PieChart(IEnumerable<OpenXmlElement> childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public MinorTickMark? MinorTickMark { + get => GetElement<MinorTickMark>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the PieChart class with the specified child elements. + /// <para>Tick Label Position.</para> + /// <para>Represents the following element tag in the schema: c:tickLblPos.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public PieChart(params OpenXmlElement[] childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public TickLabelPosition? TickLabelPosition { + get => GetElement<TickLabelPosition>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the PieChart class from outer XML. + /// <para>ChartShapeProperties.</para> + /// <para>Represents the following element tag in the schema: c:spPr.</para> /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public PieChart(string outerXml) : base(outerXml) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public ChartShapeProperties? ChartShapeProperties { + get => GetElement<ChartShapeProperties>(); + set => SetElement(value); } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// <summary> + /// <para>TextProperties.</para> + /// <para>Represents the following element tag in the schema: c:txPr.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public TextProperties? TextProperties { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "pieChart"); - builder.AddChild<VaryColors>(); - builder.AddChild<PieChartSeries>(); - builder.AddChild<DataLabels>(); - builder.AddChild<FirstSliceAngle>(); - builder.AddChild<PieChartExtensionList>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new CompositeParticle.Builder(ParticleType.Group, 1, 1) - { - new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.VaryColors), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PieChartSeries), 0, 0), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1) - } - }, - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.FirstSliceAngle), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PieChartExtensionList), 0, 1) - }; + get => GetElement<TextProperties>(); + set => SetElement(value); } /// <summary> - /// <para>VaryColors.</para> - /// <para>Represents the following element tag in the schema: c:varyColors.</para> + /// <para>Crossing Axis ID.</para> + /// <para>Represents the following element tag in the schema: c:crossAx.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public VaryColors? VaryColors + public CrossingAxis? CrossingAxis { - get => GetElement<VaryColors>(); + get => GetElement<CrossingAxis>(); set => SetElement(value); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<PieChart>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<CategoryAxis>(deep); } /// <summary> - /// <para>3D Pie Charts.</para> + /// <para>Date Axis.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:pie3DChart.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:dateAx.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>VaryColors <c:varyColors></description></item> - /// <item><description>PieChartSeries <c:ser></description></item> - /// <item><description>DataLabels <c:dLbls></description></item> - /// <item><description>Pie3DChartExtensionList <c:extLst></description></item> + /// <item><description>AxisId <c:axId></description></item> + /// <item><description>Scaling <c:scaling></description></item> + /// <item><description>Delete <c:delete></description></item> + /// <item><description>AxisPosition <c:axPos></description></item> + /// <item><description>MajorGridlines <c:majorGridlines></description></item> + /// <item><description>MinorGridlines <c:minorGridlines></description></item> + /// <item><description>Title <c:title></description></item> + /// <item><description>NumberingFormat <c:numFmt></description></item> + /// <item><description>MajorTickMark <c:majorTickMark></description></item> + /// <item><description>MinorTickMark <c:minorTickMark></description></item> + /// <item><description>TickLabelPosition <c:tickLblPos></description></item> + /// <item><description>ChartShapeProperties <c:spPr></description></item> + /// <item><description>TextProperties <c:txPr></description></item> + /// <item><description>CrossingAxis <c:crossAx></description></item> + /// <item><description>Crosses <c:crosses></description></item> + /// <item><description>CrossesAt <c:crossesAt></description></item> + /// <item><description>AutoLabeled <c:auto></description></item> + /// <item><description>LabelOffset <c:lblOffset></description></item> + /// <item><description>BaseTimeUnit <c:baseTimeUnit></description></item> + /// <item><description>MajorUnit <c:majorUnit></description></item> + /// <item><description>MajorTimeUnit <c:majorTimeUnit></description></item> + /// <item><description>MinorUnit <c:minorUnit></description></item> + /// <item><description>MinorTimeUnit <c:minorTimeUnit></description></item> + /// <item><description>DateAxExtensionList <c:extLst></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "pie3DChart")] + [SchemaAttr(11, "dateAx")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class Pie3DChart : OpenXmlCompositeElement + public partial class DateAxis : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the Pie3DChart class. + /// Initializes a new instance of the DateAxis class. /// </summary> - public Pie3DChart() : base() + public DateAxis() : base() { } /// <summary> - /// Initializes a new instance of the Pie3DChart class with the specified child elements. + /// Initializes a new instance of the DateAxis class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public Pie3DChart(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public DateAxis(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the Pie3DChart class with the specified child elements. + /// Initializes a new instance of the DateAxis class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public Pie3DChart(params OpenXmlElement[] childElements) : base(childElements) + public DateAxis(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the Pie3DChart class from outer XML. + /// Initializes a new instance of the DateAxis class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public Pie3DChart(string outerXml) : base(outerXml) + public DateAxis(string outerXml) : base(outerXml) { } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "pie3DChart"); - builder.AddChild<VaryColors>(); - builder.AddChild<PieChartSeries>(); - builder.AddChild<DataLabels>(); - builder.AddChild<Pie3DChartExtensionList>(); + builder.SetSchema(11, "dateAx"); + builder.AddChild<AxisId>(); + builder.AddChild<Scaling>(); + builder.AddChild<Delete>(); + builder.AddChild<AxisPosition>(); + builder.AddChild<MajorGridlines>(); + builder.AddChild<MinorGridlines>(); + builder.AddChild<Title>(); + builder.AddChild<NumberingFormat>(); + builder.AddChild<MajorTickMark>(); + builder.AddChild<MinorTickMark>(); + builder.AddChild<TickLabelPosition>(); + builder.AddChild<ChartShapeProperties>(); + builder.AddChild<TextProperties>(); + builder.AddChild<CrossingAxis>(); + builder.AddChild<Crosses>(); + builder.AddChild<CrossesAt>(); + builder.AddChild<AutoLabeled>(); + builder.AddChild<LabelOffset>(); + builder.AddChild<BaseTimeUnit>(); + builder.AddChild<MajorUnit>(); + builder.AddChild<MajorTimeUnit>(); + builder.AddChild<MinorUnit>(); + builder.AddChild<MinorTimeUnit>(); + builder.AddChild<DateAxExtensionList>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { new CompositeParticle.Builder(ParticleType.Group, 1, 1) { new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.VaryColors), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PieChartSeries), 0, 0), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Scaling), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Delete), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisPosition), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MajorGridlines), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MinorGridlines), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Title), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.NumberingFormat), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MajorTickMark), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MinorTickMark), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TickLabelPosition), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartShapeProperties), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TextProperties), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CrossingAxis), 1, 1), + new CompositeParticle.Builder(ParticleType.Choice, 0, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Crosses), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CrossesAt), 1, 1) + } } }, - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Pie3DChartExtensionList), 0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AutoLabeled), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.LabelOffset), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BaseTimeUnit), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MajorUnit), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MajorTimeUnit), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MinorUnit), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MinorTimeUnit), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DateAxExtensionList), 0, 1) }; } /// <summary> - /// <para>VaryColors.</para> - /// <para>Represents the following element tag in the schema: c:varyColors.</para> + /// <para>Axis ID.</para> + /// <para>Represents the following element tag in the schema: c:axId.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public VaryColors? VaryColors + public AxisId? AxisId { - get => GetElement<VaryColors>(); + get => GetElement<AxisId>(); set => SetElement(value); } - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<Pie3DChart>(deep); - } - - /// <summary> - /// <para>Doughnut Charts.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:doughnutChart.</para> - /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>VaryColors <c:varyColors></description></item> - /// <item><description>PieChartSeries <c:ser></description></item> - /// <item><description>DataLabels <c:dLbls></description></item> - /// <item><description>FirstSliceAngle <c:firstSliceAng></description></item> - /// <item><description>HoleSize <c:holeSize></description></item> - /// <item><description>ExtensionList <c:extLst></description></item> - /// </list> - /// </remark> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "doughnutChart")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class DoughnutChart : OpenXmlCompositeElement - { /// <summary> - /// Initializes a new instance of the DoughnutChart class. + /// <para>Scaling.</para> + /// <para>Represents the following element tag in the schema: c:scaling.</para> /// </summary> - public DoughnutChart() : base() + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public Scaling? Scaling { + get => GetElement<Scaling>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the DoughnutChart class with the specified child elements. + /// <para>Delete.</para> + /// <para>Represents the following element tag in the schema: c:delete.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public DoughnutChart(IEnumerable<OpenXmlElement> childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public Delete? Delete { + get => GetElement<Delete>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the DoughnutChart class with the specified child elements. + /// <para>Axis Position.</para> + /// <para>Represents the following element tag in the schema: c:axPos.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public DoughnutChart(params OpenXmlElement[] childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public AxisPosition? AxisPosition { + get => GetElement<AxisPosition>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the DoughnutChart class from outer XML. + /// <para>Major Gridlines.</para> + /// <para>Represents the following element tag in the schema: c:majorGridlines.</para> /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public DoughnutChart(string outerXml) : base(outerXml) - { - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public MajorGridlines? MajorGridlines { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "doughnutChart"); - builder.AddChild<VaryColors>(); - builder.AddChild<PieChartSeries>(); - builder.AddChild<DataLabels>(); - builder.AddChild<FirstSliceAngle>(); - builder.AddChild<HoleSize>(); - builder.AddChild<ExtensionList>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new CompositeParticle.Builder(ParticleType.Group, 1, 1) - { - new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.VaryColors), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PieChartSeries), 0, 0), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1) - } - }, - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.FirstSliceAngle), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.HoleSize), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) - }; + get => GetElement<MajorGridlines>(); + set => SetElement(value); } /// <summary> - /// <para>VaryColors.</para> - /// <para>Represents the following element tag in the schema: c:varyColors.</para> + /// <para>Minor Gridlines.</para> + /// <para>Represents the following element tag in the schema: c:minorGridlines.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public VaryColors? VaryColors + public MinorGridlines? MinorGridlines { - get => GetElement<VaryColors>(); + get => GetElement<MinorGridlines>(); set => SetElement(value); } - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<DoughnutChart>(deep); - } - - /// <summary> - /// <para>Bar Charts.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:barChart.</para> - /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>BarDirection <c:barDir></description></item> - /// <item><description>BarGrouping <c:grouping></description></item> - /// <item><description>VaryColors <c:varyColors></description></item> - /// <item><description>BarChartSeries <c:ser></description></item> - /// <item><description>DataLabels <c:dLbls></description></item> - /// <item><description>GapWidth <c:gapWidth></description></item> - /// <item><description>Overlap <c:overlap></description></item> - /// <item><description>SeriesLines <c:serLines></description></item> - /// <item><description>AxisId <c:axId></description></item> - /// <item><description>BarChartExtensionList <c:extLst></description></item> - /// </list> - /// </remark> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "barChart")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class BarChart : OpenXmlCompositeElement - { /// <summary> - /// Initializes a new instance of the BarChart class. + /// <para>Title.</para> + /// <para>Represents the following element tag in the schema: c:title.</para> /// </summary> - public BarChart() : base() + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public Title? Title { + get => GetElement<Title>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the BarChart class with the specified child elements. + /// <para>Number Format.</para> + /// <para>Represents the following element tag in the schema: c:numFmt.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public BarChart(IEnumerable<OpenXmlElement> childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public NumberingFormat? NumberingFormat { + get => GetElement<NumberingFormat>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the BarChart class with the specified child elements. + /// <para>Major Tick Mark.</para> + /// <para>Represents the following element tag in the schema: c:majorTickMark.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public BarChart(params OpenXmlElement[] childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public MajorTickMark? MajorTickMark { + get => GetElement<MajorTickMark>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the BarChart class from outer XML. + /// <para>Minor Tick Mark.</para> + /// <para>Represents the following element tag in the schema: c:minorTickMark.</para> /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public BarChart(string outerXml) : base(outerXml) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public MinorTickMark? MinorTickMark { + get => GetElement<MinorTickMark>(); + set => SetElement(value); } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// <summary> + /// <para>Tick Label Position.</para> + /// <para>Represents the following element tag in the schema: c:tickLblPos.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public TickLabelPosition? TickLabelPosition { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "barChart"); - builder.AddChild<BarDirection>(); - builder.AddChild<BarGrouping>(); - builder.AddChild<VaryColors>(); - builder.AddChild<BarChartSeries>(); - builder.AddChild<DataLabels>(); - builder.AddChild<GapWidth>(); - builder.AddChild<Overlap>(); - builder.AddChild<SeriesLines>(); - builder.AddChild<AxisId>(); - builder.AddChild<BarChartExtensionList>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new CompositeParticle.Builder(ParticleType.Group, 1, 1) - { - new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BarDirection), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BarGrouping), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.VaryColors), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BarChartSeries), 0, 0), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1) - } - }, - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.GapWidth), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Overlap), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SeriesLines), 0, 0), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 2, 2), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BarChartExtensionList), 0, 1) - }; + get => GetElement<TickLabelPosition>(); + set => SetElement(value); } /// <summary> - /// <para>Bar Direction.</para> - /// <para>Represents the following element tag in the schema: c:barDir.</para> + /// <para>ChartShapeProperties.</para> + /// <para>Represents the following element tag in the schema: c:spPr.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public BarDirection? BarDirection + public ChartShapeProperties? ChartShapeProperties { - get => GetElement<BarDirection>(); + get => GetElement<ChartShapeProperties>(); set => SetElement(value); } /// <summary> - /// <para>Bar Grouping.</para> - /// <para>Represents the following element tag in the schema: c:grouping.</para> + /// <para>TextProperties.</para> + /// <para>Represents the following element tag in the schema: c:txPr.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public BarGrouping? BarGrouping + public TextProperties? TextProperties { - get => GetElement<BarGrouping>(); + get => GetElement<TextProperties>(); set => SetElement(value); } /// <summary> - /// <para>VaryColors.</para> - /// <para>Represents the following element tag in the schema: c:varyColors.</para> + /// <para>Crossing Axis ID.</para> + /// <para>Represents the following element tag in the schema: c:crossAx.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public VaryColors? VaryColors + public CrossingAxis? CrossingAxis { - get => GetElement<VaryColors>(); + get => GetElement<CrossingAxis>(); set => SetElement(value); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<BarChart>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<DateAxis>(deep); } /// <summary> - /// <para>3D Bar Charts.</para> + /// <para>Series Axis.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:bar3DChart.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:serAx.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>BarDirection <c:barDir></description></item> - /// <item><description>BarGrouping <c:grouping></description></item> - /// <item><description>VaryColors <c:varyColors></description></item> - /// <item><description>BarChartSeries <c:ser></description></item> - /// <item><description>DataLabels <c:dLbls></description></item> - /// <item><description>GapWidth <c:gapWidth></description></item> - /// <item><description>GapDepth <c:gapDepth></description></item> - /// <item><description>Shape <c:shape></description></item> /// <item><description>AxisId <c:axId></description></item> - /// <item><description>Bar3DChartExtensionList <c:extLst></description></item> + /// <item><description>Scaling <c:scaling></description></item> + /// <item><description>Delete <c:delete></description></item> + /// <item><description>AxisPosition <c:axPos></description></item> + /// <item><description>MajorGridlines <c:majorGridlines></description></item> + /// <item><description>MinorGridlines <c:minorGridlines></description></item> + /// <item><description>Title <c:title></description></item> + /// <item><description>NumberingFormat <c:numFmt></description></item> + /// <item><description>MajorTickMark <c:majorTickMark></description></item> + /// <item><description>MinorTickMark <c:minorTickMark></description></item> + /// <item><description>TickLabelPosition <c:tickLblPos></description></item> + /// <item><description>ChartShapeProperties <c:spPr></description></item> + /// <item><description>TextProperties <c:txPr></description></item> + /// <item><description>CrossingAxis <c:crossAx></description></item> + /// <item><description>Crosses <c:crosses></description></item> + /// <item><description>CrossesAt <c:crossesAt></description></item> + /// <item><description>TickLabelSkip <c:tickLblSkip></description></item> + /// <item><description>TickMarkSkip <c:tickMarkSkip></description></item> + /// <item><description>SerAxExtensionList <c:extLst></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "bar3DChart")] + [SchemaAttr(11, "serAx")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class Bar3DChart : OpenXmlCompositeElement + public partial class SeriesAxis : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the Bar3DChart class. + /// Initializes a new instance of the SeriesAxis class. /// </summary> - public Bar3DChart() : base() + public SeriesAxis() : base() { } /// <summary> - /// Initializes a new instance of the Bar3DChart class with the specified child elements. + /// Initializes a new instance of the SeriesAxis class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public Bar3DChart(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public SeriesAxis(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the Bar3DChart class with the specified child elements. + /// Initializes a new instance of the SeriesAxis class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public Bar3DChart(params OpenXmlElement[] childElements) : base(childElements) + public SeriesAxis(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the Bar3DChart class from outer XML. + /// Initializes a new instance of the SeriesAxis class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public Bar3DChart(string outerXml) : base(outerXml) + public SeriesAxis(string outerXml) : base(outerXml) { } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "bar3DChart"); - builder.AddChild<BarDirection>(); - builder.AddChild<BarGrouping>(); - builder.AddChild<VaryColors>(); - builder.AddChild<BarChartSeries>(); - builder.AddChild<DataLabels>(); - builder.AddChild<GapWidth>(); - builder.AddChild<GapDepth>(); - builder.AddChild<Shape>(); + builder.SetSchema(11, "serAx"); builder.AddChild<AxisId>(); - builder.AddChild<Bar3DChartExtensionList>(); + builder.AddChild<Scaling>(); + builder.AddChild<Delete>(); + builder.AddChild<AxisPosition>(); + builder.AddChild<MajorGridlines>(); + builder.AddChild<MinorGridlines>(); + builder.AddChild<Title>(); + builder.AddChild<NumberingFormat>(); + builder.AddChild<MajorTickMark>(); + builder.AddChild<MinorTickMark>(); + builder.AddChild<TickLabelPosition>(); + builder.AddChild<ChartShapeProperties>(); + builder.AddChild<TextProperties>(); + builder.AddChild<CrossingAxis>(); + builder.AddChild<Crosses>(); + builder.AddChild<CrossesAt>(); + builder.AddChild<TickLabelSkip>(); + builder.AddChild<TickMarkSkip>(); + builder.AddChild<SerAxExtensionList>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { new CompositeParticle.Builder(ParticleType.Group, 1, 1) { new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BarDirection), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BarGrouping), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.VaryColors), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BarChartSeries), 0, 0), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Scaling), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Delete), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisPosition), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MajorGridlines), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MinorGridlines), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Title), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.NumberingFormat), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MajorTickMark), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MinorTickMark), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TickLabelPosition), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartShapeProperties), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TextProperties), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CrossingAxis), 1, 1), + new CompositeParticle.Builder(ParticleType.Choice, 0, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Crosses), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CrossesAt), 1, 1) + } } }, - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.GapWidth), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.GapDepth), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Shape), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 2, 3), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Bar3DChartExtensionList), 0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TickLabelSkip), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TickMarkSkip), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SerAxExtensionList), 0, 1) }; } /// <summary> - /// <para>Bar Direction.</para> - /// <para>Represents the following element tag in the schema: c:barDir.</para> + /// <para>Axis ID.</para> + /// <para>Represents the following element tag in the schema: c:axId.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public BarDirection? BarDirection + public AxisId? AxisId { - get => GetElement<BarDirection>(); + get => GetElement<AxisId>(); set => SetElement(value); } /// <summary> - /// <para>Bar Grouping.</para> - /// <para>Represents the following element tag in the schema: c:grouping.</para> + /// <para>Scaling.</para> + /// <para>Represents the following element tag in the schema: c:scaling.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public BarGrouping? BarGrouping + public Scaling? Scaling { - get => GetElement<BarGrouping>(); + get => GetElement<Scaling>(); set => SetElement(value); } /// <summary> - /// <para>VaryColors.</para> - /// <para>Represents the following element tag in the schema: c:varyColors.</para> + /// <para>Delete.</para> + /// <para>Represents the following element tag in the schema: c:delete.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public VaryColors? VaryColors + public Delete? Delete { - get => GetElement<VaryColors>(); + get => GetElement<Delete>(); set => SetElement(value); } - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<Bar3DChart>(deep); - } - - /// <summary> - /// <para>Pie of Pie or Bar of Pie Charts.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:ofPieChart.</para> - /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>OfPieType <c:ofPieType></description></item> - /// <item><description>VaryColors <c:varyColors></description></item> - /// <item><description>PieChartSeries <c:ser></description></item> - /// <item><description>DataLabels <c:dLbls></description></item> - /// <item><description>GapWidth <c:gapWidth></description></item> - /// <item><description>SplitType <c:splitType></description></item> - /// <item><description>SplitPosition <c:splitPos></description></item> - /// <item><description>CustomSplit <c:custSplit></description></item> - /// <item><description>SecondPieSize <c:secondPieSize></description></item> - /// <item><description>SeriesLines <c:serLines></description></item> - /// <item><description>ExtensionList <c:extLst></description></item> - /// </list> - /// </remark> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "ofPieChart")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class OfPieChart : OpenXmlCompositeElement - { - /// <summary> - /// Initializes a new instance of the OfPieChart class. - /// </summary> - public OfPieChart() : base() - { - } - /// <summary> - /// Initializes a new instance of the OfPieChart class with the specified child elements. + /// <para>Axis Position.</para> + /// <para>Represents the following element tag in the schema: c:axPos.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public OfPieChart(IEnumerable<OpenXmlElement> childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public AxisPosition? AxisPosition { + get => GetElement<AxisPosition>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the OfPieChart class with the specified child elements. + /// <para>Major Gridlines.</para> + /// <para>Represents the following element tag in the schema: c:majorGridlines.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public OfPieChart(params OpenXmlElement[] childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public MajorGridlines? MajorGridlines { + get => GetElement<MajorGridlines>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the OfPieChart class from outer XML. - /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public OfPieChart(string outerXml) : base(outerXml) - { - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "ofPieChart"); - builder.AddChild<OfPieType>(); - builder.AddChild<VaryColors>(); - builder.AddChild<PieChartSeries>(); - builder.AddChild<DataLabels>(); - builder.AddChild<GapWidth>(); - builder.AddChild<SplitType>(); - builder.AddChild<SplitPosition>(); - builder.AddChild<CustomSplit>(); - builder.AddChild<SecondPieSize>(); - builder.AddChild<SeriesLines>(); - builder.AddChild<ExtensionList>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.OfPieType), 1, 1), - new CompositeParticle.Builder(ParticleType.Group, 1, 1) - { - new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.VaryColors), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PieChartSeries), 0, 0), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1) - } - }, - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.GapWidth), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SplitType), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SplitPosition), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CustomSplit), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SecondPieSize), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SeriesLines), 0, 0), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) - }; + /// <para>Minor Gridlines.</para> + /// <para>Represents the following element tag in the schema: c:minorGridlines.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public MinorGridlines? MinorGridlines + { + get => GetElement<MinorGridlines>(); + set => SetElement(value); } /// <summary> - /// <para>Pie of Pie or Bar of Pie Type.</para> - /// <para>Represents the following element tag in the schema: c:ofPieType.</para> + /// <para>Title.</para> + /// <para>Represents the following element tag in the schema: c:title.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public OfPieType? OfPieType + public Title? Title { - get => GetElement<OfPieType>(); + get => GetElement<Title>(); set => SetElement(value); } /// <summary> - /// <para>VaryColors.</para> - /// <para>Represents the following element tag in the schema: c:varyColors.</para> + /// <para>Number Format.</para> + /// <para>Represents the following element tag in the schema: c:numFmt.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public VaryColors? VaryColors + public NumberingFormat? NumberingFormat { - get => GetElement<VaryColors>(); + get => GetElement<NumberingFormat>(); set => SetElement(value); } - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<OfPieChart>(deep); - } - - /// <summary> - /// <para>Surface Charts.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:surfaceChart.</para> - /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>Wireframe <c:wireframe></description></item> - /// <item><description>SurfaceChartSeries <c:ser></description></item> - /// <item><description>BandFormats <c:bandFmts></description></item> - /// <item><description>AxisId <c:axId></description></item> - /// <item><description>SurfaceChartExtensionList <c:extLst></description></item> - /// </list> - /// </remark> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "surfaceChart")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class SurfaceChart : OpenXmlCompositeElement - { /// <summary> - /// Initializes a new instance of the SurfaceChart class. + /// <para>Major Tick Mark.</para> + /// <para>Represents the following element tag in the schema: c:majorTickMark.</para> /// </summary> - public SurfaceChart() : base() + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public MajorTickMark? MajorTickMark { + get => GetElement<MajorTickMark>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the SurfaceChart class with the specified child elements. + /// <para>Minor Tick Mark.</para> + /// <para>Represents the following element tag in the schema: c:minorTickMark.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public SurfaceChart(IEnumerable<OpenXmlElement> childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public MinorTickMark? MinorTickMark { + get => GetElement<MinorTickMark>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the SurfaceChart class with the specified child elements. + /// <para>Tick Label Position.</para> + /// <para>Represents the following element tag in the schema: c:tickLblPos.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public SurfaceChart(params OpenXmlElement[] childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public TickLabelPosition? TickLabelPosition { + get => GetElement<TickLabelPosition>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the SurfaceChart class from outer XML. + /// <para>ChartShapeProperties.</para> + /// <para>Represents the following element tag in the schema: c:spPr.</para> /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public SurfaceChart(string outerXml) : base(outerXml) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public ChartShapeProperties? ChartShapeProperties { + get => GetElement<ChartShapeProperties>(); + set => SetElement(value); } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// <summary> + /// <para>TextProperties.</para> + /// <para>Represents the following element tag in the schema: c:txPr.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public TextProperties? TextProperties { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "surfaceChart"); - builder.AddChild<Wireframe>(); - builder.AddChild<SurfaceChartSeries>(); - builder.AddChild<BandFormats>(); - builder.AddChild<AxisId>(); - builder.AddChild<SurfaceChartExtensionList>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new CompositeParticle.Builder(ParticleType.Group, 1, 1) - { - new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Wireframe), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SurfaceChartSeries), 0, 0), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BandFormats), 0, 1) - } - }, - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 2, 3), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SurfaceChartExtensionList), 0, 1) - }; + get => GetElement<TextProperties>(); + set => SetElement(value); } /// <summary> - /// <para>Wireframe.</para> - /// <para>Represents the following element tag in the schema: c:wireframe.</para> + /// <para>Crossing Axis ID.</para> + /// <para>Represents the following element tag in the schema: c:crossAx.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public Wireframe? Wireframe + public CrossingAxis? CrossingAxis { - get => GetElement<Wireframe>(); + get => GetElement<CrossingAxis>(); set => SetElement(value); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<SurfaceChart>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<SeriesAxis>(deep); } /// <summary> - /// <para>3D Surface Charts.</para> + /// <para>Data Table.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:surface3DChart.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:dTable.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>Wireframe <c:wireframe></description></item> - /// <item><description>VaryColors <c:varyColors></description></item> - /// <item><description>SurfaceChartSeries <c:ser></description></item> - /// <item><description>BandFormats <c:bandFmts></description></item> - /// <item><description>AxisId <c:axId></description></item> - /// <item><description>Surface3DChartExtensionList <c:extLst></description></item> + /// <item><description>ShowHorizontalBorder <c:showHorzBorder></description></item> + /// <item><description>ShowVerticalBorder <c:showVertBorder></description></item> + /// <item><description>ShowOutlineBorder <c:showOutline></description></item> + /// <item><description>ShowKeys <c:showKeys></description></item> + /// <item><description>ChartShapeProperties <c:spPr></description></item> + /// <item><description>TextProperties <c:txPr></description></item> + /// <item><description>ExtensionList <c:extLst></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "surface3DChart")] + [SchemaAttr(11, "dTable")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class Surface3DChart : OpenXmlCompositeElement + public partial class DataTable : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the Surface3DChart class. + /// Initializes a new instance of the DataTable class. /// </summary> - public Surface3DChart() : base() + public DataTable() : base() { } /// <summary> - /// Initializes a new instance of the Surface3DChart class with the specified child elements. + /// Initializes a new instance of the DataTable class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public Surface3DChart(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public DataTable(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the Surface3DChart class with the specified child elements. + /// Initializes a new instance of the DataTable class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public Surface3DChart(params OpenXmlElement[] childElements) : base(childElements) + public DataTable(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the Surface3DChart class from outer XML. + /// Initializes a new instance of the DataTable class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public Surface3DChart(string outerXml) : base(outerXml) + public DataTable(string outerXml) : base(outerXml) { } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "surface3DChart"); - builder.AddChild<Wireframe>(); - builder.AddChild<VaryColors>(); - builder.AddChild<SurfaceChartSeries>(); - builder.AddChild<BandFormats>(); - builder.AddChild<AxisId>(); - builder.AddChild<Surface3DChartExtensionList>(); + builder.SetSchema(11, "dTable"); + builder.AddChild<ShowHorizontalBorder>(); + builder.AddChild<ShowVerticalBorder>(); + builder.AddChild<ShowOutlineBorder>(); + builder.AddChild<ShowKeys>(); + builder.AddChild<ChartShapeProperties>(); + builder.AddChild<TextProperties>(); + builder.AddChild<ExtensionList>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Wireframe), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.VaryColors), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SurfaceChartSeries), 0, 0), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BandFormats), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 3, 3), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Surface3DChartExtensionList), 0, 1) - }; - } - - /// <summary> - /// <para>Wireframe.</para> - /// <para>Represents the following element tag in the schema: c:wireframe.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Wireframe? Wireframe - { - get => GetElement<Wireframe>(); - set => SetElement(value); - } - - /// <summary> - /// <para>VaryColors.</para> - /// <para>Represents the following element tag in the schema: c:varyColors.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public VaryColors? VaryColors - { - get => GetElement<VaryColors>(); - set => SetElement(value); - } - - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<Surface3DChart>(deep); - } - - /// <summary> - /// <para>Bubble Charts.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:bubbleChart.</para> - /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>VaryColors <c:varyColors></description></item> - /// <item><description>BubbleChartSeries <c:ser></description></item> - /// <item><description>DataLabels <c:dLbls></description></item> - /// <item><description>Bubble3D <c:bubble3D></description></item> - /// <item><description>BubbleScale <c:bubbleScale></description></item> - /// <item><description>ShowNegativeBubbles <c:showNegBubbles></description></item> - /// <item><description>SizeRepresents <c:sizeRepresents></description></item> - /// <item><description>AxisId <c:axId></description></item> - /// <item><description>BubbleChartExtensionList <c:extLst></description></item> - /// </list> - /// </remark> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "bubbleChart")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class BubbleChart : OpenXmlCompositeElement - { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShowHorizontalBorder), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShowVerticalBorder), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShowOutlineBorder), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShowKeys), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartShapeProperties), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TextProperties), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) + }; + } + /// <summary> - /// Initializes a new instance of the BubbleChart class. + /// <para>Show Horizontal Border.</para> + /// <para>Represents the following element tag in the schema: c:showHorzBorder.</para> /// </summary> - public BubbleChart() : base() + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public ShowHorizontalBorder? ShowHorizontalBorder { + get => GetElement<ShowHorizontalBorder>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the BubbleChart class with the specified child elements. + /// <para>Show Vertical Border.</para> + /// <para>Represents the following element tag in the schema: c:showVertBorder.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public BubbleChart(IEnumerable<OpenXmlElement> childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public ShowVerticalBorder? ShowVerticalBorder { + get => GetElement<ShowVerticalBorder>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the BubbleChart class with the specified child elements. + /// <para>Show Outline Border.</para> + /// <para>Represents the following element tag in the schema: c:showOutline.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public BubbleChart(params OpenXmlElement[] childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public ShowOutlineBorder? ShowOutlineBorder { + get => GetElement<ShowOutlineBorder>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the BubbleChart class from outer XML. + /// <para>Show Legend Keys.</para> + /// <para>Represents the following element tag in the schema: c:showKeys.</para> /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public BubbleChart(string outerXml) : base(outerXml) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public ShowKeys? ShowKeys { + get => GetElement<ShowKeys>(); + set => SetElement(value); } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// <summary> + /// <para>ChartShapeProperties.</para> + /// <para>Represents the following element tag in the schema: c:spPr.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public ChartShapeProperties? ChartShapeProperties { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "bubbleChart"); - builder.AddChild<VaryColors>(); - builder.AddChild<BubbleChartSeries>(); - builder.AddChild<DataLabels>(); - builder.AddChild<Bubble3D>(); - builder.AddChild<BubbleScale>(); - builder.AddChild<ShowNegativeBubbles>(); - builder.AddChild<SizeRepresents>(); - builder.AddChild<AxisId>(); - builder.AddChild<BubbleChartExtensionList>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.VaryColors), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BubbleChartSeries), 0, 0), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Bubble3D), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BubbleScale), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShowNegativeBubbles), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SizeRepresents), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 2, 2), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BubbleChartExtensionList), 0, 1) - }; + get => GetElement<ChartShapeProperties>(); + set => SetElement(value); } /// <summary> - /// <para>VaryColors.</para> - /// <para>Represents the following element tag in the schema: c:varyColors.</para> + /// <para>Text Properties.</para> + /// <para>Represents the following element tag in the schema: c:txPr.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public VaryColors? VaryColors + public TextProperties? TextProperties { - get => GetElement<VaryColors>(); + get => GetElement<TextProperties>(); + set => SetElement(value); + } + + /// <summary> + /// <para>Chart Extensibility.</para> + /// <para>Represents the following element tag in the schema: c:extLst.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public ExtensionList? ExtensionList + { + get => GetElement<ExtensionList>(); set => SetElement(value); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<BubbleChart>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<DataTable>(deep); } /// <summary> - /// <para>Value Axis.</para> + /// <para>First Slice Angle.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:valAx.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:firstSliceAng.</para> /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>AxisId <c:axId></description></item> - /// <item><description>Scaling <c:scaling></description></item> - /// <item><description>Delete <c:delete></description></item> - /// <item><description>AxisPosition <c:axPos></description></item> - /// <item><description>MajorGridlines <c:majorGridlines></description></item> - /// <item><description>MinorGridlines <c:minorGridlines></description></item> - /// <item><description>Title <c:title></description></item> - /// <item><description>NumberingFormat <c:numFmt></description></item> - /// <item><description>MajorTickMark <c:majorTickMark></description></item> - /// <item><description>MinorTickMark <c:minorTickMark></description></item> - /// <item><description>TickLabelPosition <c:tickLblPos></description></item> - /// <item><description>ChartShapeProperties <c:spPr></description></item> - /// <item><description>TextProperties <c:txPr></description></item> - /// <item><description>CrossingAxis <c:crossAx></description></item> - /// <item><description>Crosses <c:crosses></description></item> - /// <item><description>CrossesAt <c:crossesAt></description></item> - /// <item><description>CrossBetween <c:crossBetween></description></item> - /// <item><description>MajorUnit <c:majorUnit></description></item> - /// <item><description>MinorUnit <c:minorUnit></description></item> - /// <item><description>DisplayUnits <c:dispUnits></description></item> - /// <item><description>ValAxExtensionList <c:extLst></description></item> - /// </list> - /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "valAx")] + [SchemaAttr(11, "firstSliceAng")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class ValueAxis : OpenXmlCompositeElement + public partial class FirstSliceAngle : OpenXmlLeafElement { /// <summary> - /// Initializes a new instance of the ValueAxis class. + /// Initializes a new instance of the FirstSliceAngle class. /// </summary> - public ValueAxis() : base() + public FirstSliceAngle() : base() { } /// <summary> - /// Initializes a new instance of the ValueAxis class with the specified child elements. + /// <para>First Slice Angle Value</para> + /// <para>Represents the following attribute in the schema: val</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public ValueAxis(IEnumerable<OpenXmlElement> childElements) : base(childElements) - { - } - /// <summary> - /// Initializes a new instance of the ValueAxis class with the specified child elements. - /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public ValueAxis(params OpenXmlElement[] childElements) : base(childElements) - { - } +#pragma warning disable CS0618 // Type or member is obsolete - /// <summary> - /// Initializes a new instance of the ValueAxis class from outer XML. - /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public ValueAxis(string outerXml) : base(outerXml) + [SchemaAttr(0, "val")] +#pragma warning restore CS0618 // Type or member is obsolete + + public UInt16Value? Val { + get => GetAttribute<UInt16Value>(); + set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "valAx"); - builder.AddChild<AxisId>(); - builder.AddChild<Scaling>(); - builder.AddChild<Delete>(); - builder.AddChild<AxisPosition>(); - builder.AddChild<MajorGridlines>(); - builder.AddChild<MinorGridlines>(); - builder.AddChild<Title>(); - builder.AddChild<NumberingFormat>(); - builder.AddChild<MajorTickMark>(); - builder.AddChild<MinorTickMark>(); - builder.AddChild<TickLabelPosition>(); - builder.AddChild<ChartShapeProperties>(); - builder.AddChild<TextProperties>(); - builder.AddChild<CrossingAxis>(); - builder.AddChild<Crosses>(); - builder.AddChild<CrossesAt>(); - builder.AddChild<CrossBetween>(); - builder.AddChild<MajorUnit>(); - builder.AddChild<MinorUnit>(); - builder.AddChild<DisplayUnits>(); - builder.AddChild<ValAxExtensionList>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new CompositeParticle.Builder(ParticleType.Group, 1, 1) - { - new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Scaling), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Delete), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisPosition), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MajorGridlines), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MinorGridlines), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Title), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.NumberingFormat), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MajorTickMark), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MinorTickMark), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TickLabelPosition), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartShapeProperties), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TextProperties), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CrossingAxis), 1, 1), - new CompositeParticle.Builder(ParticleType.Choice, 0, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Crosses), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CrossesAt), 1, 1) - } - } - }, - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CrossBetween), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MajorUnit), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MinorUnit), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DisplayUnits), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ValAxExtensionList), 0, 1) - }; + builder.SetSchema(11, "firstSliceAng"); + builder.AddElement<FirstSliceAngle>() +.AddAttribute(0, "val", a => a.Val, aBuilder => +{ +aBuilder.AddValidator(new NumberValidator() { MinInclusive = (0L), MaxInclusive = (360L) }); +}); } - /// <summary> - /// <para>Axis ID.</para> - /// <para>Represents the following element tag in the schema: c:axId.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public AxisId? AxisId - { - get => GetElement<AxisId>(); - set => SetElement(value); - } + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<FirstSliceAngle>(deep); + } - /// <summary> - /// <para>Scaling.</para> - /// <para>Represents the following element tag in the schema: c:scaling.</para> + /// <summary> + /// <para>Hole Size.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:holeSize.</para> + /// </summary> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "holeSize")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class HoleSize : OpenXmlLeafElement + { + /// <summary> + /// Initializes a new instance of the HoleSize class. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Scaling? Scaling + public HoleSize() : base() { - get => GetElement<Scaling>(); - set => SetElement(value); } /// <summary> - /// <para>Delete.</para> - /// <para>Represents the following element tag in the schema: c:delete.</para> + /// <para>Hole Size Value</para> + /// <para>Represents the following attribute in the schema: val</para> /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Delete? Delete + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "val")] +#pragma warning restore CS0618 // Type or member is obsolete + + public ByteValue? Val { - get => GetElement<Delete>(); - set => SetElement(value); + get => GetAttribute<ByteValue>(); + set => SetAttribute(value); } - /// <summary> - /// <para>Axis Position.</para> - /// <para>Represents the following element tag in the schema: c:axPos.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public AxisPosition? AxisPosition + internal override void ConfigureMetadata(ElementMetadata.Builder builder) { - get => GetElement<AxisPosition>(); - set => SetElement(value); + base.ConfigureMetadata(builder); + builder.SetSchema(11, "holeSize"); + builder.AddElement<HoleSize>() +.AddAttribute(0, "val", a => a.Val, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new NumberValidator() { MinInclusive = (1L), MaxInclusive = (90L) }); +}); } + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<HoleSize>(deep); + } + + /// <summary> + /// <para>String Point.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:pt.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>NumericValue <c:v></description></item> + /// </list> + /// </remark> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "pt")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class StringPoint : OpenXmlCompositeElement + { /// <summary> - /// <para>Major Gridlines.</para> - /// <para>Represents the following element tag in the schema: c:majorGridlines.</para> + /// Initializes a new instance of the StringPoint class. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public MajorGridlines? MajorGridlines + public StringPoint() : base() { - get => GetElement<MajorGridlines>(); - set => SetElement(value); } /// <summary> - /// <para>Minor Gridlines.</para> - /// <para>Represents the following element tag in the schema: c:minorGridlines.</para> + /// Initializes a new instance of the StringPoint class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public MinorGridlines? MinorGridlines + /// <param name="childElements">Specifies the child elements.</param> + public StringPoint(IEnumerable<OpenXmlElement> childElements) : base(childElements) { - get => GetElement<MinorGridlines>(); - set => SetElement(value); } /// <summary> - /// <para>Title.</para> - /// <para>Represents the following element tag in the schema: c:title.</para> + /// Initializes a new instance of the StringPoint class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Title? Title + /// <param name="childElements">Specifies the child elements.</param> + public StringPoint(params OpenXmlElement[] childElements) : base(childElements) { - get => GetElement<Title>(); - set => SetElement(value); } /// <summary> - /// <para>Number Format.</para> - /// <para>Represents the following element tag in the schema: c:numFmt.</para> + /// Initializes a new instance of the StringPoint class from outer XML. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public NumberingFormat? NumberingFormat + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public StringPoint(string outerXml) : base(outerXml) { - get => GetElement<NumberingFormat>(); - set => SetElement(value); } /// <summary> - /// <para>Major Tick Mark.</para> - /// <para>Represents the following element tag in the schema: c:majorTickMark.</para> + /// <para>Index</para> + /// <para>Represents the following attribute in the schema: idx</para> /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public MajorTickMark? MajorTickMark + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "idx")] +#pragma warning restore CS0618 // Type or member is obsolete + + public UInt32Value? Index { - get => GetElement<MajorTickMark>(); - set => SetElement(value); + get => GetAttribute<UInt32Value>(); + set => SetAttribute(value); } - /// <summary> - /// <para>Minor Tick Mark.</para> - /// <para>Represents the following element tag in the schema: c:minorTickMark.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public MinorTickMark? MinorTickMark + internal override void ConfigureMetadata(ElementMetadata.Builder builder) { - get => GetElement<MinorTickMark>(); - set => SetElement(value); + base.ConfigureMetadata(builder); + builder.SetSchema(11, "pt"); + builder.AddChild<NumericValue>(); + builder.AddElement<StringPoint>() +.AddAttribute(0, "idx", a => a.Index, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.NumericValue), 1, 1) + }; + builder.AddConstraint(new AttributeValueRangeConstraint(0 /*:idx*/, true, 0, true, 2147483647, true)); } /// <summary> - /// <para>Tick Label Position.</para> - /// <para>Represents the following element tag in the schema: c:tickLblPos.</para> + /// <para>Text Value.</para> + /// <para>Represents the following element tag in the schema: c:v.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public TickLabelPosition? TickLabelPosition + public NumericValue? NumericValue { - get => GetElement<TickLabelPosition>(); + get => GetElement<NumericValue>(); set => SetElement(value); } + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<StringPoint>(deep); + } + + /// <summary> + /// <para>Thickness.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:thickness.</para> + /// </summary> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "thickness")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class Thickness : OpenXmlLeafElement + { /// <summary> - /// <para>ChartShapeProperties.</para> - /// <para>Represents the following element tag in the schema: c:spPr.</para> + /// Initializes a new instance of the Thickness class. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public ChartShapeProperties? ChartShapeProperties + public Thickness() : base() { - get => GetElement<ChartShapeProperties>(); - set => SetElement(value); } /// <summary> - /// <para>TextProperties.</para> - /// <para>Represents the following element tag in the schema: c:txPr.</para> + /// <para>val</para> + /// <para>Represents the following attribute in the schema: val</para> /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public TextProperties? TextProperties + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "val")] +#pragma warning restore CS0618 // Type or member is obsolete + + public ByteValue? Val { - get => GetElement<TextProperties>(); - set => SetElement(value); + get => GetAttribute<ByteValue>(); + set => SetAttribute(value); } - /// <summary> - /// <para>Crossing Axis ID.</para> - /// <para>Represents the following element tag in the schema: c:crossAx.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public CrossingAxis? CrossingAxis + internal override void ConfigureMetadata(ElementMetadata.Builder builder) { - get => GetElement<CrossingAxis>(); - set => SetElement(value); + base.ConfigureMetadata(builder); + builder.SetSchema(11, "thickness"); + builder.AddElement<Thickness>() +.AddAttribute(0, "val", a => a.Val, aBuilder => +{ +aBuilder.AddValidator(new NumberValidator() { MinInclusive = (0L), MaxInclusive = (100L) }); +}); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<ValueAxis>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<Thickness>(deep); } - - /// <summary> - /// <para>Category Axis Data.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:catAx.</para> - /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>AxisId <c:axId></description></item> - /// <item><description>Scaling <c:scaling></description></item> - /// <item><description>Delete <c:delete></description></item> - /// <item><description>AxisPosition <c:axPos></description></item> - /// <item><description>MajorGridlines <c:majorGridlines></description></item> - /// <item><description>MinorGridlines <c:minorGridlines></description></item> - /// <item><description>Title <c:title></description></item> - /// <item><description>NumberingFormat <c:numFmt></description></item> - /// <item><description>MajorTickMark <c:majorTickMark></description></item> - /// <item><description>MinorTickMark <c:minorTickMark></description></item> - /// <item><description>TickLabelPosition <c:tickLblPos></description></item> - /// <item><description>ChartShapeProperties <c:spPr></description></item> - /// <item><description>TextProperties <c:txPr></description></item> - /// <item><description>CrossingAxis <c:crossAx></description></item> - /// <item><description>Crosses <c:crosses></description></item> - /// <item><description>CrossesAt <c:crossesAt></description></item> - /// <item><description>AutoLabeled <c:auto></description></item> - /// <item><description>LabelAlignment <c:lblAlgn></description></item> - /// <item><description>LabelOffset <c:lblOffset></description></item> - /// <item><description>TickLabelSkip <c:tickLblSkip></description></item> - /// <item><description>TickMarkSkip <c:tickMarkSkip></description></item> - /// <item><description>NoMultiLevelLabels <c:noMultiLvlLbl></description></item> - /// <item><description>CatAxExtensionList <c:extLst></description></item> + + /// <summary> + /// <para>Defines the StockChartExtension Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredLineSeriesExtension <c15:filteredLineSeries></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "catAx")] + [SchemaAttr(11, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class CategoryAxis : OpenXmlCompositeElement + public partial class StockChartExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the CategoryAxis class. + /// Initializes a new instance of the StockChartExtension class. /// </summary> - public CategoryAxis() : base() + public StockChartExtension() : base() { } /// <summary> - /// Initializes a new instance of the CategoryAxis class with the specified child elements. + /// Initializes a new instance of the StockChartExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public CategoryAxis(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public StockChartExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the CategoryAxis class with the specified child elements. + /// Initializes a new instance of the StockChartExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public CategoryAxis(params OpenXmlElement[] childElements) : base(childElements) + public StockChartExtension(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the CategoryAxis class from outer XML. + /// Initializes a new instance of the StockChartExtension class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public CategoryAxis(string outerXml) : base(outerXml) + public StockChartExtension(string outerXml) : base(outerXml) + { + } + + /// <summary> + /// <para>URI</para> + /// <para>Represents the following attribute in the schema: uri</para> + /// </summary> + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "uri")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Uri { + get => GetAttribute<StringValue>(); + set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "catAx"); - builder.AddChild<AxisId>(); - builder.AddChild<Scaling>(); - builder.AddChild<Delete>(); - builder.AddChild<AxisPosition>(); - builder.AddChild<MajorGridlines>(); - builder.AddChild<MinorGridlines>(); - builder.AddChild<Title>(); - builder.AddChild<NumberingFormat>(); - builder.AddChild<MajorTickMark>(); - builder.AddChild<MinorTickMark>(); - builder.AddChild<TickLabelPosition>(); - builder.AddChild<ChartShapeProperties>(); - builder.AddChild<TextProperties>(); - builder.AddChild<CrossingAxis>(); - builder.AddChild<Crosses>(); - builder.AddChild<CrossesAt>(); - builder.AddChild<AutoLabeled>(); - builder.AddChild<LabelAlignment>(); - builder.AddChild<LabelOffset>(); - builder.AddChild<TickLabelSkip>(); - builder.AddChild<TickMarkSkip>(); - builder.AddChild<NoMultiLevelLabels>(); - builder.AddChild<CatAxExtensionList>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + builder.SetSchema(11, "ext"); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredLineSeriesExtension>(); + builder.AddElement<StockChartExtension>() +.AddAttribute(0, "uri", a => a.Uri, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) { - new CompositeParticle.Builder(ParticleType.Group, 1, 1) - { - new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Scaling), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Delete), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisPosition), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MajorGridlines), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MinorGridlines), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Title), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.NumberingFormat), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MajorTickMark), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MinorTickMark), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TickLabelPosition), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartShapeProperties), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TextProperties), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CrossingAxis), 1, 1), - new CompositeParticle.Builder(ParticleType.Choice, 0, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Crosses), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CrossesAt), 1, 1) - } - } - }, - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AutoLabeled), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.LabelAlignment), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.LabelOffset), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TickLabelSkip), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TickMarkSkip), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.NoMultiLevelLabels), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CatAxExtensionList), 0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredLineSeriesExtension), 1, 1, version: FileFormatVersions.Office2013), + new AnyParticle(0, 1) }; } - /// <summary> - /// <para>Axis ID.</para> - /// <para>Represents the following element tag in the schema: c:axId.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public AxisId? AxisId - { - get => GetElement<AxisId>(); - set => SetElement(value); - } + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<StockChartExtension>(deep); + } + /// <summary> + /// <para>Defines the PieChartExtension Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredPieSeries <c15:filteredPieSeries></description></item> + /// </list> + /// </remark> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "ext")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class PieChartExtension : OpenXmlCompositeElement + { /// <summary> - /// <para>Scaling.</para> - /// <para>Represents the following element tag in the schema: c:scaling.</para> + /// Initializes a new instance of the PieChartExtension class. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Scaling? Scaling + public PieChartExtension() : base() { - get => GetElement<Scaling>(); - set => SetElement(value); } /// <summary> - /// <para>Delete.</para> - /// <para>Represents the following element tag in the schema: c:delete.</para> + /// Initializes a new instance of the PieChartExtension class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Delete? Delete + /// <param name="childElements">Specifies the child elements.</param> + public PieChartExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { - get => GetElement<Delete>(); - set => SetElement(value); } /// <summary> - /// <para>Axis Position.</para> - /// <para>Represents the following element tag in the schema: c:axPos.</para> + /// Initializes a new instance of the PieChartExtension class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public AxisPosition? AxisPosition + /// <param name="childElements">Specifies the child elements.</param> + public PieChartExtension(params OpenXmlElement[] childElements) : base(childElements) { - get => GetElement<AxisPosition>(); - set => SetElement(value); } /// <summary> - /// <para>Major Gridlines.</para> - /// <para>Represents the following element tag in the schema: c:majorGridlines.</para> + /// Initializes a new instance of the PieChartExtension class from outer XML. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public MajorGridlines? MajorGridlines + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public PieChartExtension(string outerXml) : base(outerXml) { - get => GetElement<MajorGridlines>(); - set => SetElement(value); } /// <summary> - /// <para>Minor Gridlines.</para> - /// <para>Represents the following element tag in the schema: c:minorGridlines.</para> + /// <para>URI</para> + /// <para>Represents the following attribute in the schema: uri</para> /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public MinorGridlines? MinorGridlines - { - get => GetElement<MinorGridlines>(); - set => SetElement(value); - } - /// <summary> - /// <para>Title.</para> - /// <para>Represents the following element tag in the schema: c:title.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Title? Title +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "uri")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Uri { - get => GetElement<Title>(); - set => SetElement(value); + get => GetAttribute<StringValue>(); + set => SetAttribute(value); } - /// <summary> - /// <para>Number Format.</para> - /// <para>Represents the following element tag in the schema: c:numFmt.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public NumberingFormat? NumberingFormat + internal override void ConfigureMetadata(ElementMetadata.Builder builder) { - get => GetElement<NumberingFormat>(); - set => SetElement(value); + base.ConfigureMetadata(builder); + builder.SetSchema(11, "ext"); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredPieSeries>(); + builder.AddElement<PieChartExtension>() +.AddAttribute(0, "uri", a => a.Uri, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredPieSeries), 1, 1, version: FileFormatVersions.Office2013), + new AnyParticle(0, 1) + }; } + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<PieChartExtension>(deep); + } + + /// <summary> + /// <para>Defines the Pie3DChartExtension Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredPieSeries <c15:filteredPieSeries></description></item> + /// </list> + /// </remark> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "ext")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class Pie3DChartExtension : OpenXmlCompositeElement + { /// <summary> - /// <para>Major Tick Mark.</para> - /// <para>Represents the following element tag in the schema: c:majorTickMark.</para> + /// Initializes a new instance of the Pie3DChartExtension class. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public MajorTickMark? MajorTickMark + public Pie3DChartExtension() : base() { - get => GetElement<MajorTickMark>(); - set => SetElement(value); } /// <summary> - /// <para>Minor Tick Mark.</para> - /// <para>Represents the following element tag in the schema: c:minorTickMark.</para> + /// Initializes a new instance of the Pie3DChartExtension class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public MinorTickMark? MinorTickMark + /// <param name="childElements">Specifies the child elements.</param> + public Pie3DChartExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { - get => GetElement<MinorTickMark>(); - set => SetElement(value); } /// <summary> - /// <para>Tick Label Position.</para> - /// <para>Represents the following element tag in the schema: c:tickLblPos.</para> + /// Initializes a new instance of the Pie3DChartExtension class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public TickLabelPosition? TickLabelPosition + /// <param name="childElements">Specifies the child elements.</param> + public Pie3DChartExtension(params OpenXmlElement[] childElements) : base(childElements) { - get => GetElement<TickLabelPosition>(); - set => SetElement(value); } /// <summary> - /// <para>ChartShapeProperties.</para> - /// <para>Represents the following element tag in the schema: c:spPr.</para> + /// Initializes a new instance of the Pie3DChartExtension class from outer XML. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public ChartShapeProperties? ChartShapeProperties + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public Pie3DChartExtension(string outerXml) : base(outerXml) { - get => GetElement<ChartShapeProperties>(); - set => SetElement(value); } /// <summary> - /// <para>TextProperties.</para> - /// <para>Represents the following element tag in the schema: c:txPr.</para> + /// <para>URI</para> + /// <para>Represents the following attribute in the schema: uri</para> /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public TextProperties? TextProperties + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "uri")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Uri { - get => GetElement<TextProperties>(); - set => SetElement(value); + get => GetAttribute<StringValue>(); + set => SetAttribute(value); } - /// <summary> - /// <para>Crossing Axis ID.</para> - /// <para>Represents the following element tag in the schema: c:crossAx.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public CrossingAxis? CrossingAxis + internal override void ConfigureMetadata(ElementMetadata.Builder builder) { - get => GetElement<CrossingAxis>(); - set => SetElement(value); + base.ConfigureMetadata(builder); + builder.SetSchema(11, "ext"); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredPieSeries>(); + builder.AddElement<Pie3DChartExtension>() +.AddAttribute(0, "uri", a => a.Uri, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredPieSeries), 1, 1, version: FileFormatVersions.Office2013), + new AnyParticle(0, 1) + }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<CategoryAxis>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<Pie3DChartExtension>(deep); } /// <summary> - /// <para>Date Axis.</para> + /// <para>Defines the NumRefExtension Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:dateAx.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>AxisId <c:axId></description></item> - /// <item><description>Scaling <c:scaling></description></item> - /// <item><description>Delete <c:delete></description></item> - /// <item><description>AxisPosition <c:axPos></description></item> - /// <item><description>MajorGridlines <c:majorGridlines></description></item> - /// <item><description>MinorGridlines <c:minorGridlines></description></item> - /// <item><description>Title <c:title></description></item> - /// <item><description>NumberingFormat <c:numFmt></description></item> - /// <item><description>MajorTickMark <c:majorTickMark></description></item> - /// <item><description>MinorTickMark <c:minorTickMark></description></item> - /// <item><description>TickLabelPosition <c:tickLblPos></description></item> - /// <item><description>ChartShapeProperties <c:spPr></description></item> - /// <item><description>TextProperties <c:txPr></description></item> - /// <item><description>CrossingAxis <c:crossAx></description></item> - /// <item><description>Crosses <c:crosses></description></item> - /// <item><description>CrossesAt <c:crossesAt></description></item> - /// <item><description>AutoLabeled <c:auto></description></item> - /// <item><description>LabelOffset <c:lblOffset></description></item> - /// <item><description>BaseTimeUnit <c:baseTimeUnit></description></item> - /// <item><description>MajorUnit <c:majorUnit></description></item> - /// <item><description>MajorTimeUnit <c:majorTimeUnit></description></item> - /// <item><description>MinorUnit <c:minorUnit></description></item> - /// <item><description>MinorTimeUnit <c:minorTimeUnit></description></item> - /// <item><description>DateAxExtensionList <c:extLst></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FullReference <c15:fullRef></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.LevelReference <c15:levelRef></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FormulaReference <c15:formulaRef></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "dateAx")] + [SchemaAttr(11, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class DateAxis : OpenXmlCompositeElement + public partial class NumRefExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the DateAxis class. + /// Initializes a new instance of the NumRefExtension class. /// </summary> - public DateAxis() : base() + public NumRefExtension() : base() { } /// <summary> - /// Initializes a new instance of the DateAxis class with the specified child elements. + /// Initializes a new instance of the NumRefExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public DateAxis(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public NumRefExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the DateAxis class with the specified child elements. + /// Initializes a new instance of the NumRefExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public DateAxis(params OpenXmlElement[] childElements) : base(childElements) + public NumRefExtension(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the DateAxis class from outer XML. + /// Initializes a new instance of the NumRefExtension class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public DateAxis(string outerXml) : base(outerXml) - { - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + public NumRefExtension(string outerXml) : base(outerXml) { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "dateAx"); - builder.AddChild<AxisId>(); - builder.AddChild<Scaling>(); - builder.AddChild<Delete>(); - builder.AddChild<AxisPosition>(); - builder.AddChild<MajorGridlines>(); - builder.AddChild<MinorGridlines>(); - builder.AddChild<Title>(); - builder.AddChild<NumberingFormat>(); - builder.AddChild<MajorTickMark>(); - builder.AddChild<MinorTickMark>(); - builder.AddChild<TickLabelPosition>(); - builder.AddChild<ChartShapeProperties>(); - builder.AddChild<TextProperties>(); - builder.AddChild<CrossingAxis>(); - builder.AddChild<Crosses>(); - builder.AddChild<CrossesAt>(); - builder.AddChild<AutoLabeled>(); - builder.AddChild<LabelOffset>(); - builder.AddChild<BaseTimeUnit>(); - builder.AddChild<MajorUnit>(); - builder.AddChild<MajorTimeUnit>(); - builder.AddChild<MinorUnit>(); - builder.AddChild<MinorTimeUnit>(); - builder.AddChild<DateAxExtensionList>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new CompositeParticle.Builder(ParticleType.Group, 1, 1) - { - new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Scaling), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Delete), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisPosition), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MajorGridlines), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MinorGridlines), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Title), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.NumberingFormat), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MajorTickMark), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MinorTickMark), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TickLabelPosition), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartShapeProperties), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TextProperties), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CrossingAxis), 1, 1), - new CompositeParticle.Builder(ParticleType.Choice, 0, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Crosses), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CrossesAt), 1, 1) - } - } - }, - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AutoLabeled), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.LabelOffset), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BaseTimeUnit), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MajorUnit), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MajorTimeUnit), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MinorUnit), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MinorTimeUnit), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DateAxExtensionList), 0, 1) - }; } /// <summary> - /// <para>Axis ID.</para> - /// <para>Represents the following element tag in the schema: c:axId.</para> + /// <para>URI</para> + /// <para>Represents the following attribute in the schema: uri</para> /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public AxisId? AxisId + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "uri")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Uri { - get => GetElement<AxisId>(); - set => SetElement(value); + get => GetAttribute<StringValue>(); + set => SetAttribute(value); } - /// <summary> - /// <para>Scaling.</para> - /// <para>Represents the following element tag in the schema: c:scaling.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Scaling? Scaling + internal override void ConfigureMetadata(ElementMetadata.Builder builder) { - get => GetElement<Scaling>(); - set => SetElement(value); + base.ConfigureMetadata(builder); + builder.SetSchema(11, "ext"); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FullReference>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.LevelReference>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FormulaReference>(); + builder.AddElement<NumRefExtension>() +.AddAttribute(0, "uri", a => a.Uri, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FullReference), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.LevelReference), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FormulaReference), 1, 1, version: FileFormatVersions.Office2013), + new AnyParticle(0, 1) + }; } - /// <summary> - /// <para>Delete.</para> - /// <para>Represents the following element tag in the schema: c:delete.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Delete? Delete - { - get => GetElement<Delete>(); - set => SetElement(value); - } + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<NumRefExtension>(deep); + } + /// <summary> + /// <para>Defines the StrDataExtension Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.AutoGeneneratedCategories <c15:autoCat></description></item> + /// </list> + /// </remark> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "ext")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class StrDataExtension : OpenXmlCompositeElement + { /// <summary> - /// <para>Axis Position.</para> - /// <para>Represents the following element tag in the schema: c:axPos.</para> + /// Initializes a new instance of the StrDataExtension class. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public AxisPosition? AxisPosition + public StrDataExtension() : base() { - get => GetElement<AxisPosition>(); - set => SetElement(value); } /// <summary> - /// <para>Major Gridlines.</para> - /// <para>Represents the following element tag in the schema: c:majorGridlines.</para> + /// Initializes a new instance of the StrDataExtension class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public MajorGridlines? MajorGridlines + /// <param name="childElements">Specifies the child elements.</param> + public StrDataExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { - get => GetElement<MajorGridlines>(); - set => SetElement(value); } /// <summary> - /// <para>Minor Gridlines.</para> - /// <para>Represents the following element tag in the schema: c:minorGridlines.</para> + /// Initializes a new instance of the StrDataExtension class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public MinorGridlines? MinorGridlines + /// <param name="childElements">Specifies the child elements.</param> + public StrDataExtension(params OpenXmlElement[] childElements) : base(childElements) { - get => GetElement<MinorGridlines>(); - set => SetElement(value); } /// <summary> - /// <para>Title.</para> - /// <para>Represents the following element tag in the schema: c:title.</para> + /// Initializes a new instance of the StrDataExtension class from outer XML. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Title? Title + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public StrDataExtension(string outerXml) : base(outerXml) { - get => GetElement<Title>(); - set => SetElement(value); } /// <summary> - /// <para>Number Format.</para> - /// <para>Represents the following element tag in the schema: c:numFmt.</para> + /// <para>URI</para> + /// <para>Represents the following attribute in the schema: uri</para> /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public NumberingFormat? NumberingFormat + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "uri")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Uri { - get => GetElement<NumberingFormat>(); - set => SetElement(value); + get => GetAttribute<StringValue>(); + set => SetAttribute(value); } - /// <summary> - /// <para>Major Tick Mark.</para> - /// <para>Represents the following element tag in the schema: c:majorTickMark.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public MajorTickMark? MajorTickMark + internal override void ConfigureMetadata(ElementMetadata.Builder builder) { - get => GetElement<MajorTickMark>(); - set => SetElement(value); + base.ConfigureMetadata(builder); + builder.SetSchema(11, "ext"); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.AutoGeneneratedCategories>(); + builder.AddElement<StrDataExtension>() +.AddAttribute(0, "uri", a => a.Uri, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.AutoGeneneratedCategories), 1, 1, version: FileFormatVersions.Office2013), + new AnyParticle(0, 1) + }; } + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<StrDataExtension>(deep); + } + + /// <summary> + /// <para>Defines the StrRefExtension Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FullReference <c15:fullRef></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.LevelReference <c15:levelRef></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FormulaReference <c15:formulaRef></description></item> + /// </list> + /// </remark> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "ext")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class StrRefExtension : OpenXmlCompositeElement + { /// <summary> - /// <para>Minor Tick Mark.</para> - /// <para>Represents the following element tag in the schema: c:minorTickMark.</para> + /// Initializes a new instance of the StrRefExtension class. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public MinorTickMark? MinorTickMark + public StrRefExtension() : base() { - get => GetElement<MinorTickMark>(); - set => SetElement(value); } /// <summary> - /// <para>Tick Label Position.</para> - /// <para>Represents the following element tag in the schema: c:tickLblPos.</para> + /// Initializes a new instance of the StrRefExtension class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public TickLabelPosition? TickLabelPosition + /// <param name="childElements">Specifies the child elements.</param> + public StrRefExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { - get => GetElement<TickLabelPosition>(); - set => SetElement(value); } /// <summary> - /// <para>ChartShapeProperties.</para> - /// <para>Represents the following element tag in the schema: c:spPr.</para> + /// Initializes a new instance of the StrRefExtension class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public ChartShapeProperties? ChartShapeProperties + /// <param name="childElements">Specifies the child elements.</param> + public StrRefExtension(params OpenXmlElement[] childElements) : base(childElements) { - get => GetElement<ChartShapeProperties>(); - set => SetElement(value); } /// <summary> - /// <para>TextProperties.</para> - /// <para>Represents the following element tag in the schema: c:txPr.</para> + /// Initializes a new instance of the StrRefExtension class from outer XML. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public TextProperties? TextProperties + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public StrRefExtension(string outerXml) : base(outerXml) { - get => GetElement<TextProperties>(); - set => SetElement(value); } /// <summary> - /// <para>Crossing Axis ID.</para> - /// <para>Represents the following element tag in the schema: c:crossAx.</para> + /// <para>URI</para> + /// <para>Represents the following attribute in the schema: uri</para> /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public CrossingAxis? CrossingAxis + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "uri")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Uri { - get => GetElement<CrossingAxis>(); - set => SetElement(value); + get => GetAttribute<StringValue>(); + set => SetAttribute(value); } - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<DateAxis>(deep); - } - - /// <summary> - /// <para>Series Axis.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:serAx.</para> - /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>AxisId <c:axId></description></item> - /// <item><description>Scaling <c:scaling></description></item> - /// <item><description>Delete <c:delete></description></item> - /// <item><description>AxisPosition <c:axPos></description></item> - /// <item><description>MajorGridlines <c:majorGridlines></description></item> - /// <item><description>MinorGridlines <c:minorGridlines></description></item> - /// <item><description>Title <c:title></description></item> - /// <item><description>NumberingFormat <c:numFmt></description></item> - /// <item><description>MajorTickMark <c:majorTickMark></description></item> - /// <item><description>MinorTickMark <c:minorTickMark></description></item> - /// <item><description>TickLabelPosition <c:tickLblPos></description></item> - /// <item><description>ChartShapeProperties <c:spPr></description></item> - /// <item><description>TextProperties <c:txPr></description></item> - /// <item><description>CrossingAxis <c:crossAx></description></item> - /// <item><description>Crosses <c:crosses></description></item> - /// <item><description>CrossesAt <c:crossesAt></description></item> - /// <item><description>TickLabelSkip <c:tickLblSkip></description></item> - /// <item><description>TickMarkSkip <c:tickMarkSkip></description></item> - /// <item><description>SerAxExtensionList <c:extLst></description></item> + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(11, "ext"); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FullReference>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.LevelReference>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FormulaReference>(); + builder.AddElement<StrRefExtension>() +.AddAttribute(0, "uri", a => a.Uri, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FullReference), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.LevelReference), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FormulaReference), 1, 1, version: FileFormatVersions.Office2013), + new AnyParticle(0, 1) + }; + } + + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<StrRefExtension>(deep); + } + + /// <summary> + /// <para>Defines the MultiLvlStrRefExtension Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FullReference <c15:fullRef></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.LevelReference <c15:levelRef></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FormulaReference <c15:formulaRef></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "serAx")] + [SchemaAttr(11, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class SeriesAxis : OpenXmlCompositeElement + public partial class MultiLvlStrRefExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the SeriesAxis class. + /// Initializes a new instance of the MultiLvlStrRefExtension class. /// </summary> - public SeriesAxis() : base() + public MultiLvlStrRefExtension() : base() { } /// <summary> - /// Initializes a new instance of the SeriesAxis class with the specified child elements. + /// Initializes a new instance of the MultiLvlStrRefExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public SeriesAxis(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public MultiLvlStrRefExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the SeriesAxis class with the specified child elements. + /// Initializes a new instance of the MultiLvlStrRefExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public SeriesAxis(params OpenXmlElement[] childElements) : base(childElements) + public MultiLvlStrRefExtension(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the SeriesAxis class from outer XML. + /// Initializes a new instance of the MultiLvlStrRefExtension class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public SeriesAxis(string outerXml) : base(outerXml) + public MultiLvlStrRefExtension(string outerXml) : base(outerXml) + { + } + + /// <summary> + /// <para>URI</para> + /// <para>Represents the following attribute in the schema: uri</para> + /// </summary> + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "uri")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Uri { + get => GetAttribute<StringValue>(); + set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "serAx"); - builder.AddChild<AxisId>(); - builder.AddChild<Scaling>(); - builder.AddChild<Delete>(); - builder.AddChild<AxisPosition>(); - builder.AddChild<MajorGridlines>(); - builder.AddChild<MinorGridlines>(); - builder.AddChild<Title>(); - builder.AddChild<NumberingFormat>(); - builder.AddChild<MajorTickMark>(); - builder.AddChild<MinorTickMark>(); - builder.AddChild<TickLabelPosition>(); - builder.AddChild<ChartShapeProperties>(); - builder.AddChild<TextProperties>(); - builder.AddChild<CrossingAxis>(); - builder.AddChild<Crosses>(); - builder.AddChild<CrossesAt>(); - builder.AddChild<TickLabelSkip>(); - builder.AddChild<TickMarkSkip>(); - builder.AddChild<SerAxExtensionList>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + builder.SetSchema(11, "ext"); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FullReference>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.LevelReference>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FormulaReference>(); + builder.AddElement<MultiLvlStrRefExtension>() +.AddAttribute(0, "uri", a => a.Uri, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) { - new CompositeParticle.Builder(ParticleType.Group, 1, 1) - { - new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisId), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Scaling), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Delete), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AxisPosition), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MajorGridlines), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MinorGridlines), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Title), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.NumberingFormat), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MajorTickMark), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MinorTickMark), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TickLabelPosition), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartShapeProperties), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TextProperties), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CrossingAxis), 1, 1), - new CompositeParticle.Builder(ParticleType.Choice, 0, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Crosses), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CrossesAt), 1, 1) - } - } - }, - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TickLabelSkip), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TickMarkSkip), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SerAxExtensionList), 0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FullReference), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.LevelReference), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FormulaReference), 1, 1, version: FileFormatVersions.Office2013), + new AnyParticle(0, 1) }; } - /// <summary> - /// <para>Axis ID.</para> - /// <para>Represents the following element tag in the schema: c:axId.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public AxisId? AxisId - { - get => GetElement<AxisId>(); - set => SetElement(value); - } + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<MultiLvlStrRefExtension>(deep); + } + /// <summary> + /// <para>Defines the DLblExtension Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelFieldTable <c15:dlblFieldTable></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.ExceptionForSave <c15:xForSave></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShowDataLabelsRange <c15:showDataLabelsRange></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShapeProperties <c15:spPr></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.Layout <c15:layout></description></item> + /// </list> + /// </remark> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "ext")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class DLblExtension : OpenXmlCompositeElement + { /// <summary> - /// <para>Scaling.</para> - /// <para>Represents the following element tag in the schema: c:scaling.</para> + /// Initializes a new instance of the DLblExtension class. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Scaling? Scaling + public DLblExtension() : base() { - get => GetElement<Scaling>(); - set => SetElement(value); } /// <summary> - /// <para>Delete.</para> - /// <para>Represents the following element tag in the schema: c:delete.</para> + /// Initializes a new instance of the DLblExtension class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Delete? Delete + /// <param name="childElements">Specifies the child elements.</param> + public DLblExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { - get => GetElement<Delete>(); - set => SetElement(value); } /// <summary> - /// <para>Axis Position.</para> - /// <para>Represents the following element tag in the schema: c:axPos.</para> + /// Initializes a new instance of the DLblExtension class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public AxisPosition? AxisPosition + /// <param name="childElements">Specifies the child elements.</param> + public DLblExtension(params OpenXmlElement[] childElements) : base(childElements) { - get => GetElement<AxisPosition>(); - set => SetElement(value); } /// <summary> - /// <para>Major Gridlines.</para> - /// <para>Represents the following element tag in the schema: c:majorGridlines.</para> + /// Initializes a new instance of the DLblExtension class from outer XML. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public MajorGridlines? MajorGridlines + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public DLblExtension(string outerXml) : base(outerXml) { - get => GetElement<MajorGridlines>(); - set => SetElement(value); } /// <summary> - /// <para>Minor Gridlines.</para> - /// <para>Represents the following element tag in the schema: c:minorGridlines.</para> + /// <para>URI</para> + /// <para>Represents the following attribute in the schema: uri</para> /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public MinorGridlines? MinorGridlines - { - get => GetElement<MinorGridlines>(); - set => SetElement(value); - } - /// <summary> - /// <para>Title.</para> - /// <para>Represents the following element tag in the schema: c:title.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Title? Title +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "uri")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Uri { - get => GetElement<Title>(); - set => SetElement(value); + get => GetAttribute<StringValue>(); + set => SetAttribute(value); } - /// <summary> - /// <para>Number Format.</para> - /// <para>Represents the following element tag in the schema: c:numFmt.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public NumberingFormat? NumberingFormat + internal override void ConfigureMetadata(ElementMetadata.Builder builder) { - get => GetElement<NumberingFormat>(); - set => SetElement(value); + base.ConfigureMetadata(builder); + builder.SetSchema(11, "ext"); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelFieldTable>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.ExceptionForSave>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShowDataLabelsRange>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShapeProperties>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.Layout>(); + builder.AddElement<DLblExtension>() +.AddAttribute(0, "uri", a => a.Uri, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelFieldTable), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.ExceptionForSave), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShowDataLabelsRange), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShapeProperties), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.Layout), 1, 1, version: FileFormatVersions.Office2013), + new AnyParticle(0, 1) + }; } + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<DLblExtension>(deep); + } + + /// <summary> + /// <para>Defines the DLblsExtension Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.ChartText <c15:tx></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelFieldTable <c15:dlblFieldTable></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShowDataLabelsRange <c15:showDataLabelsRange></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShapeProperties <c15:spPr></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.Layout <c15:layout></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShowLeaderLines <c15:showLeaderLines></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.LeaderLines <c15:leaderLines></description></item> + /// </list> + /// </remark> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "ext")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class DLblsExtension : OpenXmlCompositeElement + { /// <summary> - /// <para>Major Tick Mark.</para> - /// <para>Represents the following element tag in the schema: c:majorTickMark.</para> + /// Initializes a new instance of the DLblsExtension class. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public MajorTickMark? MajorTickMark + public DLblsExtension() : base() { - get => GetElement<MajorTickMark>(); - set => SetElement(value); } /// <summary> - /// <para>Minor Tick Mark.</para> - /// <para>Represents the following element tag in the schema: c:minorTickMark.</para> + /// Initializes a new instance of the DLblsExtension class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public MinorTickMark? MinorTickMark + /// <param name="childElements">Specifies the child elements.</param> + public DLblsExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { - get => GetElement<MinorTickMark>(); - set => SetElement(value); } /// <summary> - /// <para>Tick Label Position.</para> - /// <para>Represents the following element tag in the schema: c:tickLblPos.</para> + /// Initializes a new instance of the DLblsExtension class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public TickLabelPosition? TickLabelPosition + /// <param name="childElements">Specifies the child elements.</param> + public DLblsExtension(params OpenXmlElement[] childElements) : base(childElements) { - get => GetElement<TickLabelPosition>(); - set => SetElement(value); } /// <summary> - /// <para>ChartShapeProperties.</para> - /// <para>Represents the following element tag in the schema: c:spPr.</para> + /// Initializes a new instance of the DLblsExtension class from outer XML. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public ChartShapeProperties? ChartShapeProperties + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public DLblsExtension(string outerXml) : base(outerXml) { - get => GetElement<ChartShapeProperties>(); - set => SetElement(value); } /// <summary> - /// <para>TextProperties.</para> - /// <para>Represents the following element tag in the schema: c:txPr.</para> + /// <para>URI</para> + /// <para>Represents the following attribute in the schema: uri</para> /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public TextProperties? TextProperties + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "uri")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Uri { - get => GetElement<TextProperties>(); - set => SetElement(value); + get => GetAttribute<StringValue>(); + set => SetAttribute(value); } - /// <summary> - /// <para>Crossing Axis ID.</para> - /// <para>Represents the following element tag in the schema: c:crossAx.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public CrossingAxis? CrossingAxis + internal override void ConfigureMetadata(ElementMetadata.Builder builder) { - get => GetElement<CrossingAxis>(); - set => SetElement(value); + base.ConfigureMetadata(builder); + builder.SetSchema(11, "ext"); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.ChartText>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelFieldTable>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShowDataLabelsRange>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShapeProperties>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.Layout>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShowLeaderLines>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.LeaderLines>(); + builder.AddElement<DLblsExtension>() +.AddAttribute(0, "uri", a => a.Uri, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.ChartText), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelFieldTable), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShowDataLabelsRange), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShapeProperties), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.Layout), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShowLeaderLines), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.LeaderLines), 1, 1, version: FileFormatVersions.Office2013), + new AnyParticle(0, 1) + }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<SeriesAxis>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<DLblsExtension>(deep); } /// <summary> - /// <para>Data Table.</para> + /// <para>Defines the LineSerExtension Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:dTable.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>ShowHorizontalBorder <c:showHorzBorder></description></item> - /// <item><description>ShowVerticalBorder <c:showVertBorder></description></item> - /// <item><description>ShowOutlineBorder <c:showOutline></description></item> - /// <item><description>ShowKeys <c:showKeys></description></item> - /// <item><description>ChartShapeProperties <c:spPr></description></item> - /// <item><description>TextProperties <c:txPr></description></item> - /// <item><description>ExtensionList <c:extLst></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle <c15:filteredSeriesTitle></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle <c15:filteredCategoryTitle></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange <c15:datalabelsRange></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions <c15:categoryFilterExceptions></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "dTable")] + [SchemaAttr(11, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class DataTable : OpenXmlCompositeElement + public partial class LineSerExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the DataTable class. + /// Initializes a new instance of the LineSerExtension class. /// </summary> - public DataTable() : base() + public LineSerExtension() : base() { } /// <summary> - /// Initializes a new instance of the DataTable class with the specified child elements. + /// Initializes a new instance of the LineSerExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public DataTable(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public LineSerExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the DataTable class with the specified child elements. + /// Initializes a new instance of the LineSerExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public DataTable(params OpenXmlElement[] childElements) : base(childElements) + public LineSerExtension(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the DataTable class from outer XML. + /// Initializes a new instance of the LineSerExtension class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public DataTable(string outerXml) : base(outerXml) + public LineSerExtension(string outerXml) : base(outerXml) + { + } + + /// <summary> + /// <para>URI</para> + /// <para>Represents the following attribute in the schema: uri</para> + /// </summary> + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "uri")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Uri { + get => GetAttribute<StringValue>(); + set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "dTable"); - builder.AddChild<ShowHorizontalBorder>(); - builder.AddChild<ShowVerticalBorder>(); - builder.AddChild<ShowOutlineBorder>(); - builder.AddChild<ShowKeys>(); - builder.AddChild<ChartShapeProperties>(); - builder.AddChild<TextProperties>(); - builder.AddChild<ExtensionList>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + builder.SetSchema(11, "ext"); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions>(); + builder.AddElement<LineSerExtension>() +.AddAttribute(0, "uri", a => a.Uri, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShowHorizontalBorder), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShowVerticalBorder), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShowOutlineBorder), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShowKeys), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartShapeProperties), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TextProperties), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions), 1, 1, version: FileFormatVersions.Office2013), + new AnyParticle(0, 1) }; } - /// <summary> - /// <para>Show Horizontal Border.</para> - /// <para>Represents the following element tag in the schema: c:showHorzBorder.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public ShowHorizontalBorder? ShowHorizontalBorder - { - get => GetElement<ShowHorizontalBorder>(); - set => SetElement(value); - } + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<LineSerExtension>(deep); + } + /// <summary> + /// <para>Defines the ScatterSerExtension Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle <c15:filteredSeriesTitle></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle <c15:filteredCategoryTitle></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange <c15:datalabelsRange></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions <c15:categoryFilterExceptions></description></item> + /// </list> + /// </remark> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "ext")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class ScatterSerExtension : OpenXmlCompositeElement + { /// <summary> - /// <para>Show Vertical Border.</para> - /// <para>Represents the following element tag in the schema: c:showVertBorder.</para> + /// Initializes a new instance of the ScatterSerExtension class. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public ShowVerticalBorder? ShowVerticalBorder + public ScatterSerExtension() : base() { - get => GetElement<ShowVerticalBorder>(); - set => SetElement(value); } /// <summary> - /// <para>Show Outline Border.</para> - /// <para>Represents the following element tag in the schema: c:showOutline.</para> + /// Initializes a new instance of the ScatterSerExtension class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public ShowOutlineBorder? ShowOutlineBorder + /// <param name="childElements">Specifies the child elements.</param> + public ScatterSerExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { - get => GetElement<ShowOutlineBorder>(); - set => SetElement(value); } /// <summary> - /// <para>Show Legend Keys.</para> - /// <para>Represents the following element tag in the schema: c:showKeys.</para> + /// Initializes a new instance of the ScatterSerExtension class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public ShowKeys? ShowKeys + /// <param name="childElements">Specifies the child elements.</param> + public ScatterSerExtension(params OpenXmlElement[] childElements) : base(childElements) { - get => GetElement<ShowKeys>(); - set => SetElement(value); } /// <summary> - /// <para>ChartShapeProperties.</para> - /// <para>Represents the following element tag in the schema: c:spPr.</para> + /// Initializes a new instance of the ScatterSerExtension class from outer XML. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public ChartShapeProperties? ChartShapeProperties + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public ScatterSerExtension(string outerXml) : base(outerXml) { - get => GetElement<ChartShapeProperties>(); - set => SetElement(value); } /// <summary> - /// <para>Text Properties.</para> - /// <para>Represents the following element tag in the schema: c:txPr.</para> + /// <para>URI</para> + /// <para>Represents the following attribute in the schema: uri</para> /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public TextProperties? TextProperties + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "uri")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Uri { - get => GetElement<TextProperties>(); - set => SetElement(value); + get => GetAttribute<StringValue>(); + set => SetAttribute(value); } - /// <summary> - /// <para>Chart Extensibility.</para> - /// <para>Represents the following element tag in the schema: c:extLst.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public ExtensionList? ExtensionList + internal override void ConfigureMetadata(ElementMetadata.Builder builder) { - get => GetElement<ExtensionList>(); - set => SetElement(value); + base.ConfigureMetadata(builder); + builder.SetSchema(11, "ext"); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions>(); + builder.AddElement<ScatterSerExtension>() +.AddAttribute(0, "uri", a => a.Uri, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions), 1, 1, version: FileFormatVersions.Office2013), + new AnyParticle(0, 1) + }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<DataTable>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<ScatterSerExtension>(deep); } /// <summary> - /// <para>First Slice Angle.</para> + /// <para>Defines the RadarSerExtension Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:firstSliceAng.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle <c15:filteredSeriesTitle></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle <c15:filteredCategoryTitle></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange <c15:datalabelsRange></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions <c15:categoryFilterExceptions></description></item> + /// </list> + /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "firstSliceAng")] + [SchemaAttr(11, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class FirstSliceAngle : OpenXmlLeafElement + public partial class RadarSerExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the FirstSliceAngle class. + /// Initializes a new instance of the RadarSerExtension class. /// </summary> - public FirstSliceAngle() : base() + public RadarSerExtension() : base() { } /// <summary> - /// <para>First Slice Angle Value</para> - /// <para>Represents the following attribute in the schema: val</para> + /// Initializes a new instance of the RadarSerExtension class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public RadarSerExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + { + } + + /// <summary> + /// Initializes a new instance of the RadarSerExtension class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public RadarSerExtension(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// <summary> + /// Initializes a new instance of the RadarSerExtension class from outer XML. + /// </summary> + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public RadarSerExtension(string outerXml) : base(outerXml) + { + } + + /// <summary> + /// <para>URI</para> + /// <para>Represents the following attribute in the schema: uri</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(0, "val")] + [SchemaAttr(0, "uri")] #pragma warning restore CS0618 // Type or member is obsolete - public UInt16Value? Val + public StringValue? Uri { - get => GetAttribute<UInt16Value>(); + get => GetAttribute<StringValue>(); set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "firstSliceAng"); - builder.AddElement<FirstSliceAngle>() -.AddAttribute(0, "val", a => a.Val, aBuilder => + builder.SetSchema(11, "ext"); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions>(); + builder.AddElement<RadarSerExtension>() +.AddAttribute(0, "uri", a => a.Uri, aBuilder => { -aBuilder.AddValidator(new NumberValidator() { MinInclusive = (0L), MaxInclusive = (360L) }); +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); }); + builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions), 1, 1, version: FileFormatVersions.Office2013), + new AnyParticle(0, 1) + }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<FirstSliceAngle>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<RadarSerExtension>(deep); } /// <summary> - /// <para>Hole Size.</para> + /// <para>Defines the AreaSerExtension Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:holeSize.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle <c15:filteredSeriesTitle></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle <c15:filteredCategoryTitle></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange <c15:datalabelsRange></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions <c15:categoryFilterExceptions></description></item> + /// </list> + /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "holeSize")] + [SchemaAttr(11, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class HoleSize : OpenXmlLeafElement + public partial class AreaSerExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the HoleSize class. + /// Initializes a new instance of the AreaSerExtension class. /// </summary> - public HoleSize() : base() + public AreaSerExtension() : base() { } /// <summary> - /// <para>Hole Size Value</para> - /// <para>Represents the following attribute in the schema: val</para> + /// Initializes a new instance of the AreaSerExtension class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public AreaSerExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + { + } + + /// <summary> + /// Initializes a new instance of the AreaSerExtension class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public AreaSerExtension(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// <summary> + /// Initializes a new instance of the AreaSerExtension class from outer XML. + /// </summary> + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public AreaSerExtension(string outerXml) : base(outerXml) + { + } + + /// <summary> + /// <para>URI</para> + /// <para>Represents the following attribute in the schema: uri</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(0, "val")] + [SchemaAttr(0, "uri")] #pragma warning restore CS0618 // Type or member is obsolete - public ByteValue? Val + public StringValue? Uri { - get => GetAttribute<ByteValue>(); + get => GetAttribute<StringValue>(); set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "holeSize"); - builder.AddElement<HoleSize>() -.AddAttribute(0, "val", a => a.Val, aBuilder => + builder.SetSchema(11, "ext"); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions>(); + builder.AddElement<AreaSerExtension>() +.AddAttribute(0, "uri", a => a.Uri, aBuilder => { aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new NumberValidator() { MinInclusive = (1L), MaxInclusive = (90L) }); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); }); + builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions), 1, 1, version: FileFormatVersions.Office2013), + new AnyParticle(0, 1) + }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<HoleSize>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<AreaSerExtension>(deep); } /// <summary> - /// <para>String Point.</para> + /// <para>Defines the PieSerExtension Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:pt.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>NumericValue <c:v></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle <c15:filteredSeriesTitle></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle <c15:filteredCategoryTitle></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange <c15:datalabelsRange></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions <c15:categoryFilterExceptions></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "pt")] + [SchemaAttr(11, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class StringPoint : OpenXmlCompositeElement + public partial class PieSerExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the StringPoint class. + /// Initializes a new instance of the PieSerExtension class. /// </summary> - public StringPoint() : base() + public PieSerExtension() : base() { } /// <summary> - /// Initializes a new instance of the StringPoint class with the specified child elements. + /// Initializes a new instance of the PieSerExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public StringPoint(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public PieSerExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the StringPoint class with the specified child elements. + /// Initializes a new instance of the PieSerExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public StringPoint(params OpenXmlElement[] childElements) : base(childElements) + public PieSerExtension(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the StringPoint class from outer XML. + /// Initializes a new instance of the PieSerExtension class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public StringPoint(string outerXml) : base(outerXml) + public PieSerExtension(string outerXml) : base(outerXml) { } /// <summary> - /// <para>Index</para> - /// <para>Represents the following attribute in the schema: idx</para> + /// <para>URI</para> + /// <para>Represents the following attribute in the schema: uri</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(0, "idx")] + [SchemaAttr(0, "uri")] #pragma warning restore CS0618 // Type or member is obsolete - public UInt32Value? Index + public StringValue? Uri { - get => GetAttribute<UInt32Value>(); + get => GetAttribute<StringValue>(); set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "pt"); - builder.AddChild<NumericValue>(); - builder.AddElement<StringPoint>() -.AddAttribute(0, "idx", a => a.Index, aBuilder => + builder.SetSchema(11, "ext"); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions>(); + builder.AddElement<PieSerExtension>() +.AddAttribute(0, "uri", a => a.Uri, aBuilder => { aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); }); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.NumericValue), 1, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions), 1, 1, version: FileFormatVersions.Office2013), + new AnyParticle(0, 1) }; - builder.AddConstraint(new AttributeValueRangeConstraint(0 /*:idx*/, true, 0, true, 2147483647, true)); - } - - /// <summary> - /// <para>Text Value.</para> - /// <para>Represents the following element tag in the schema: c:v.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public NumericValue? NumericValue - { - get => GetElement<NumericValue>(); - set => SetElement(value); - } - - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<StringPoint>(deep); - } - - /// <summary> - /// <para>Thickness.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:thickness.</para> - /// </summary> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "thickness")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class Thickness : OpenXmlLeafElement - { - /// <summary> - /// Initializes a new instance of the Thickness class. - /// </summary> - public Thickness() : base() - { - } - - /// <summary> - /// <para>val</para> - /// <para>Represents the following attribute in the schema: val</para> - /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "val")] -#pragma warning restore CS0618 // Type or member is obsolete - - public ByteValue? Val - { - get => GetAttribute<ByteValue>(); - set => SetAttribute(value); - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "thickness"); - builder.AddElement<Thickness>() -.AddAttribute(0, "val", a => a.Val, aBuilder => -{ -aBuilder.AddValidator(new NumberValidator() { MinInclusive = (0L), MaxInclusive = (100L) }); -}); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<Thickness>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<PieSerExtension>(deep); } /// <summary> - /// <para>Defines the StockChartExtension Class.</para> + /// <para>Defines the SurfaceSerExtension Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredLineSeriesExtension <c15:filteredLineSeries></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle <c15:filteredSeriesTitle></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle <c15:filteredCategoryTitle></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions <c15:categoryFilterExceptions></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(11, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class StockChartExtension : OpenXmlCompositeElement + public partial class SurfaceSerExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the StockChartExtension class. + /// Initializes a new instance of the SurfaceSerExtension class. /// </summary> - public StockChartExtension() : base() + public SurfaceSerExtension() : base() { } /// <summary> - /// Initializes a new instance of the StockChartExtension class with the specified child elements. + /// Initializes a new instance of the SurfaceSerExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public StockChartExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public SurfaceSerExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the StockChartExtension class with the specified child elements. + /// Initializes a new instance of the SurfaceSerExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public StockChartExtension(params OpenXmlElement[] childElements) : base(childElements) + public SurfaceSerExtension(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the StockChartExtension class from outer XML. + /// Initializes a new instance of the SurfaceSerExtension class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public StockChartExtension(string outerXml) : base(outerXml) + public SurfaceSerExtension(string outerXml) : base(outerXml) { } @@ -14902,8 +15357,10 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredLineSeriesExtension>(); - builder.AddElement<StockChartExtension>() + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions>(); + builder.AddElement<SurfaceSerExtension>() .AddAttribute(0, "uri", a => a.Uri, aBuilder => { aBuilder.AddValidator(RequiredValidator.Instance); @@ -14911,59 +15368,61 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) }); builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredLineSeriesExtension), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions), 1, 1, version: FileFormatVersions.Office2013), new AnyParticle(0, 1) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<StockChartExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<SurfaceSerExtension>(deep); } /// <summary> - /// <para>Defines the PieChartExtension Class.</para> + /// <para>Defines the LineChartExtension Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredPieSeries <c15:filteredPieSeries></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredLineSeriesExtension <c15:filteredLineSeries></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(11, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class PieChartExtension : OpenXmlCompositeElement + public partial class LineChartExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the PieChartExtension class. + /// Initializes a new instance of the LineChartExtension class. /// </summary> - public PieChartExtension() : base() + public LineChartExtension() : base() { } /// <summary> - /// Initializes a new instance of the PieChartExtension class with the specified child elements. + /// Initializes a new instance of the LineChartExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public PieChartExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public LineChartExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the PieChartExtension class with the specified child elements. + /// Initializes a new instance of the LineChartExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public PieChartExtension(params OpenXmlElement[] childElements) : base(childElements) + public LineChartExtension(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the PieChartExtension class from outer XML. + /// Initializes a new instance of the LineChartExtension class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public PieChartExtension(string outerXml) : base(outerXml) + public LineChartExtension(string outerXml) : base(outerXml) { } @@ -14987,8 +15446,8 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredPieSeries>(); - builder.AddElement<PieChartExtension>() + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredLineSeriesExtension>(); + builder.AddElement<LineChartExtension>() .AddAttribute(0, "uri", a => a.Uri, aBuilder => { aBuilder.AddValidator(RequiredValidator.Instance); @@ -14996,59 +15455,59 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) }); builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredPieSeries), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredLineSeriesExtension), 1, 1, version: FileFormatVersions.Office2013), new AnyParticle(0, 1) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<PieChartExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<LineChartExtension>(deep); } /// <summary> - /// <para>Defines the Pie3DChartExtension Class.</para> + /// <para>Defines the Line3DChartExtension Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredPieSeries <c15:filteredPieSeries></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredLineSeriesExtension <c15:filteredLineSeries></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(11, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class Pie3DChartExtension : OpenXmlCompositeElement + public partial class Line3DChartExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the Pie3DChartExtension class. + /// Initializes a new instance of the Line3DChartExtension class. /// </summary> - public Pie3DChartExtension() : base() + public Line3DChartExtension() : base() { } /// <summary> - /// Initializes a new instance of the Pie3DChartExtension class with the specified child elements. + /// Initializes a new instance of the Line3DChartExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public Pie3DChartExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public Line3DChartExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the Pie3DChartExtension class with the specified child elements. + /// Initializes a new instance of the Line3DChartExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public Pie3DChartExtension(params OpenXmlElement[] childElements) : base(childElements) + public Line3DChartExtension(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the Pie3DChartExtension class from outer XML. + /// Initializes a new instance of the Line3DChartExtension class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public Pie3DChartExtension(string outerXml) : base(outerXml) + public Line3DChartExtension(string outerXml) : base(outerXml) { } @@ -15072,8 +15531,8 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredPieSeries>(); - builder.AddElement<Pie3DChartExtension>() + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredLineSeriesExtension>(); + builder.AddElement<Line3DChartExtension>() .AddAttribute(0, "uri", a => a.Uri, aBuilder => { aBuilder.AddValidator(RequiredValidator.Instance); @@ -15081,61 +15540,59 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) }); builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredPieSeries), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredLineSeriesExtension), 1, 1, version: FileFormatVersions.Office2013), new AnyParticle(0, 1) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<Pie3DChartExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<Line3DChartExtension>(deep); } /// <summary> - /// <para>Defines the NumRefExtension Class.</para> + /// <para>Defines the ScatterChartExtension Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FullReference <c15:fullRef></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.LevelReference <c15:levelRef></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FormulaReference <c15:formulaRef></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredScatterSeries <c15:filteredScatterSeries></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(11, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class NumRefExtension : OpenXmlCompositeElement + public partial class ScatterChartExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the NumRefExtension class. + /// Initializes a new instance of the ScatterChartExtension class. /// </summary> - public NumRefExtension() : base() + public ScatterChartExtension() : base() { } /// <summary> - /// Initializes a new instance of the NumRefExtension class with the specified child elements. + /// Initializes a new instance of the ScatterChartExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public NumRefExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public ScatterChartExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the NumRefExtension class with the specified child elements. + /// Initializes a new instance of the ScatterChartExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public NumRefExtension(params OpenXmlElement[] childElements) : base(childElements) + public ScatterChartExtension(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the NumRefExtension class from outer XML. + /// Initializes a new instance of the ScatterChartExtension class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public NumRefExtension(string outerXml) : base(outerXml) + public ScatterChartExtension(string outerXml) : base(outerXml) { } @@ -15159,10 +15616,8 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FullReference>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.LevelReference>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FormulaReference>(); - builder.AddElement<NumRefExtension>() + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredScatterSeries>(); + builder.AddElement<ScatterChartExtension>() .AddAttribute(0, "uri", a => a.Uri, aBuilder => { aBuilder.AddValidator(RequiredValidator.Instance); @@ -15170,61 +15625,59 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) }); builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FullReference), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.LevelReference), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FormulaReference), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredScatterSeries), 1, 1, version: FileFormatVersions.Office2013), new AnyParticle(0, 1) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<NumRefExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<ScatterChartExtension>(deep); } /// <summary> - /// <para>Defines the StrDataExtension Class.</para> + /// <para>Defines the RadarChartExtension Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.AutoGeneneratedCategories <c15:autoCat></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredRadarSeries <c15:filteredRadarSeries></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(11, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class StrDataExtension : OpenXmlCompositeElement + public partial class RadarChartExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the StrDataExtension class. + /// Initializes a new instance of the RadarChartExtension class. /// </summary> - public StrDataExtension() : base() + public RadarChartExtension() : base() { } /// <summary> - /// Initializes a new instance of the StrDataExtension class with the specified child elements. + /// Initializes a new instance of the RadarChartExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public StrDataExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public RadarChartExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the StrDataExtension class with the specified child elements. + /// Initializes a new instance of the RadarChartExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public StrDataExtension(params OpenXmlElement[] childElements) : base(childElements) + public RadarChartExtension(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the StrDataExtension class from outer XML. + /// Initializes a new instance of the RadarChartExtension class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public StrDataExtension(string outerXml) : base(outerXml) + public RadarChartExtension(string outerXml) : base(outerXml) { } @@ -15248,8 +15701,8 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.AutoGeneneratedCategories>(); - builder.AddElement<StrDataExtension>() + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredRadarSeries>(); + builder.AddElement<RadarChartExtension>() .AddAttribute(0, "uri", a => a.Uri, aBuilder => { aBuilder.AddValidator(RequiredValidator.Instance); @@ -15257,61 +15710,59 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) }); builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.AutoGeneneratedCategories), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredRadarSeries), 1, 1, version: FileFormatVersions.Office2013), new AnyParticle(0, 1) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<StrDataExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<RadarChartExtension>(deep); } /// <summary> - /// <para>Defines the StrRefExtension Class.</para> + /// <para>Defines the BarChartExtension Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FullReference <c15:fullRef></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.LevelReference <c15:levelRef></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FormulaReference <c15:formulaRef></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredBarSeries <c15:filteredBarSeries></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(11, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class StrRefExtension : OpenXmlCompositeElement + public partial class BarChartExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the StrRefExtension class. + /// Initializes a new instance of the BarChartExtension class. /// </summary> - public StrRefExtension() : base() + public BarChartExtension() : base() { } /// <summary> - /// Initializes a new instance of the StrRefExtension class with the specified child elements. + /// Initializes a new instance of the BarChartExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public StrRefExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public BarChartExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the StrRefExtension class with the specified child elements. + /// Initializes a new instance of the BarChartExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public StrRefExtension(params OpenXmlElement[] childElements) : base(childElements) + public BarChartExtension(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the StrRefExtension class from outer XML. + /// Initializes a new instance of the BarChartExtension class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public StrRefExtension(string outerXml) : base(outerXml) + public BarChartExtension(string outerXml) : base(outerXml) { } @@ -15335,10 +15786,8 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FullReference>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.LevelReference>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FormulaReference>(); - builder.AddElement<StrRefExtension>() + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredBarSeries>(); + builder.AddElement<BarChartExtension>() .AddAttribute(0, "uri", a => a.Uri, aBuilder => { aBuilder.AddValidator(RequiredValidator.Instance); @@ -15346,63 +15795,59 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) }); builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FullReference), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.LevelReference), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FormulaReference), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredBarSeries), 1, 1, version: FileFormatVersions.Office2013), new AnyParticle(0, 1) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<StrRefExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<BarChartExtension>(deep); } /// <summary> - /// <para>Defines the MultiLvlStrRefExtension Class.</para> + /// <para>Defines the Bar3DChartExtension Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FullReference <c15:fullRef></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.LevelReference <c15:levelRef></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FormulaReference <c15:formulaRef></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredBarSeries <c15:filteredBarSeries></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(11, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class MultiLvlStrRefExtension : OpenXmlCompositeElement + public partial class Bar3DChartExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the MultiLvlStrRefExtension class. + /// Initializes a new instance of the Bar3DChartExtension class. /// </summary> - public MultiLvlStrRefExtension() : base() + public Bar3DChartExtension() : base() { } /// <summary> - /// Initializes a new instance of the MultiLvlStrRefExtension class with the specified child elements. + /// Initializes a new instance of the Bar3DChartExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public MultiLvlStrRefExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public Bar3DChartExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the MultiLvlStrRefExtension class with the specified child elements. + /// Initializes a new instance of the Bar3DChartExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public MultiLvlStrRefExtension(params OpenXmlElement[] childElements) : base(childElements) + public Bar3DChartExtension(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the MultiLvlStrRefExtension class from outer XML. + /// Initializes a new instance of the Bar3DChartExtension class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public MultiLvlStrRefExtension(string outerXml) : base(outerXml) + public Bar3DChartExtension(string outerXml) : base(outerXml) { } @@ -15426,10 +15871,8 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FullReference>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.LevelReference>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FormulaReference>(); - builder.AddElement<MultiLvlStrRefExtension>() + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredBarSeries>(); + builder.AddElement<Bar3DChartExtension>() .AddAttribute(0, "uri", a => a.Uri, aBuilder => { aBuilder.AddValidator(RequiredValidator.Instance); @@ -15437,65 +15880,59 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) }); builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FullReference), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.LevelReference), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FormulaReference), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredBarSeries), 1, 1, version: FileFormatVersions.Office2013), new AnyParticle(0, 1) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<MultiLvlStrRefExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<Bar3DChartExtension>(deep); } /// <summary> - /// <para>Defines the DLblExtension Class.</para> + /// <para>Defines the AreaChartExtension Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelFieldTable <c15:dlblFieldTable></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.ExceptionForSave <c15:xForSave></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShowDataLabelsRange <c15:showDataLabelsRange></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShapeProperties <c15:spPr></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.Layout <c15:layout></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredAreaSeries <c15:filteredAreaSeries></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(11, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class DLblExtension : OpenXmlCompositeElement + public partial class AreaChartExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the DLblExtension class. + /// Initializes a new instance of the AreaChartExtension class. /// </summary> - public DLblExtension() : base() + public AreaChartExtension() : base() { } /// <summary> - /// Initializes a new instance of the DLblExtension class with the specified child elements. + /// Initializes a new instance of the AreaChartExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public DLblExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public AreaChartExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the DLblExtension class with the specified child elements. + /// Initializes a new instance of the AreaChartExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public DLblExtension(params OpenXmlElement[] childElements) : base(childElements) + public AreaChartExtension(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the DLblExtension class from outer XML. + /// Initializes a new instance of the AreaChartExtension class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public DLblExtension(string outerXml) : base(outerXml) + public AreaChartExtension(string outerXml) : base(outerXml) { } @@ -15519,12 +15956,8 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelFieldTable>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.ExceptionForSave>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShowDataLabelsRange>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShapeProperties>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.Layout>(); - builder.AddElement<DLblExtension>() + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredAreaSeries>(); + builder.AddElement<AreaChartExtension>() .AddAttribute(0, "uri", a => a.Uri, aBuilder => { aBuilder.AddValidator(RequiredValidator.Instance); @@ -15532,69 +15965,59 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) }); builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelFieldTable), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.ExceptionForSave), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShowDataLabelsRange), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShapeProperties), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.Layout), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredAreaSeries), 1, 1, version: FileFormatVersions.Office2013), new AnyParticle(0, 1) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<DLblExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<AreaChartExtension>(deep); } /// <summary> - /// <para>Defines the DLblsExtension Class.</para> + /// <para>Defines the Area3DChartExtension Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.ChartText <c15:tx></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelFieldTable <c15:dlblFieldTable></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShowDataLabelsRange <c15:showDataLabelsRange></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShapeProperties <c15:spPr></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.Layout <c15:layout></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShowLeaderLines <c15:showLeaderLines></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.LeaderLines <c15:leaderLines></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredAreaSeries <c15:filteredAreaSeries></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(11, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class DLblsExtension : OpenXmlCompositeElement + public partial class Area3DChartExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the DLblsExtension class. + /// Initializes a new instance of the Area3DChartExtension class. /// </summary> - public DLblsExtension() : base() + public Area3DChartExtension() : base() { } /// <summary> - /// Initializes a new instance of the DLblsExtension class with the specified child elements. + /// Initializes a new instance of the Area3DChartExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public DLblsExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public Area3DChartExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the DLblsExtension class with the specified child elements. + /// Initializes a new instance of the Area3DChartExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public DLblsExtension(params OpenXmlElement[] childElements) : base(childElements) + public Area3DChartExtension(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the DLblsExtension class from outer XML. + /// Initializes a new instance of the Area3DChartExtension class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public DLblsExtension(string outerXml) : base(outerXml) + public Area3DChartExtension(string outerXml) : base(outerXml) { } @@ -15618,14 +16041,8 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.ChartText>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelFieldTable>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShowDataLabelsRange>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShapeProperties>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.Layout>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShowLeaderLines>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.LeaderLines>(); - builder.AddElement<DLblsExtension>() + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredAreaSeries>(); + builder.AddElement<Area3DChartExtension>() .AddAttribute(0, "uri", a => a.Uri, aBuilder => { aBuilder.AddValidator(RequiredValidator.Instance); @@ -15633,68 +16050,59 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) }); builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.ChartText), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelFieldTable), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShowDataLabelsRange), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShapeProperties), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.Layout), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShowLeaderLines), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.LeaderLines), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredAreaSeries), 1, 1, version: FileFormatVersions.Office2013), new AnyParticle(0, 1) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<DLblsExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<Area3DChartExtension>(deep); } /// <summary> - /// <para>Defines the LineSerExtension Class.</para> + /// <para>Defines the BubbleChartExtension Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle <c15:filteredSeriesTitle></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle <c15:filteredCategoryTitle></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange <c15:datalabelsRange></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions <c15:categoryFilterExceptions></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredBubbleSeries <c15:filteredBubbleSeries></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(11, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class LineSerExtension : OpenXmlCompositeElement + public partial class BubbleChartExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the LineSerExtension class. + /// Initializes a new instance of the BubbleChartExtension class. /// </summary> - public LineSerExtension() : base() + public BubbleChartExtension() : base() { } /// <summary> - /// Initializes a new instance of the LineSerExtension class with the specified child elements. + /// Initializes a new instance of the BubbleChartExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public LineSerExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public BubbleChartExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the LineSerExtension class with the specified child elements. + /// Initializes a new instance of the BubbleChartExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public LineSerExtension(params OpenXmlElement[] childElements) : base(childElements) + public BubbleChartExtension(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the LineSerExtension class from outer XML. + /// Initializes a new instance of the BubbleChartExtension class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public LineSerExtension(string outerXml) : base(outerXml) + public BubbleChartExtension(string outerXml) : base(outerXml) { } @@ -15718,11 +16126,8 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions>(); - builder.AddElement<LineSerExtension>() + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredBubbleSeries>(); + builder.AddElement<BubbleChartExtension>() .AddAttribute(0, "uri", a => a.Uri, aBuilder => { aBuilder.AddValidator(RequiredValidator.Instance); @@ -15730,65 +16135,59 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) }); builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredBubbleSeries), 1, 1, version: FileFormatVersions.Office2013), new AnyParticle(0, 1) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<LineSerExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<BubbleChartExtension>(deep); } /// <summary> - /// <para>Defines the ScatterSerExtension Class.</para> + /// <para>Defines the SurfaceChartExtension Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle <c15:filteredSeriesTitle></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle <c15:filteredCategoryTitle></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange <c15:datalabelsRange></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions <c15:categoryFilterExceptions></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSurfaceSeries <c15:filteredSurfaceSeries></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(11, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class ScatterSerExtension : OpenXmlCompositeElement + public partial class SurfaceChartExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the ScatterSerExtension class. + /// Initializes a new instance of the SurfaceChartExtension class. /// </summary> - public ScatterSerExtension() : base() + public SurfaceChartExtension() : base() { } /// <summary> - /// Initializes a new instance of the ScatterSerExtension class with the specified child elements. + /// Initializes a new instance of the SurfaceChartExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public ScatterSerExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public SurfaceChartExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the ScatterSerExtension class with the specified child elements. + /// Initializes a new instance of the SurfaceChartExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public ScatterSerExtension(params OpenXmlElement[] childElements) : base(childElements) + public SurfaceChartExtension(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the ScatterSerExtension class from outer XML. + /// Initializes a new instance of the SurfaceChartExtension class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public ScatterSerExtension(string outerXml) : base(outerXml) + public SurfaceChartExtension(string outerXml) : base(outerXml) { } @@ -15812,11 +16211,8 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions>(); - builder.AddElement<ScatterSerExtension>() + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSurfaceSeries>(); + builder.AddElement<SurfaceChartExtension>() .AddAttribute(0, "uri", a => a.Uri, aBuilder => { aBuilder.AddValidator(RequiredValidator.Instance); @@ -15824,65 +16220,59 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) }); builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSurfaceSeries), 1, 1, version: FileFormatVersions.Office2013), new AnyParticle(0, 1) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<ScatterSerExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<SurfaceChartExtension>(deep); } /// <summary> - /// <para>Defines the RadarSerExtension Class.</para> + /// <para>Defines the Surface3DChartExtension Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle <c15:filteredSeriesTitle></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle <c15:filteredCategoryTitle></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange <c15:datalabelsRange></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions <c15:categoryFilterExceptions></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSurfaceSeries <c15:filteredSurfaceSeries></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(11, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class RadarSerExtension : OpenXmlCompositeElement + public partial class Surface3DChartExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the RadarSerExtension class. + /// Initializes a new instance of the Surface3DChartExtension class. /// </summary> - public RadarSerExtension() : base() + public Surface3DChartExtension() : base() { } /// <summary> - /// Initializes a new instance of the RadarSerExtension class with the specified child elements. + /// Initializes a new instance of the Surface3DChartExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public RadarSerExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public Surface3DChartExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the RadarSerExtension class with the specified child elements. + /// Initializes a new instance of the Surface3DChartExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public RadarSerExtension(params OpenXmlElement[] childElements) : base(childElements) + public Surface3DChartExtension(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the RadarSerExtension class from outer XML. + /// Initializes a new instance of the Surface3DChartExtension class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public RadarSerExtension(string outerXml) : base(outerXml) + public Surface3DChartExtension(string outerXml) : base(outerXml) { } @@ -15906,11 +16296,8 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions>(); - builder.AddElement<RadarSerExtension>() + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSurfaceSeries>(); + builder.AddElement<Surface3DChartExtension>() .AddAttribute(0, "uri", a => a.Uri, aBuilder => { aBuilder.AddValidator(RequiredValidator.Instance); @@ -15918,65 +16305,59 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) }); builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSurfaceSeries), 1, 1, version: FileFormatVersions.Office2013), new AnyParticle(0, 1) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<RadarSerExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<Surface3DChartExtension>(deep); } /// <summary> - /// <para>Defines the AreaSerExtension Class.</para> + /// <para>Defines the CatAxExtension Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle <c15:filteredSeriesTitle></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle <c15:filteredCategoryTitle></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange <c15:datalabelsRange></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions <c15:categoryFilterExceptions></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.NumberingFormat <c15:numFmt></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(11, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class AreaSerExtension : OpenXmlCompositeElement + public partial class CatAxExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the AreaSerExtension class. + /// Initializes a new instance of the CatAxExtension class. /// </summary> - public AreaSerExtension() : base() + public CatAxExtension() : base() { } /// <summary> - /// Initializes a new instance of the AreaSerExtension class with the specified child elements. + /// Initializes a new instance of the CatAxExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public AreaSerExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public CatAxExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the AreaSerExtension class with the specified child elements. + /// Initializes a new instance of the CatAxExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public AreaSerExtension(params OpenXmlElement[] childElements) : base(childElements) + public CatAxExtension(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the AreaSerExtension class from outer XML. + /// Initializes a new instance of the CatAxExtension class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public AreaSerExtension(string outerXml) : base(outerXml) + public CatAxExtension(string outerXml) : base(outerXml) { } @@ -16000,11 +16381,8 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions>(); - builder.AddElement<AreaSerExtension>() + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.NumberingFormat>(); + builder.AddElement<CatAxExtension>() .AddAttribute(0, "uri", a => a.Uri, aBuilder => { aBuilder.AddValidator(RequiredValidator.Instance); @@ -16012,65 +16390,59 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) }); builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.NumberingFormat), 1, 1, version: FileFormatVersions.Office2013), new AnyParticle(0, 1) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<AreaSerExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<CatAxExtension>(deep); } /// <summary> - /// <para>Defines the PieSerExtension Class.</para> + /// <para>Defines the DateAxExtension Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle <c15:filteredSeriesTitle></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle <c15:filteredCategoryTitle></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange <c15:datalabelsRange></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions <c15:categoryFilterExceptions></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.NumberingFormat <c15:numFmt></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(11, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class PieSerExtension : OpenXmlCompositeElement + public partial class DateAxExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the PieSerExtension class. + /// Initializes a new instance of the DateAxExtension class. /// </summary> - public PieSerExtension() : base() + public DateAxExtension() : base() { } /// <summary> - /// Initializes a new instance of the PieSerExtension class with the specified child elements. + /// Initializes a new instance of the DateAxExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public PieSerExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public DateAxExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the PieSerExtension class with the specified child elements. + /// Initializes a new instance of the DateAxExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public PieSerExtension(params OpenXmlElement[] childElements) : base(childElements) + public DateAxExtension(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the PieSerExtension class from outer XML. + /// Initializes a new instance of the DateAxExtension class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public PieSerExtension(string outerXml) : base(outerXml) + public DateAxExtension(string outerXml) : base(outerXml) { } @@ -16094,11 +16466,8 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions>(); - builder.AddElement<PieSerExtension>() + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.NumberingFormat>(); + builder.AddElement<DateAxExtension>() .AddAttribute(0, "uri", a => a.Uri, aBuilder => { aBuilder.AddValidator(RequiredValidator.Instance); @@ -16106,64 +16475,59 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) }); builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.NumberingFormat), 1, 1, version: FileFormatVersions.Office2013), new AnyParticle(0, 1) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<PieSerExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<DateAxExtension>(deep); } /// <summary> - /// <para>Defines the SurfaceSerExtension Class.</para> + /// <para>Defines the SerAxExtension Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle <c15:filteredSeriesTitle></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle <c15:filteredCategoryTitle></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions <c15:categoryFilterExceptions></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.NumberingFormat <c15:numFmt></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(11, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class SurfaceSerExtension : OpenXmlCompositeElement + public partial class SerAxExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the SurfaceSerExtension class. + /// Initializes a new instance of the SerAxExtension class. /// </summary> - public SurfaceSerExtension() : base() + public SerAxExtension() : base() { } /// <summary> - /// Initializes a new instance of the SurfaceSerExtension class with the specified child elements. + /// Initializes a new instance of the SerAxExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public SurfaceSerExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public SerAxExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the SurfaceSerExtension class with the specified child elements. + /// Initializes a new instance of the SerAxExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public SurfaceSerExtension(params OpenXmlElement[] childElements) : base(childElements) + public SerAxExtension(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the SurfaceSerExtension class from outer XML. + /// Initializes a new instance of the SerAxExtension class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public SurfaceSerExtension(string outerXml) : base(outerXml) + public SerAxExtension(string outerXml) : base(outerXml) { } @@ -16187,10 +16551,8 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions>(); - builder.AddElement<SurfaceSerExtension>() + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.NumberingFormat>(); + builder.AddElement<SerAxExtension>() .AddAttribute(0, "uri", a => a.Uri, aBuilder => { aBuilder.AddValidator(RequiredValidator.Instance); @@ -16198,61 +16560,59 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) }); builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.NumberingFormat), 1, 1, version: FileFormatVersions.Office2013), new AnyParticle(0, 1) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<SurfaceSerExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<SerAxExtension>(deep); } /// <summary> - /// <para>Defines the LineChartExtension Class.</para> + /// <para>Defines the ValAxExtension Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredLineSeriesExtension <c15:filteredLineSeries></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.NumberingFormat <c15:numFmt></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(11, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class LineChartExtension : OpenXmlCompositeElement + public partial class ValAxExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the LineChartExtension class. + /// Initializes a new instance of the ValAxExtension class. /// </summary> - public LineChartExtension() : base() + public ValAxExtension() : base() { } /// <summary> - /// Initializes a new instance of the LineChartExtension class with the specified child elements. + /// Initializes a new instance of the ValAxExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public LineChartExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public ValAxExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the LineChartExtension class with the specified child elements. + /// Initializes a new instance of the ValAxExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public LineChartExtension(params OpenXmlElement[] childElements) : base(childElements) + public ValAxExtension(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the LineChartExtension class from outer XML. + /// Initializes a new instance of the ValAxExtension class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public LineChartExtension(string outerXml) : base(outerXml) + public ValAxExtension(string outerXml) : base(outerXml) { } @@ -16276,8 +16636,8 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredLineSeriesExtension>(); - builder.AddElement<LineChartExtension>() + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.NumberingFormat>(); + builder.AddElement<ValAxExtension>() .AddAttribute(0, "uri", a => a.Uri, aBuilder => { aBuilder.AddValidator(RequiredValidator.Instance); @@ -16285,1308 +16645,1195 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) }); builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredLineSeriesExtension), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.NumberingFormat), 1, 1, version: FileFormatVersions.Office2013), new AnyParticle(0, 1) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<LineChartExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<ValAxExtension>(deep); } /// <summary> - /// <para>Defines the Line3DChartExtension Class.</para> + /// <para>Defines the UpDownBars Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:upDownBars.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredLineSeriesExtension <c15:filteredLineSeries></description></item> + /// <item><description>GapWidth <c:gapWidth></description></item> + /// <item><description>UpBars <c:upBars></description></item> + /// <item><description>DownBars <c:downBars></description></item> + /// <item><description>ExtensionList <c:extLst></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "ext")] + [SchemaAttr(11, "upDownBars")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class Line3DChartExtension : OpenXmlCompositeElement + public partial class UpDownBars : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the Line3DChartExtension class. + /// Initializes a new instance of the UpDownBars class. /// </summary> - public Line3DChartExtension() : base() + public UpDownBars() : base() { } /// <summary> - /// Initializes a new instance of the Line3DChartExtension class with the specified child elements. + /// Initializes a new instance of the UpDownBars class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public Line3DChartExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public UpDownBars(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the Line3DChartExtension class with the specified child elements. + /// Initializes a new instance of the UpDownBars class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public Line3DChartExtension(params OpenXmlElement[] childElements) : base(childElements) + public UpDownBars(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// <summary> + /// Initializes a new instance of the UpDownBars class from outer XML. + /// </summary> + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public UpDownBars(string outerXml) : base(outerXml) + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(11, "upDownBars"); + builder.AddChild<GapWidth>(); + builder.AddChild<UpBars>(); + builder.AddChild<DownBars>(); + builder.AddChild<ExtensionList>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.GapWidth), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.UpBars), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DownBars), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) + }; + } + + /// <summary> + /// <para>Gap Width.</para> + /// <para>Represents the following element tag in the schema: c:gapWidth.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public GapWidth? GapWidth + { + get => GetElement<GapWidth>(); + set => SetElement(value); + } + + /// <summary> + /// <para>Up Bars.</para> + /// <para>Represents the following element tag in the schema: c:upBars.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public UpBars? UpBars { + get => GetElement<UpBars>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the Line3DChartExtension class from outer XML. + /// <para>Down Bars.</para> + /// <para>Represents the following element tag in the schema: c:downBars.</para> /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public Line3DChartExtension(string outerXml) : base(outerXml) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public DownBars? DownBars { + get => GetElement<DownBars>(); + set => SetElement(value); } /// <summary> - /// <para>URI</para> - /// <para>Represents the following attribute in the schema: uri</para> + /// <para>Chart Extensibility.</para> + /// <para>Represents the following element tag in the schema: c:extLst.</para> /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "uri")] -#pragma warning restore CS0618 // Type or member is obsolete - - public StringValue? Uri - { - get => GetAttribute<StringValue>(); - set => SetAttribute(value); - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public ExtensionList? ExtensionList { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredLineSeriesExtension>(); - builder.AddElement<Line3DChartExtension>() -.AddAttribute(0, "uri", a => a.Uri, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}); - builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredLineSeriesExtension), 1, 1, version: FileFormatVersions.Office2013), - new AnyParticle(0, 1) - }; + get => GetElement<ExtensionList>(); + set => SetElement(value); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<Line3DChartExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<UpDownBars>(deep); } /// <summary> - /// <para>Defines the ScatterChartExtension Class.</para> + /// <para>Defines the StockChartExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredScatterSeries <c15:filteredScatterSeries></description></item> + /// <item><description>StockChartExtension <c:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "ext")] + [SchemaAttr(11, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class ScatterChartExtension : OpenXmlCompositeElement + public partial class StockChartExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the ScatterChartExtension class. + /// Initializes a new instance of the StockChartExtensionList class. /// </summary> - public ScatterChartExtension() : base() + public StockChartExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the ScatterChartExtension class with the specified child elements. + /// Initializes a new instance of the StockChartExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public ScatterChartExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public StockChartExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the ScatterChartExtension class with the specified child elements. + /// Initializes a new instance of the StockChartExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public ScatterChartExtension(params OpenXmlElement[] childElements) : base(childElements) + public StockChartExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the ScatterChartExtension class from outer XML. + /// Initializes a new instance of the StockChartExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public ScatterChartExtension(string outerXml) : base(outerXml) - { - } - - /// <summary> - /// <para>URI</para> - /// <para>Represents the following attribute in the schema: uri</para> - /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "uri")] -#pragma warning restore CS0618 // Type or member is obsolete - - public StringValue? Uri + public StockChartExtensionList(string outerXml) : base(outerXml) { - get => GetAttribute<StringValue>(); - set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredScatterSeries>(); - builder.AddElement<ScatterChartExtension>() -.AddAttribute(0, "uri", a => a.Uri, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}); - builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + builder.SetSchema(11, "extLst"); + builder.AddChild<StockChartExtension>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredScatterSeries), 1, 1, version: FileFormatVersions.Office2013), - new AnyParticle(0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.StockChartExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<ScatterChartExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<StockChartExtensionList>(deep); } /// <summary> - /// <para>Defines the RadarChartExtension Class.</para> + /// <para>Defines the PieChartExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredRadarSeries <c15:filteredRadarSeries></description></item> + /// <item><description>PieChartExtension <c:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "ext")] + [SchemaAttr(11, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class RadarChartExtension : OpenXmlCompositeElement + public partial class PieChartExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the RadarChartExtension class. + /// Initializes a new instance of the PieChartExtensionList class. /// </summary> - public RadarChartExtension() : base() + public PieChartExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the RadarChartExtension class with the specified child elements. + /// Initializes a new instance of the PieChartExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public RadarChartExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public PieChartExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the RadarChartExtension class with the specified child elements. + /// Initializes a new instance of the PieChartExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public RadarChartExtension(params OpenXmlElement[] childElements) : base(childElements) + public PieChartExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the RadarChartExtension class from outer XML. + /// Initializes a new instance of the PieChartExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public RadarChartExtension(string outerXml) : base(outerXml) - { - } - - /// <summary> - /// <para>URI</para> - /// <para>Represents the following attribute in the schema: uri</para> - /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "uri")] -#pragma warning restore CS0618 // Type or member is obsolete - - public StringValue? Uri + public PieChartExtensionList(string outerXml) : base(outerXml) { - get => GetAttribute<StringValue>(); - set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredRadarSeries>(); - builder.AddElement<RadarChartExtension>() -.AddAttribute(0, "uri", a => a.Uri, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}); - builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + builder.SetSchema(11, "extLst"); + builder.AddChild<PieChartExtension>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredRadarSeries), 1, 1, version: FileFormatVersions.Office2013), - new AnyParticle(0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PieChartExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<RadarChartExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<PieChartExtensionList>(deep); } /// <summary> - /// <para>Defines the BarChartExtension Class.</para> + /// <para>Defines the Pie3DChartExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredBarSeries <c15:filteredBarSeries></description></item> + /// <item><description>Pie3DChartExtension <c:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "ext")] + [SchemaAttr(11, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class BarChartExtension : OpenXmlCompositeElement + public partial class Pie3DChartExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the BarChartExtension class. + /// Initializes a new instance of the Pie3DChartExtensionList class. /// </summary> - public BarChartExtension() : base() + public Pie3DChartExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the BarChartExtension class with the specified child elements. + /// Initializes a new instance of the Pie3DChartExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public BarChartExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public Pie3DChartExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the BarChartExtension class with the specified child elements. + /// Initializes a new instance of the Pie3DChartExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public BarChartExtension(params OpenXmlElement[] childElements) : base(childElements) + public Pie3DChartExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the BarChartExtension class from outer XML. + /// Initializes a new instance of the Pie3DChartExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public BarChartExtension(string outerXml) : base(outerXml) - { - } - - /// <summary> - /// <para>URI</para> - /// <para>Represents the following attribute in the schema: uri</para> - /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "uri")] -#pragma warning restore CS0618 // Type or member is obsolete - - public StringValue? Uri + public Pie3DChartExtensionList(string outerXml) : base(outerXml) { - get => GetAttribute<StringValue>(); - set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredBarSeries>(); - builder.AddElement<BarChartExtension>() -.AddAttribute(0, "uri", a => a.Uri, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}); - builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + builder.SetSchema(11, "extLst"); + builder.AddChild<Pie3DChartExtension>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredBarSeries), 1, 1, version: FileFormatVersions.Office2013), - new AnyParticle(0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Pie3DChartExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<BarChartExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<Pie3DChartExtensionList>(deep); } /// <summary> - /// <para>Defines the Bar3DChartExtension Class.</para> + /// <para>Defines the NumRefExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredBarSeries <c15:filteredBarSeries></description></item> + /// <item><description>NumRefExtension <c:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "ext")] + [SchemaAttr(11, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class Bar3DChartExtension : OpenXmlCompositeElement + public partial class NumRefExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the Bar3DChartExtension class. - /// </summary> - public Bar3DChartExtension() : base() - { - } - - /// <summary> - /// Initializes a new instance of the Bar3DChartExtension class with the specified child elements. + /// Initializes a new instance of the NumRefExtensionList class. /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public Bar3DChartExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public NumRefExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the Bar3DChartExtension class with the specified child elements. + /// Initializes a new instance of the NumRefExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public Bar3DChartExtension(params OpenXmlElement[] childElements) : base(childElements) + public NumRefExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the Bar3DChartExtension class from outer XML. + /// Initializes a new instance of the NumRefExtensionList class with the specified child elements. /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public Bar3DChartExtension(string outerXml) : base(outerXml) + /// <param name="childElements">Specifies the child elements.</param> + public NumRefExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// <para>URI</para> - /// <para>Represents the following attribute in the schema: uri</para> + /// Initializes a new instance of the NumRefExtensionList class from outer XML. /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "uri")] -#pragma warning restore CS0618 // Type or member is obsolete - - public StringValue? Uri + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public NumRefExtensionList(string outerXml) : base(outerXml) { - get => GetAttribute<StringValue>(); - set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredBarSeries>(); - builder.AddElement<Bar3DChartExtension>() -.AddAttribute(0, "uri", a => a.Uri, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}); - builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + builder.SetSchema(11, "extLst"); + builder.AddChild<NumRefExtension>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredBarSeries), 1, 1, version: FileFormatVersions.Office2013), - new AnyParticle(0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.NumRefExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<Bar3DChartExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<NumRefExtensionList>(deep); } /// <summary> - /// <para>Defines the AreaChartExtension Class.</para> + /// <para>Defines the StrDataExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredAreaSeries <c15:filteredAreaSeries></description></item> + /// <item><description>StrDataExtension <c:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "ext")] + [SchemaAttr(11, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class AreaChartExtension : OpenXmlCompositeElement + public partial class StrDataExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the AreaChartExtension class. + /// Initializes a new instance of the StrDataExtensionList class. /// </summary> - public AreaChartExtension() : base() + public StrDataExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the AreaChartExtension class with the specified child elements. + /// Initializes a new instance of the StrDataExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public AreaChartExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public StrDataExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the AreaChartExtension class with the specified child elements. + /// Initializes a new instance of the StrDataExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public AreaChartExtension(params OpenXmlElement[] childElements) : base(childElements) + public StrDataExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the AreaChartExtension class from outer XML. + /// Initializes a new instance of the StrDataExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public AreaChartExtension(string outerXml) : base(outerXml) - { - } - - /// <summary> - /// <para>URI</para> - /// <para>Represents the following attribute in the schema: uri</para> - /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "uri")] -#pragma warning restore CS0618 // Type or member is obsolete - - public StringValue? Uri + public StrDataExtensionList(string outerXml) : base(outerXml) { - get => GetAttribute<StringValue>(); - set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredAreaSeries>(); - builder.AddElement<AreaChartExtension>() -.AddAttribute(0, "uri", a => a.Uri, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}); - builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + builder.SetSchema(11, "extLst"); + builder.AddChild<StrDataExtension>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredAreaSeries), 1, 1, version: FileFormatVersions.Office2013), - new AnyParticle(0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.StrDataExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<AreaChartExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<StrDataExtensionList>(deep); } /// <summary> - /// <para>Defines the Area3DChartExtension Class.</para> + /// <para>Defines the StrRefExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredAreaSeries <c15:filteredAreaSeries></description></item> + /// <item><description>StrRefExtension <c:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "ext")] + [SchemaAttr(11, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class Area3DChartExtension : OpenXmlCompositeElement + public partial class StrRefExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the Area3DChartExtension class. + /// Initializes a new instance of the StrRefExtensionList class. /// </summary> - public Area3DChartExtension() : base() + public StrRefExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the Area3DChartExtension class with the specified child elements. + /// Initializes a new instance of the StrRefExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public Area3DChartExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public StrRefExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the Area3DChartExtension class with the specified child elements. + /// Initializes a new instance of the StrRefExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public Area3DChartExtension(params OpenXmlElement[] childElements) : base(childElements) + public StrRefExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the Area3DChartExtension class from outer XML. + /// Initializes a new instance of the StrRefExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public Area3DChartExtension(string outerXml) : base(outerXml) - { - } - - /// <summary> - /// <para>URI</para> - /// <para>Represents the following attribute in the schema: uri</para> - /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "uri")] -#pragma warning restore CS0618 // Type or member is obsolete - - public StringValue? Uri + public StrRefExtensionList(string outerXml) : base(outerXml) { - get => GetAttribute<StringValue>(); - set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredAreaSeries>(); - builder.AddElement<Area3DChartExtension>() -.AddAttribute(0, "uri", a => a.Uri, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}); - builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + builder.SetSchema(11, "extLst"); + builder.AddChild<StrRefExtension>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredAreaSeries), 1, 1, version: FileFormatVersions.Office2013), - new AnyParticle(0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.StrRefExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<Area3DChartExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<StrRefExtensionList>(deep); } /// <summary> - /// <para>Defines the BubbleChartExtension Class.</para> + /// <para>Defines the MultiLevelStringCache Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:multiLvlStrCache.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredBubbleSeries <c15:filteredBubbleSeries></description></item> + /// <item><description>PointCount <c:ptCount></description></item> + /// <item><description>Level <c:lvl></description></item> + /// <item><description>ExtensionList <c:extLst></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "ext")] + [SchemaAttr(11, "multiLvlStrCache")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class BubbleChartExtension : OpenXmlCompositeElement + public partial class MultiLevelStringCache : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the BubbleChartExtension class. + /// Initializes a new instance of the MultiLevelStringCache class. /// </summary> - public BubbleChartExtension() : base() + public MultiLevelStringCache() : base() { } /// <summary> - /// Initializes a new instance of the BubbleChartExtension class with the specified child elements. + /// Initializes a new instance of the MultiLevelStringCache class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public BubbleChartExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public MultiLevelStringCache(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the BubbleChartExtension class with the specified child elements. + /// Initializes a new instance of the MultiLevelStringCache class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public BubbleChartExtension(params OpenXmlElement[] childElements) : base(childElements) + public MultiLevelStringCache(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the BubbleChartExtension class from outer XML. + /// Initializes a new instance of the MultiLevelStringCache class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public BubbleChartExtension(string outerXml) : base(outerXml) - { - } - - /// <summary> - /// <para>URI</para> - /// <para>Represents the following attribute in the schema: uri</para> - /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "uri")] -#pragma warning restore CS0618 // Type or member is obsolete - - public StringValue? Uri + public MultiLevelStringCache(string outerXml) : base(outerXml) { - get => GetAttribute<StringValue>(); - set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredBubbleSeries>(); - builder.AddElement<BubbleChartExtension>() -.AddAttribute(0, "uri", a => a.Uri, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}); - builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + builder.SetSchema(11, "multiLvlStrCache"); + builder.AddChild<PointCount>(); + builder.AddChild<Level>(); + builder.AddChild<ExtensionList>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredBubbleSeries), 1, 1, version: FileFormatVersions.Office2013), - new AnyParticle(0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PointCount), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Level), 0, 0), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) }; } + /// <summary> + /// <para>PointCount.</para> + /// <para>Represents the following element tag in the schema: c:ptCount.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public PointCount? PointCount + { + get => GetElement<PointCount>(); + set => SetElement(value); + } + /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<BubbleChartExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<MultiLevelStringCache>(deep); } /// <summary> - /// <para>Defines the SurfaceChartExtension Class.</para> + /// <para>Defines the MultiLvlStrRefExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSurfaceSeries <c15:filteredSurfaceSeries></description></item> + /// <item><description>MultiLvlStrRefExtension <c:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "ext")] + [SchemaAttr(11, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class SurfaceChartExtension : OpenXmlCompositeElement + public partial class MultiLvlStrRefExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the SurfaceChartExtension class. - /// </summary> - public SurfaceChartExtension() : base() - { - } - - /// <summary> - /// Initializes a new instance of the SurfaceChartExtension class with the specified child elements. + /// Initializes a new instance of the MultiLvlStrRefExtensionList class. /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public SurfaceChartExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public MultiLvlStrRefExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the SurfaceChartExtension class with the specified child elements. + /// Initializes a new instance of the MultiLvlStrRefExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public SurfaceChartExtension(params OpenXmlElement[] childElements) : base(childElements) + public MultiLvlStrRefExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the SurfaceChartExtension class from outer XML. + /// Initializes a new instance of the MultiLvlStrRefExtensionList class with the specified child elements. /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public SurfaceChartExtension(string outerXml) : base(outerXml) + /// <param name="childElements">Specifies the child elements.</param> + public MultiLvlStrRefExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// <para>URI</para> - /// <para>Represents the following attribute in the schema: uri</para> + /// Initializes a new instance of the MultiLvlStrRefExtensionList class from outer XML. /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "uri")] -#pragma warning restore CS0618 // Type or member is obsolete - - public StringValue? Uri + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public MultiLvlStrRefExtensionList(string outerXml) : base(outerXml) { - get => GetAttribute<StringValue>(); - set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSurfaceSeries>(); - builder.AddElement<SurfaceChartExtension>() -.AddAttribute(0, "uri", a => a.Uri, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}); - builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + builder.SetSchema(11, "extLst"); + builder.AddChild<MultiLvlStrRefExtension>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSurfaceSeries), 1, 1, version: FileFormatVersions.Office2013), - new AnyParticle(0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MultiLvlStrRefExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<SurfaceChartExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<MultiLvlStrRefExtensionList>(deep); } /// <summary> - /// <para>Defines the Surface3DChartExtension Class.</para> + /// <para>Defines the DLblExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSurfaceSeries <c15:filteredSurfaceSeries></description></item> + /// <item><description>DLblExtension <c:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "ext")] + [SchemaAttr(11, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class Surface3DChartExtension : OpenXmlCompositeElement + public partial class DLblExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the Surface3DChartExtension class. + /// Initializes a new instance of the DLblExtensionList class. /// </summary> - public Surface3DChartExtension() : base() + public DLblExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the Surface3DChartExtension class with the specified child elements. + /// Initializes a new instance of the DLblExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public Surface3DChartExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public DLblExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the Surface3DChartExtension class with the specified child elements. + /// Initializes a new instance of the DLblExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public Surface3DChartExtension(params OpenXmlElement[] childElements) : base(childElements) + public DLblExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the Surface3DChartExtension class from outer XML. + /// Initializes a new instance of the DLblExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public Surface3DChartExtension(string outerXml) : base(outerXml) - { - } - - /// <summary> - /// <para>URI</para> - /// <para>Represents the following attribute in the schema: uri</para> - /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "uri")] -#pragma warning restore CS0618 // Type or member is obsolete - - public StringValue? Uri + public DLblExtensionList(string outerXml) : base(outerXml) { - get => GetAttribute<StringValue>(); - set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSurfaceSeries>(); - builder.AddElement<Surface3DChartExtension>() -.AddAttribute(0, "uri", a => a.Uri, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}); - builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + builder.SetSchema(11, "extLst"); + builder.AddChild<DLblExtension>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSurfaceSeries), 1, 1, version: FileFormatVersions.Office2013), - new AnyParticle(0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DLblExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<Surface3DChartExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<DLblExtensionList>(deep); } /// <summary> - /// <para>Defines the CatAxExtension Class.</para> + /// <para>Defines the DLblsExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.NumberingFormat <c15:numFmt></description></item> + /// <item><description>DLblsExtension <c:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "ext")] + [SchemaAttr(11, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class CatAxExtension : OpenXmlCompositeElement + public partial class DLblsExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the CatAxExtension class. + /// Initializes a new instance of the DLblsExtensionList class. /// </summary> - public CatAxExtension() : base() + public DLblsExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the CatAxExtension class with the specified child elements. + /// Initializes a new instance of the DLblsExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public CatAxExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public DLblsExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the CatAxExtension class with the specified child elements. + /// Initializes a new instance of the DLblsExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public CatAxExtension(params OpenXmlElement[] childElements) : base(childElements) + public DLblsExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the CatAxExtension class from outer XML. + /// Initializes a new instance of the DLblsExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public CatAxExtension(string outerXml) : base(outerXml) - { - } - - /// <summary> - /// <para>URI</para> - /// <para>Represents the following attribute in the schema: uri</para> - /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "uri")] -#pragma warning restore CS0618 // Type or member is obsolete - - public StringValue? Uri + public DLblsExtensionList(string outerXml) : base(outerXml) { - get => GetAttribute<StringValue>(); - set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.NumberingFormat>(); - builder.AddElement<CatAxExtension>() -.AddAttribute(0, "uri", a => a.Uri, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}); - builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + builder.SetSchema(11, "extLst"); + builder.AddChild<DLblsExtension>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.NumberingFormat), 1, 1, version: FileFormatVersions.Office2013), - new AnyParticle(0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DLblsExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<CatAxExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<DLblsExtensionList>(deep); } /// <summary> - /// <para>Defines the DateAxExtension Class.</para> + /// <para>Defines the DataPoint Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:dPt.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.NumberingFormat <c15:numFmt></description></item> + /// <item><description>Index <c:idx></description></item> + /// <item><description>InvertIfNegative <c:invertIfNegative></description></item> + /// <item><description>Marker <c:marker></description></item> + /// <item><description>Bubble3D <c:bubble3D></description></item> + /// <item><description>Explosion <c:explosion></description></item> + /// <item><description>ChartShapeProperties <c:spPr></description></item> + /// <item><description>PictureOptions <c:pictureOptions></description></item> + /// <item><description>ExtensionList <c:extLst></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "ext")] + [SchemaAttr(11, "dPt")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class DateAxExtension : OpenXmlCompositeElement + public partial class DataPoint : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the DateAxExtension class. + /// Initializes a new instance of the DataPoint class. /// </summary> - public DateAxExtension() : base() + public DataPoint() : base() { } /// <summary> - /// Initializes a new instance of the DateAxExtension class with the specified child elements. + /// Initializes a new instance of the DataPoint class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public DateAxExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public DataPoint(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the DateAxExtension class with the specified child elements. + /// Initializes a new instance of the DataPoint class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public DateAxExtension(params OpenXmlElement[] childElements) : base(childElements) + public DataPoint(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the DateAxExtension class from outer XML. + /// Initializes a new instance of the DataPoint class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public DateAxExtension(string outerXml) : base(outerXml) - { - } - - /// <summary> - /// <para>URI</para> - /// <para>Represents the following attribute in the schema: uri</para> - /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "uri")] -#pragma warning restore CS0618 // Type or member is obsolete - - public StringValue? Uri + public DataPoint(string outerXml) : base(outerXml) { - get => GetAttribute<StringValue>(); - set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.NumberingFormat>(); - builder.AddElement<DateAxExtension>() -.AddAttribute(0, "uri", a => a.Uri, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}); - builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + builder.SetSchema(11, "dPt"); + builder.AddChild<Index>(); + builder.AddChild<InvertIfNegative>(); + builder.AddChild<Marker>(); + builder.AddChild<Bubble3D>(); + builder.AddChild<Explosion>(); + builder.AddChild<ChartShapeProperties>(); + builder.AddChild<PictureOptions>(); + builder.AddChild<ExtensionList>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.NumberingFormat), 1, 1, version: FileFormatVersions.Office2013), - new AnyParticle(0, 1) - }; - } - - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<DateAxExtension>(deep); - } - - /// <summary> - /// <para>Defines the SerAxExtension Class.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> - /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.NumberingFormat <c15:numFmt></description></item> - /// </list> - /// </remark> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "ext")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class SerAxExtension : OpenXmlCompositeElement - { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Index), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.InvertIfNegative), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Marker), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Bubble3D), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Explosion), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartShapeProperties), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PictureOptions), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) + }; + } + /// <summary> - /// Initializes a new instance of the SerAxExtension class. + /// <para>Index.</para> + /// <para>Represents the following element tag in the schema: c:idx.</para> /// </summary> - public SerAxExtension() : base() + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public Index? Index { + get => GetElement<Index>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the SerAxExtension class with the specified child elements. + /// <para>Invert if Negative.</para> + /// <para>Represents the following element tag in the schema: c:invertIfNegative.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public SerAxExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public InvertIfNegative? InvertIfNegative { + get => GetElement<InvertIfNegative>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the SerAxExtension class with the specified child elements. + /// <para>Marker.</para> + /// <para>Represents the following element tag in the schema: c:marker.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public SerAxExtension(params OpenXmlElement[] childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public Marker? Marker { + get => GetElement<Marker>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the SerAxExtension class from outer XML. + /// <para>3D Bubble.</para> + /// <para>Represents the following element tag in the schema: c:bubble3D.</para> /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public SerAxExtension(string outerXml) : base(outerXml) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public Bubble3D? Bubble3D { + get => GetElement<Bubble3D>(); + set => SetElement(value); } /// <summary> - /// <para>URI</para> - /// <para>Represents the following attribute in the schema: uri</para> + /// <para>Explosion.</para> + /// <para>Represents the following element tag in the schema: c:explosion.</para> /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public Explosion? Explosion + { + get => GetElement<Explosion>(); + set => SetElement(value); + } -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "uri")] -#pragma warning restore CS0618 // Type or member is obsolete + /// <summary> + /// <para>ChartShapeProperties.</para> + /// <para>Represents the following element tag in the schema: c:spPr.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public ChartShapeProperties? ChartShapeProperties + { + get => GetElement<ChartShapeProperties>(); + set => SetElement(value); + } - public StringValue? Uri + /// <summary> + /// <para>PictureOptions.</para> + /// <para>Represents the following element tag in the schema: c:pictureOptions.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public PictureOptions? PictureOptions { - get => GetAttribute<StringValue>(); - set => SetAttribute(value); + get => GetElement<PictureOptions>(); + set => SetElement(value); } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// <summary> + /// <para>Chart Extensibility.</para> + /// <para>Represents the following element tag in the schema: c:extLst.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public ExtensionList? ExtensionList { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.NumberingFormat>(); - builder.AddElement<SerAxExtension>() -.AddAttribute(0, "uri", a => a.Uri, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}); - builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.NumberingFormat), 1, 1, version: FileFormatVersions.Office2013), - new AnyParticle(0, 1) - }; + get => GetElement<ExtensionList>(); + set => SetElement(value); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<SerAxExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<DataPoint>(deep); } /// <summary> - /// <para>Defines the ValAxExtension Class.</para> + /// <para>Defines the Trendline Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:trendline.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.NumberingFormat <c15:numFmt></description></item> + /// <item><description>TrendlineName <c:name></description></item> + /// <item><description>ChartShapeProperties <c:spPr></description></item> + /// <item><description>TrendlineType <c:trendlineType></description></item> + /// <item><description>PolynomialOrder <c:order></description></item> + /// <item><description>Period <c:period></description></item> + /// <item><description>Forward <c:forward></description></item> + /// <item><description>Backward <c:backward></description></item> + /// <item><description>Intercept <c:intercept></description></item> + /// <item><description>DisplayRSquaredValue <c:dispRSqr></description></item> + /// <item><description>DisplayEquation <c:dispEq></description></item> + /// <item><description>TrendlineLabel <c:trendlineLbl></description></item> + /// <item><description>ExtensionList <c:extLst></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "ext")] + [SchemaAttr(11, "trendline")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class ValAxExtension : OpenXmlCompositeElement + public partial class Trendline : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the ValAxExtension class. + /// Initializes a new instance of the Trendline class. /// </summary> - public ValAxExtension() : base() + public Trendline() : base() { } /// <summary> - /// Initializes a new instance of the ValAxExtension class with the specified child elements. + /// Initializes a new instance of the Trendline class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public ValAxExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public Trendline(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the ValAxExtension class with the specified child elements. + /// Initializes a new instance of the Trendline class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public ValAxExtension(params OpenXmlElement[] childElements) : base(childElements) + public Trendline(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the ValAxExtension class from outer XML. + /// Initializes a new instance of the Trendline class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public ValAxExtension(string outerXml) : base(outerXml) - { - } - - /// <summary> - /// <para>URI</para> - /// <para>Represents the following attribute in the schema: uri</para> - /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "uri")] -#pragma warning restore CS0618 // Type or member is obsolete - - public StringValue? Uri + public Trendline(string outerXml) : base(outerXml) { - get => GetAttribute<StringValue>(); - set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.NumberingFormat>(); - builder.AddElement<ValAxExtension>() -.AddAttribute(0, "uri", a => a.Uri, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}); - builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + builder.SetSchema(11, "trendline"); + builder.AddChild<TrendlineName>(); + builder.AddChild<ChartShapeProperties>(); + builder.AddChild<TrendlineType>(); + builder.AddChild<PolynomialOrder>(); + builder.AddChild<Period>(); + builder.AddChild<Forward>(); + builder.AddChild<Backward>(); + builder.AddChild<Intercept>(); + builder.AddChild<DisplayRSquaredValue>(); + builder.AddChild<DisplayEquation>(); + builder.AddChild<TrendlineLabel>(); + builder.AddChild<ExtensionList>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.NumberingFormat), 1, 1, version: FileFormatVersions.Office2013), - new AnyParticle(0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TrendlineName), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartShapeProperties), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TrendlineType), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PolynomialOrder), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Period), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Forward), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Backward), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Intercept), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DisplayRSquaredValue), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DisplayEquation), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TrendlineLabel), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) }; } - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<ValAxExtension>(deep); - } + /// <summary> + /// <para>Trendline Name.</para> + /// <para>Represents the following element tag in the schema: c:name.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public TrendlineName? TrendlineName + { + get => GetElement<TrendlineName>(); + set => SetElement(value); + } + + /// <summary> + /// <para>ChartShapeProperties.</para> + /// <para>Represents the following element tag in the schema: c:spPr.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public ChartShapeProperties? ChartShapeProperties + { + get => GetElement<ChartShapeProperties>(); + set => SetElement(value); + } + + /// <summary> + /// <para>Trendline Type.</para> + /// <para>Represents the following element tag in the schema: c:trendlineType.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public TrendlineType? TrendlineType + { + get => GetElement<TrendlineType>(); + set => SetElement(value); + } - /// <summary> - /// <para>Defines the UpDownBars Class.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:upDownBars.</para> - /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>GapWidth <c:gapWidth></description></item> - /// <item><description>UpBars <c:upBars></description></item> - /// <item><description>DownBars <c:downBars></description></item> - /// <item><description>ExtensionList <c:extLst></description></item> - /// </list> - /// </remark> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "upDownBars")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class UpDownBars : OpenXmlCompositeElement - { /// <summary> - /// Initializes a new instance of the UpDownBars class. + /// <para>Polynomial Trendline Order.</para> + /// <para>Represents the following element tag in the schema: c:order.</para> /// </summary> - public UpDownBars() : base() + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public PolynomialOrder? PolynomialOrder { + get => GetElement<PolynomialOrder>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the UpDownBars class with the specified child elements. + /// <para>Period.</para> + /// <para>Represents the following element tag in the schema: c:period.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public UpDownBars(IEnumerable<OpenXmlElement> childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public Period? Period { + get => GetElement<Period>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the UpDownBars class with the specified child elements. + /// <para>Forward.</para> + /// <para>Represents the following element tag in the schema: c:forward.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public UpDownBars(params OpenXmlElement[] childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public Forward? Forward { + get => GetElement<Forward>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the UpDownBars class from outer XML. + /// <para>Backward.</para> + /// <para>Represents the following element tag in the schema: c:backward.</para> /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public UpDownBars(string outerXml) : base(outerXml) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public Backward? Backward { + get => GetElement<Backward>(); + set => SetElement(value); } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// <summary> + /// <para>Intercept.</para> + /// <para>Represents the following element tag in the schema: c:intercept.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public Intercept? Intercept { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "upDownBars"); - builder.AddChild<GapWidth>(); - builder.AddChild<UpBars>(); - builder.AddChild<DownBars>(); - builder.AddChild<ExtensionList>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.GapWidth), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.UpBars), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DownBars), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) - }; + get => GetElement<Intercept>(); + set => SetElement(value); } /// <summary> - /// <para>Gap Width.</para> - /// <para>Represents the following element tag in the schema: c:gapWidth.</para> + /// <para>Display R Squared Value.</para> + /// <para>Represents the following element tag in the schema: c:dispRSqr.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public GapWidth? GapWidth + public DisplayRSquaredValue? DisplayRSquaredValue { - get => GetElement<GapWidth>(); + get => GetElement<DisplayRSquaredValue>(); set => SetElement(value); } /// <summary> - /// <para>Up Bars.</para> - /// <para>Represents the following element tag in the schema: c:upBars.</para> + /// <para>Display Equation.</para> + /// <para>Represents the following element tag in the schema: c:dispEq.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public UpBars? UpBars + public DisplayEquation? DisplayEquation { - get => GetElement<UpBars>(); + get => GetElement<DisplayEquation>(); set => SetElement(value); } /// <summary> - /// <para>Down Bars.</para> - /// <para>Represents the following element tag in the schema: c:downBars.</para> + /// <para>Trendline Label.</para> + /// <para>Represents the following element tag in the schema: c:trendlineLbl.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public DownBars? DownBars + public TrendlineLabel? TrendlineLabel { - get => GetElement<DownBars>(); + get => GetElement<TrendlineLabel>(); set => SetElement(value); } @@ -17604,506 +17851,524 @@ public ExtensionList? ExtensionList } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<UpDownBars>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<Trendline>(deep); } /// <summary> - /// <para>Defines the StockChartExtensionList Class.</para> + /// <para>Defines the ErrorBars Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:errBars.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>StockChartExtension <c:ext></description></item> + /// <item><description>ErrorDirection <c:errDir></description></item> + /// <item><description>ErrorBarType <c:errBarType></description></item> + /// <item><description>ErrorBarValueType <c:errValType></description></item> + /// <item><description>NoEndCap <c:noEndCap></description></item> + /// <item><description>Plus <c:plus></description></item> + /// <item><description>Minus <c:minus></description></item> + /// <item><description>ErrorBarValue <c:val></description></item> + /// <item><description>ChartShapeProperties <c:spPr></description></item> + /// <item><description>ExtensionList <c:extLst></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "extLst")] + [SchemaAttr(11, "errBars")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class StockChartExtensionList : OpenXmlCompositeElement + public partial class ErrorBars : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the StockChartExtensionList class. + /// Initializes a new instance of the ErrorBars class. /// </summary> - public StockChartExtensionList() : base() + public ErrorBars() : base() { } /// <summary> - /// Initializes a new instance of the StockChartExtensionList class with the specified child elements. + /// Initializes a new instance of the ErrorBars class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public StockChartExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public ErrorBars(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the StockChartExtensionList class with the specified child elements. + /// Initializes a new instance of the ErrorBars class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public StockChartExtensionList(params OpenXmlElement[] childElements) : base(childElements) + public ErrorBars(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the StockChartExtensionList class from outer XML. + /// Initializes a new instance of the ErrorBars class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public StockChartExtensionList(string outerXml) : base(outerXml) + public ErrorBars(string outerXml) : base(outerXml) { } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "extLst"); - builder.AddChild<StockChartExtension>(); + builder.SetSchema(11, "errBars"); + builder.AddChild<ErrorDirection>(); + builder.AddChild<ErrorBarType>(); + builder.AddChild<ErrorBarValueType>(); + builder.AddChild<NoEndCap>(); + builder.AddChild<Plus>(); + builder.AddChild<Minus>(); + builder.AddChild<ErrorBarValue>(); + builder.AddChild<ChartShapeProperties>(); + builder.AddChild<ExtensionList>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.StockChartExtension), 0, 0) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ErrorDirection), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ErrorBarType), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ErrorBarValueType), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.NoEndCap), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Plus), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Minus), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ErrorBarValue), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartShapeProperties), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) }; } - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<StockChartExtensionList>(deep); - } - - /// <summary> - /// <para>Defines the PieChartExtensionList Class.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> - /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>PieChartExtension <c:ext></description></item> - /// </list> - /// </remark> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "extLst")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class PieChartExtensionList : OpenXmlCompositeElement - { /// <summary> - /// Initializes a new instance of the PieChartExtensionList class. + /// <para>Error Bar Direction.</para> + /// <para>Represents the following element tag in the schema: c:errDir.</para> /// </summary> - public PieChartExtensionList() : base() + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public ErrorDirection? ErrorDirection { + get => GetElement<ErrorDirection>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the PieChartExtensionList class with the specified child elements. + /// <para>Error Bar Type.</para> + /// <para>Represents the following element tag in the schema: c:errBarType.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public PieChartExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public ErrorBarType? ErrorBarType { + get => GetElement<ErrorBarType>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the PieChartExtensionList class with the specified child elements. + /// <para>Error Bar Value Type.</para> + /// <para>Represents the following element tag in the schema: c:errValType.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public PieChartExtensionList(params OpenXmlElement[] childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public ErrorBarValueType? ErrorBarValueType { + get => GetElement<ErrorBarValueType>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the PieChartExtensionList class from outer XML. + /// <para>No End Cap.</para> + /// <para>Represents the following element tag in the schema: c:noEndCap.</para> /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public PieChartExtensionList(string outerXml) : base(outerXml) - { - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public NoEndCap? NoEndCap { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "extLst"); - builder.AddChild<PieChartExtension>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PieChartExtension), 0, 0) - }; - } - - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<PieChartExtensionList>(deep); - } - - /// <summary> - /// <para>Defines the Pie3DChartExtensionList Class.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> - /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>Pie3DChartExtension <c:ext></description></item> - /// </list> - /// </remark> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "extLst")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class Pie3DChartExtensionList : OpenXmlCompositeElement - { + get => GetElement<NoEndCap>(); + set => SetElement(value); + } + /// <summary> - /// Initializes a new instance of the Pie3DChartExtensionList class. + /// <para>Plus.</para> + /// <para>Represents the following element tag in the schema: c:plus.</para> /// </summary> - public Pie3DChartExtensionList() : base() + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public Plus? Plus { + get => GetElement<Plus>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the Pie3DChartExtensionList class with the specified child elements. + /// <para>Minus.</para> + /// <para>Represents the following element tag in the schema: c:minus.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public Pie3DChartExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public Minus? Minus { + get => GetElement<Minus>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the Pie3DChartExtensionList class with the specified child elements. + /// <para>Error Bar Value.</para> + /// <para>Represents the following element tag in the schema: c:val.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public Pie3DChartExtensionList(params OpenXmlElement[] childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public ErrorBarValue? ErrorBarValue { + get => GetElement<ErrorBarValue>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the Pie3DChartExtensionList class from outer XML. + /// <para>ChartShapeProperties.</para> + /// <para>Represents the following element tag in the schema: c:spPr.</para> /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public Pie3DChartExtensionList(string outerXml) : base(outerXml) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public ChartShapeProperties? ChartShapeProperties { + get => GetElement<ChartShapeProperties>(); + set => SetElement(value); } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// <summary> + /// <para>Chart Extensibility.</para> + /// <para>Represents the following element tag in the schema: c:extLst.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public ExtensionList? ExtensionList { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "extLst"); - builder.AddChild<Pie3DChartExtension>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Pie3DChartExtension), 0, 0) - }; + get => GetElement<ExtensionList>(); + set => SetElement(value); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<Pie3DChartExtensionList>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<ErrorBars>(deep); } /// <summary> - /// <para>Defines the NumRefExtensionList Class.</para> + /// <para>Defines the CategoryAxisData Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:cat.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>NumRefExtension <c:ext></description></item> + /// <item><description>MultiLevelStringReference <c:multiLvlStrRef></description></item> + /// <item><description>NumberReference <c:numRef></description></item> + /// <item><description>NumberLiteral <c:numLit></description></item> + /// <item><description>StringReference <c:strRef></description></item> + /// <item><description>StringLiteral <c:strLit></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "extLst")] + [SchemaAttr(11, "cat")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class NumRefExtensionList : OpenXmlCompositeElement + public partial class CategoryAxisData : AxisDataSourceType { /// <summary> - /// Initializes a new instance of the NumRefExtensionList class. + /// Initializes a new instance of the CategoryAxisData class. /// </summary> - public NumRefExtensionList() : base() + public CategoryAxisData() : base() { } /// <summary> - /// Initializes a new instance of the NumRefExtensionList class with the specified child elements. + /// Initializes a new instance of the CategoryAxisData class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public NumRefExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public CategoryAxisData(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the NumRefExtensionList class with the specified child elements. + /// Initializes a new instance of the CategoryAxisData class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public NumRefExtensionList(params OpenXmlElement[] childElements) : base(childElements) + public CategoryAxisData(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the NumRefExtensionList class from outer XML. + /// Initializes a new instance of the CategoryAxisData class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public NumRefExtensionList(string outerXml) : base(outerXml) + public CategoryAxisData(string outerXml) : base(outerXml) { } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "extLst"); - builder.AddChild<NumRefExtension>(); + builder.SetSchema(11, "cat"); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.NumRefExtension), 0, 0) + new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MultiLevelStringReference), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.NumberReference), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.NumberLiteral), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.StringReference), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.StringLiteral), 1, 1) + } }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<NumRefExtensionList>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<CategoryAxisData>(deep); } /// <summary> - /// <para>Defines the StrDataExtensionList Class.</para> + /// <para>Defines the XValues Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:xVal.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>StrDataExtension <c:ext></description></item> + /// <item><description>MultiLevelStringReference <c:multiLvlStrRef></description></item> + /// <item><description>NumberReference <c:numRef></description></item> + /// <item><description>NumberLiteral <c:numLit></description></item> + /// <item><description>StringReference <c:strRef></description></item> + /// <item><description>StringLiteral <c:strLit></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "extLst")] + [SchemaAttr(11, "xVal")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class StrDataExtensionList : OpenXmlCompositeElement + public partial class XValues : AxisDataSourceType { /// <summary> - /// Initializes a new instance of the StrDataExtensionList class. + /// Initializes a new instance of the XValues class. /// </summary> - public StrDataExtensionList() : base() + public XValues() : base() { } /// <summary> - /// Initializes a new instance of the StrDataExtensionList class with the specified child elements. + /// Initializes a new instance of the XValues class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public StrDataExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public XValues(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the StrDataExtensionList class with the specified child elements. + /// Initializes a new instance of the XValues class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public StrDataExtensionList(params OpenXmlElement[] childElements) : base(childElements) + public XValues(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the StrDataExtensionList class from outer XML. + /// Initializes a new instance of the XValues class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public StrDataExtensionList(string outerXml) : base(outerXml) + public XValues(string outerXml) : base(outerXml) { } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "extLst"); - builder.AddChild<StrDataExtension>(); + builder.SetSchema(11, "xVal"); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.StrDataExtension), 0, 0) + new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MultiLevelStringReference), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.NumberReference), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.NumberLiteral), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.StringReference), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.StringLiteral), 1, 1) + } }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<StrDataExtensionList>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<XValues>(deep); } /// <summary> - /// <para>Defines the StrRefExtensionList Class.</para> + /// <para>Defines the AxisDataSourceType Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> + /// <para>When the object is serialized out as xml, it's qualified name is :.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>StrRefExtension <c:ext></description></item> + /// <item><description>MultiLevelStringReference <c:multiLvlStrRef></description></item> + /// <item><description>NumberReference <c:numRef></description></item> + /// <item><description>NumberLiteral <c:numLit></description></item> + /// <item><description>StringReference <c:strRef></description></item> + /// <item><description>StringLiteral <c:strLit></description></item> /// </list> /// </remark> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "extLst")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class StrRefExtensionList : OpenXmlCompositeElement + public abstract partial class AxisDataSourceType : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the StrRefExtensionList class. + /// Initializes a new instance of the AxisDataSourceType class. /// </summary> - public StrRefExtensionList() : base() + protected AxisDataSourceType() : base() { } /// <summary> - /// Initializes a new instance of the StrRefExtensionList class with the specified child elements. + /// Initializes a new instance of the AxisDataSourceType class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public StrRefExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + protected AxisDataSourceType(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the StrRefExtensionList class with the specified child elements. + /// Initializes a new instance of the AxisDataSourceType class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public StrRefExtensionList(params OpenXmlElement[] childElements) : base(childElements) + protected AxisDataSourceType(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the StrRefExtensionList class from outer XML. + /// Initializes a new instance of the AxisDataSourceType class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public StrRefExtensionList(string outerXml) : base(outerXml) + protected AxisDataSourceType(string outerXml) : base(outerXml) { } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "extLst"); - builder.AddChild<StrRefExtension>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.StrRefExtension), 0, 0) - }; - } - - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<StrRefExtensionList>(deep); - } - - /// <summary> - /// <para>Defines the MultiLevelStringCache Class.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:multiLvlStrCache.</para> - /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>PointCount <c:ptCount></description></item> - /// <item><description>Level <c:lvl></description></item> - /// <item><description>ExtensionList <c:extLst></description></item> - /// </list> - /// </remark> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "multiLvlStrCache")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class MultiLevelStringCache : OpenXmlCompositeElement - { - /// <summary> - /// Initializes a new instance of the MultiLevelStringCache class. - /// </summary> - public MultiLevelStringCache() : base() - { + builder.AddChild<MultiLevelStringReference>(); + builder.AddChild<NumberReference>(); + builder.AddChild<NumberLiteral>(); + builder.AddChild<StringReference>(); + builder.AddChild<StringLiteral>(); } /// <summary> - /// Initializes a new instance of the MultiLevelStringCache class with the specified child elements. + /// <para>Multi Level String Reference.</para> + /// <para>Represents the following element tag in the schema: c:multiLvlStrRef.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public MultiLevelStringCache(IEnumerable<OpenXmlElement> childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public MultiLevelStringReference? MultiLevelStringReference { + get => GetElement<MultiLevelStringReference>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the MultiLevelStringCache class with the specified child elements. + /// <para>Number Reference.</para> + /// <para>Represents the following element tag in the schema: c:numRef.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public MultiLevelStringCache(params OpenXmlElement[] childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public NumberReference? NumberReference { + get => GetElement<NumberReference>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the MultiLevelStringCache class from outer XML. + /// <para>Number Literal.</para> + /// <para>Represents the following element tag in the schema: c:numLit.</para> /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public MultiLevelStringCache(string outerXml) : base(outerXml) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public NumberLiteral? NumberLiteral { + get => GetElement<NumberLiteral>(); + set => SetElement(value); } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// <summary> + /// <para>StringReference.</para> + /// <para>Represents the following element tag in the schema: c:strRef.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public StringReference? StringReference { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "multiLvlStrCache"); - builder.AddChild<PointCount>(); - builder.AddChild<Level>(); - builder.AddChild<ExtensionList>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PointCount), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Level), 0, 0), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) - }; + get => GetElement<StringReference>(); + set => SetElement(value); } /// <summary> - /// <para>PointCount.</para> - /// <para>Represents the following element tag in the schema: c:ptCount.</para> + /// <para>String Literal.</para> + /// <para>Represents the following element tag in the schema: c:strLit.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public PointCount? PointCount + public StringLiteral? StringLiteral { - get => GetElement<PointCount>(); + get => GetElement<StringLiteral>(); set => SetElement(value); } - - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<MultiLevelStringCache>(deep); } /// <summary> - /// <para>Defines the MultiLvlStrRefExtensionList Class.</para> + /// <para>Defines the LineSerExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>MultiLvlStrRefExtension <c:ext></description></item> + /// <item><description>LineSerExtension <c:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(11, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class MultiLvlStrRefExtensionList : OpenXmlCompositeElement + public partial class LineSerExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the MultiLvlStrRefExtensionList class. + /// Initializes a new instance of the LineSerExtensionList class. /// </summary> - public MultiLvlStrRefExtensionList() : base() + public LineSerExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the MultiLvlStrRefExtensionList class with the specified child elements. + /// Initializes a new instance of the LineSerExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public MultiLvlStrRefExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public LineSerExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the MultiLvlStrRefExtensionList class with the specified child elements. + /// Initializes a new instance of the LineSerExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public MultiLvlStrRefExtensionList(params OpenXmlElement[] childElements) : base(childElements) + public LineSerExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the MultiLvlStrRefExtensionList class from outer XML. + /// Initializes a new instance of the LineSerExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public MultiLvlStrRefExtensionList(string outerXml) : base(outerXml) + public LineSerExtensionList(string outerXml) : base(outerXml) { } @@ -18111,61 +18376,61 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(11, "extLst"); - builder.AddChild<MultiLvlStrRefExtension>(); + builder.AddChild<LineSerExtension>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MultiLvlStrRefExtension), 0, 0) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.LineSerExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<MultiLvlStrRefExtensionList>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<LineSerExtensionList>(deep); } /// <summary> - /// <para>Defines the DLblExtensionList Class.</para> + /// <para>Defines the ScatterSerExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DLblExtension <c:ext></description></item> + /// <item><description>ScatterSerExtension <c:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(11, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class DLblExtensionList : OpenXmlCompositeElement + public partial class ScatterSerExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the DLblExtensionList class. + /// Initializes a new instance of the ScatterSerExtensionList class. /// </summary> - public DLblExtensionList() : base() + public ScatterSerExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the DLblExtensionList class with the specified child elements. + /// Initializes a new instance of the ScatterSerExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public DLblExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public ScatterSerExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the DLblExtensionList class with the specified child elements. + /// Initializes a new instance of the ScatterSerExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public DLblExtensionList(params OpenXmlElement[] childElements) : base(childElements) + public ScatterSerExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the DLblExtensionList class from outer XML. + /// Initializes a new instance of the ScatterSerExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public DLblExtensionList(string outerXml) : base(outerXml) + public ScatterSerExtensionList(string outerXml) : base(outerXml) { } @@ -18173,61 +18438,61 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(11, "extLst"); - builder.AddChild<DLblExtension>(); + builder.AddChild<ScatterSerExtension>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DLblExtension), 0, 0) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ScatterSerExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<DLblExtensionList>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<ScatterSerExtensionList>(deep); } /// <summary> - /// <para>Defines the DLblsExtensionList Class.</para> + /// <para>Defines the RadarSerExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DLblsExtension <c:ext></description></item> + /// <item><description>RadarSerExtension <c:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(11, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class DLblsExtensionList : OpenXmlCompositeElement + public partial class RadarSerExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the DLblsExtensionList class. + /// Initializes a new instance of the RadarSerExtensionList class. /// </summary> - public DLblsExtensionList() : base() + public RadarSerExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the DLblsExtensionList class with the specified child elements. + /// Initializes a new instance of the RadarSerExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public DLblsExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public RadarSerExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the DLblsExtensionList class with the specified child elements. + /// Initializes a new instance of the RadarSerExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public DLblsExtensionList(params OpenXmlElement[] childElements) : base(childElements) + public RadarSerExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the DLblsExtensionList class from outer XML. + /// Initializes a new instance of the RadarSerExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public DLblsExtensionList(string outerXml) : base(outerXml) + public RadarSerExtensionList(string outerXml) : base(outerXml) { } @@ -18235,970 +18500,945 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(11, "extLst"); - builder.AddChild<DLblsExtension>(); + builder.AddChild<RadarSerExtension>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DLblsExtension), 0, 0) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.RadarSerExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<DLblsExtensionList>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<RadarSerExtensionList>(deep); } /// <summary> - /// <para>Defines the DataPoint Class.</para> + /// <para>Defines the Shape Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:dPt.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:shape.</para> /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>Index <c:idx></description></item> - /// <item><description>InvertIfNegative <c:invertIfNegative></description></item> - /// <item><description>Marker <c:marker></description></item> - /// <item><description>Bubble3D <c:bubble3D></description></item> - /// <item><description>Explosion <c:explosion></description></item> - /// <item><description>ChartShapeProperties <c:spPr></description></item> - /// <item><description>PictureOptions <c:pictureOptions></description></item> - /// <item><description>ExtensionList <c:extLst></description></item> - /// </list> - /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "dPt")] + [SchemaAttr(11, "shape")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class DataPoint : OpenXmlCompositeElement + public partial class Shape : OpenXmlLeafElement { /// <summary> - /// Initializes a new instance of the DataPoint class. + /// Initializes a new instance of the Shape class. /// </summary> - public DataPoint() : base() + public Shape() : base() { } /// <summary> - /// Initializes a new instance of the DataPoint class with the specified child elements. + /// <para>Shape Value</para> + /// <para>Represents the following attribute in the schema: val</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public DataPoint(IEnumerable<OpenXmlElement> childElements) : base(childElements) - { - } - /// <summary> - /// Initializes a new instance of the DataPoint class with the specified child elements. - /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public DataPoint(params OpenXmlElement[] childElements) : base(childElements) - { - } +#pragma warning disable CS0618 // Type or member is obsolete - /// <summary> - /// Initializes a new instance of the DataPoint class from outer XML. - /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public DataPoint(string outerXml) : base(outerXml) + [SchemaAttr(0, "val")] +#pragma warning restore CS0618 // Type or member is obsolete + + public EnumValue<DocumentFormat.OpenXml.Drawing.Charts.ShapeValues>? Val { + get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.Charts.ShapeValues>>(); + set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "dPt"); - builder.AddChild<Index>(); - builder.AddChild<InvertIfNegative>(); - builder.AddChild<Marker>(); - builder.AddChild<Bubble3D>(); - builder.AddChild<Explosion>(); - builder.AddChild<ChartShapeProperties>(); - builder.AddChild<PictureOptions>(); - builder.AddChild<ExtensionList>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Index), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.InvertIfNegative), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Marker), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Bubble3D), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Explosion), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartShapeProperties), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PictureOptions), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) - }; - } - - /// <summary> - /// <para>Index.</para> - /// <para>Represents the following element tag in the schema: c:idx.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Index? Index - { - get => GetElement<Index>(); - set => SetElement(value); - } - - /// <summary> - /// <para>Invert if Negative.</para> - /// <para>Represents the following element tag in the schema: c:invertIfNegative.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public InvertIfNegative? InvertIfNegative - { - get => GetElement<InvertIfNegative>(); - set => SetElement(value); + builder.SetSchema(11, "shape"); + builder.AddElement<Shape>() +.AddAttribute(0, "val", a => a.Val); } - /// <summary> - /// <para>Marker.</para> - /// <para>Represents the following element tag in the schema: c:marker.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Marker? Marker - { - get => GetElement<Marker>(); - set => SetElement(value); - } + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<Shape>(deep); + } + /// <summary> + /// <para>Defines the BarSerExtensionList Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>BarSerExtension <c:ext></description></item> + /// </list> + /// </remark> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "extLst")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class BarSerExtensionList : OpenXmlCompositeElement + { /// <summary> - /// <para>3D Bubble.</para> - /// <para>Represents the following element tag in the schema: c:bubble3D.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Bubble3D? Bubble3D + /// Initializes a new instance of the BarSerExtensionList class. + /// </summary> + public BarSerExtensionList() : base() { - get => GetElement<Bubble3D>(); - set => SetElement(value); } /// <summary> - /// <para>Explosion.</para> - /// <para>Represents the following element tag in the schema: c:explosion.</para> + /// Initializes a new instance of the BarSerExtensionList class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Explosion? Explosion + /// <param name="childElements">Specifies the child elements.</param> + public BarSerExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { - get => GetElement<Explosion>(); - set => SetElement(value); } /// <summary> - /// <para>ChartShapeProperties.</para> - /// <para>Represents the following element tag in the schema: c:spPr.</para> + /// Initializes a new instance of the BarSerExtensionList class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public ChartShapeProperties? ChartShapeProperties + /// <param name="childElements">Specifies the child elements.</param> + public BarSerExtensionList(params OpenXmlElement[] childElements) : base(childElements) { - get => GetElement<ChartShapeProperties>(); - set => SetElement(value); } /// <summary> - /// <para>PictureOptions.</para> - /// <para>Represents the following element tag in the schema: c:pictureOptions.</para> + /// Initializes a new instance of the BarSerExtensionList class from outer XML. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public PictureOptions? PictureOptions + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public BarSerExtensionList(string outerXml) : base(outerXml) { - get => GetElement<PictureOptions>(); - set => SetElement(value); } - /// <summary> - /// <para>Chart Extensibility.</para> - /// <para>Represents the following element tag in the schema: c:extLst.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public ExtensionList? ExtensionList + internal override void ConfigureMetadata(ElementMetadata.Builder builder) { - get => GetElement<ExtensionList>(); - set => SetElement(value); + base.ConfigureMetadata(builder); + builder.SetSchema(11, "extLst"); + builder.AddChild<BarSerExtension>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BarSerExtension), 0, 0) + }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<DataPoint>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<BarSerExtensionList>(deep); } /// <summary> - /// <para>Defines the Trendline Class.</para> + /// <para>Defines the BarSerExtension Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:trendline.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>TrendlineName <c:name></description></item> - /// <item><description>ChartShapeProperties <c:spPr></description></item> - /// <item><description>TrendlineType <c:trendlineType></description></item> - /// <item><description>PolynomialOrder <c:order></description></item> - /// <item><description>Period <c:period></description></item> - /// <item><description>Forward <c:forward></description></item> - /// <item><description>Backward <c:backward></description></item> - /// <item><description>Intercept <c:intercept></description></item> - /// <item><description>DisplayRSquaredValue <c:dispRSqr></description></item> - /// <item><description>DisplayEquation <c:dispEq></description></item> - /// <item><description>TrendlineLabel <c:trendlineLbl></description></item> - /// <item><description>ExtensionList <c:extLst></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2010.Drawing.Charts.InvertSolidFillFormat <c14:invertSolidFillFmt></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle <c15:filteredSeriesTitle></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle <c15:filteredCategoryTitle></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange <c15:datalabelsRange></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions <c15:categoryFilterExceptions></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "trendline")] + [SchemaAttr(11, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class Trendline : OpenXmlCompositeElement + public partial class BarSerExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the Trendline class. + /// Initializes a new instance of the BarSerExtension class. /// </summary> - public Trendline() : base() + public BarSerExtension() : base() { } /// <summary> - /// Initializes a new instance of the Trendline class with the specified child elements. + /// Initializes a new instance of the BarSerExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public Trendline(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public BarSerExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the Trendline class with the specified child elements. + /// Initializes a new instance of the BarSerExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public Trendline(params OpenXmlElement[] childElements) : base(childElements) + public BarSerExtension(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the Trendline class from outer XML. + /// Initializes a new instance of the BarSerExtension class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public Trendline(string outerXml) : base(outerXml) - { - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + public BarSerExtension(string outerXml) : base(outerXml) { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "trendline"); - builder.AddChild<TrendlineName>(); - builder.AddChild<ChartShapeProperties>(); - builder.AddChild<TrendlineType>(); - builder.AddChild<PolynomialOrder>(); - builder.AddChild<Period>(); - builder.AddChild<Forward>(); - builder.AddChild<Backward>(); - builder.AddChild<Intercept>(); - builder.AddChild<DisplayRSquaredValue>(); - builder.AddChild<DisplayEquation>(); - builder.AddChild<TrendlineLabel>(); - builder.AddChild<ExtensionList>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TrendlineName), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartShapeProperties), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TrendlineType), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PolynomialOrder), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Period), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Forward), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Backward), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Intercept), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DisplayRSquaredValue), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DisplayEquation), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TrendlineLabel), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) - }; } /// <summary> - /// <para>Trendline Name.</para> - /// <para>Represents the following element tag in the schema: c:name.</para> + /// <para>URI</para> + /// <para>Represents the following attribute in the schema: uri</para> /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public TrendlineName? TrendlineName - { - get => GetElement<TrendlineName>(); - set => SetElement(value); - } - /// <summary> - /// <para>ChartShapeProperties.</para> - /// <para>Represents the following element tag in the schema: c:spPr.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public ChartShapeProperties? ChartShapeProperties +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "uri")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Uri { - get => GetElement<ChartShapeProperties>(); - set => SetElement(value); + get => GetAttribute<StringValue>(); + set => SetAttribute(value); } - /// <summary> - /// <para>Trendline Type.</para> - /// <para>Represents the following element tag in the schema: c:trendlineType.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public TrendlineType? TrendlineType + internal override void ConfigureMetadata(ElementMetadata.Builder builder) { - get => GetElement<TrendlineType>(); - set => SetElement(value); + base.ConfigureMetadata(builder); + builder.SetSchema(11, "ext"); + builder.AddChild<DocumentFormat.OpenXml.Office2010.Drawing.Charts.InvertSolidFillFormat>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions>(); + builder.AddElement<BarSerExtension>() +.AddAttribute(0, "uri", a => a.Uri, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.Drawing.Charts.InvertSolidFillFormat), 1, 1, version: FileFormatVersions.Office2010), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions), 1, 1, version: FileFormatVersions.Office2013), + new AnyParticle(0, 1) + }; } + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<BarSerExtension>(deep); + } + + /// <summary> + /// <para>Defines the AreaSerExtensionList Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>AreaSerExtension <c:ext></description></item> + /// </list> + /// </remark> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "extLst")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class AreaSerExtensionList : OpenXmlCompositeElement + { /// <summary> - /// <para>Polynomial Trendline Order.</para> - /// <para>Represents the following element tag in the schema: c:order.</para> + /// Initializes a new instance of the AreaSerExtensionList class. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public PolynomialOrder? PolynomialOrder + public AreaSerExtensionList() : base() { - get => GetElement<PolynomialOrder>(); - set => SetElement(value); } /// <summary> - /// <para>Period.</para> - /// <para>Represents the following element tag in the schema: c:period.</para> + /// Initializes a new instance of the AreaSerExtensionList class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Period? Period + /// <param name="childElements">Specifies the child elements.</param> + public AreaSerExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { - get => GetElement<Period>(); - set => SetElement(value); } /// <summary> - /// <para>Forward.</para> - /// <para>Represents the following element tag in the schema: c:forward.</para> + /// Initializes a new instance of the AreaSerExtensionList class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Forward? Forward + /// <param name="childElements">Specifies the child elements.</param> + public AreaSerExtensionList(params OpenXmlElement[] childElements) : base(childElements) { - get => GetElement<Forward>(); - set => SetElement(value); } /// <summary> - /// <para>Backward.</para> - /// <para>Represents the following element tag in the schema: c:backward.</para> + /// Initializes a new instance of the AreaSerExtensionList class from outer XML. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Backward? Backward + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public AreaSerExtensionList(string outerXml) : base(outerXml) { - get => GetElement<Backward>(); - set => SetElement(value); } - /// <summary> - /// <para>Intercept.</para> - /// <para>Represents the following element tag in the schema: c:intercept.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Intercept? Intercept + internal override void ConfigureMetadata(ElementMetadata.Builder builder) { - get => GetElement<Intercept>(); - set => SetElement(value); + base.ConfigureMetadata(builder); + builder.SetSchema(11, "extLst"); + builder.AddChild<AreaSerExtension>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AreaSerExtension), 0, 0) + }; } + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<AreaSerExtensionList>(deep); + } + + /// <summary> + /// <para>Defines the PieSerExtensionList Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>PieSerExtension <c:ext></description></item> + /// </list> + /// </remark> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "extLst")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class PieSerExtensionList : OpenXmlCompositeElement + { /// <summary> - /// <para>Display R Squared Value.</para> - /// <para>Represents the following element tag in the schema: c:dispRSqr.</para> + /// Initializes a new instance of the PieSerExtensionList class. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public DisplayRSquaredValue? DisplayRSquaredValue + public PieSerExtensionList() : base() { - get => GetElement<DisplayRSquaredValue>(); - set => SetElement(value); } /// <summary> - /// <para>Display Equation.</para> - /// <para>Represents the following element tag in the schema: c:dispEq.</para> + /// Initializes a new instance of the PieSerExtensionList class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public DisplayEquation? DisplayEquation + /// <param name="childElements">Specifies the child elements.</param> + public PieSerExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { - get => GetElement<DisplayEquation>(); - set => SetElement(value); } /// <summary> - /// <para>Trendline Label.</para> - /// <para>Represents the following element tag in the schema: c:trendlineLbl.</para> + /// Initializes a new instance of the PieSerExtensionList class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public TrendlineLabel? TrendlineLabel + /// <param name="childElements">Specifies the child elements.</param> + public PieSerExtensionList(params OpenXmlElement[] childElements) : base(childElements) { - get => GetElement<TrendlineLabel>(); - set => SetElement(value); } /// <summary> - /// <para>Chart Extensibility.</para> - /// <para>Represents the following element tag in the schema: c:extLst.</para> + /// Initializes a new instance of the PieSerExtensionList class from outer XML. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public ExtensionList? ExtensionList + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public PieSerExtensionList(string outerXml) : base(outerXml) { - get => GetElement<ExtensionList>(); - set => SetElement(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(11, "extLst"); + builder.AddChild<PieSerExtension>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PieSerExtension), 0, 0) + }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<Trendline>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<PieSerExtensionList>(deep); } /// <summary> - /// <para>Defines the ErrorBars Class.</para> + /// <para>Defines the BubbleSerExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:errBars.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>ErrorDirection <c:errDir></description></item> - /// <item><description>ErrorBarType <c:errBarType></description></item> - /// <item><description>ErrorBarValueType <c:errValType></description></item> - /// <item><description>NoEndCap <c:noEndCap></description></item> - /// <item><description>Plus <c:plus></description></item> - /// <item><description>Minus <c:minus></description></item> - /// <item><description>ErrorBarValue <c:val></description></item> - /// <item><description>ChartShapeProperties <c:spPr></description></item> - /// <item><description>ExtensionList <c:extLst></description></item> + /// <item><description>BubbleSerExtension <c:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "errBars")] + [SchemaAttr(11, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class ErrorBars : OpenXmlCompositeElement + public partial class BubbleSerExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the ErrorBars class. + /// Initializes a new instance of the BubbleSerExtensionList class. /// </summary> - public ErrorBars() : base() + public BubbleSerExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the ErrorBars class with the specified child elements. + /// Initializes a new instance of the BubbleSerExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public ErrorBars(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public BubbleSerExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the ErrorBars class with the specified child elements. + /// Initializes a new instance of the BubbleSerExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public ErrorBars(params OpenXmlElement[] childElements) : base(childElements) + public BubbleSerExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the ErrorBars class from outer XML. + /// Initializes a new instance of the BubbleSerExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public ErrorBars(string outerXml) : base(outerXml) + public BubbleSerExtensionList(string outerXml) : base(outerXml) { } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "errBars"); - builder.AddChild<ErrorDirection>(); - builder.AddChild<ErrorBarType>(); - builder.AddChild<ErrorBarValueType>(); - builder.AddChild<NoEndCap>(); - builder.AddChild<Plus>(); - builder.AddChild<Minus>(); - builder.AddChild<ErrorBarValue>(); - builder.AddChild<ChartShapeProperties>(); - builder.AddChild<ExtensionList>(); + builder.SetSchema(11, "extLst"); + builder.AddChild<BubbleSerExtension>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ErrorDirection), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ErrorBarType), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ErrorBarValueType), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.NoEndCap), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Plus), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Minus), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ErrorBarValue), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartShapeProperties), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BubbleSerExtension), 0, 0) }; } + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<BubbleSerExtensionList>(deep); + } + + /// <summary> + /// <para>Defines the BubbleSerExtension Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>DocumentFormat.OpenXml.Office2010.Drawing.Charts.InvertSolidFillFormat <c14:invertSolidFillFmt></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle <c15:filteredCategoryTitle></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange <c15:datalabelsRange></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions <c15:categoryFilterExceptions></description></item> + /// </list> + /// </remark> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "ext")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class BubbleSerExtension : OpenXmlCompositeElement + { /// <summary> - /// <para>Error Bar Direction.</para> - /// <para>Represents the following element tag in the schema: c:errDir.</para> + /// Initializes a new instance of the BubbleSerExtension class. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public ErrorDirection? ErrorDirection + public BubbleSerExtension() : base() { - get => GetElement<ErrorDirection>(); - set => SetElement(value); } /// <summary> - /// <para>Error Bar Type.</para> - /// <para>Represents the following element tag in the schema: c:errBarType.</para> + /// Initializes a new instance of the BubbleSerExtension class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public ErrorBarType? ErrorBarType + /// <param name="childElements">Specifies the child elements.</param> + public BubbleSerExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { - get => GetElement<ErrorBarType>(); - set => SetElement(value); } /// <summary> - /// <para>Error Bar Value Type.</para> - /// <para>Represents the following element tag in the schema: c:errValType.</para> + /// Initializes a new instance of the BubbleSerExtension class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public ErrorBarValueType? ErrorBarValueType + /// <param name="childElements">Specifies the child elements.</param> + public BubbleSerExtension(params OpenXmlElement[] childElements) : base(childElements) { - get => GetElement<ErrorBarValueType>(); - set => SetElement(value); } /// <summary> - /// <para>No End Cap.</para> - /// <para>Represents the following element tag in the schema: c:noEndCap.</para> + /// Initializes a new instance of the BubbleSerExtension class from outer XML. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public NoEndCap? NoEndCap + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public BubbleSerExtension(string outerXml) : base(outerXml) { - get => GetElement<NoEndCap>(); - set => SetElement(value); } /// <summary> - /// <para>Plus.</para> - /// <para>Represents the following element tag in the schema: c:plus.</para> + /// <para>URI</para> + /// <para>Represents the following attribute in the schema: uri</para> + /// </summary> + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "uri")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Uri + { + get => GetAttribute<StringValue>(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(11, "ext"); + builder.AddChild<DocumentFormat.OpenXml.Office2010.Drawing.Charts.InvertSolidFillFormat>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions>(); + builder.AddElement<BubbleSerExtension>() +.AddAttribute(0, "uri", a => a.Uri, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.Drawing.Charts.InvertSolidFillFormat), 1, 1, version: FileFormatVersions.Office2010), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions), 1, 1, version: FileFormatVersions.Office2013), + new AnyParticle(0, 1) + }; + } + + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<BubbleSerExtension>(deep); + } + + /// <summary> + /// <para>Defines the SurfaceSerExtensionList Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>SurfaceSerExtension <c:ext></description></item> + /// </list> + /// </remark> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "extLst")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class SurfaceSerExtensionList : OpenXmlCompositeElement + { + /// <summary> + /// Initializes a new instance of the SurfaceSerExtensionList class. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Plus? Plus + public SurfaceSerExtensionList() : base() { - get => GetElement<Plus>(); - set => SetElement(value); } /// <summary> - /// <para>Minus.</para> - /// <para>Represents the following element tag in the schema: c:minus.</para> + /// Initializes a new instance of the SurfaceSerExtensionList class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Minus? Minus + /// <param name="childElements">Specifies the child elements.</param> + public SurfaceSerExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { - get => GetElement<Minus>(); - set => SetElement(value); } /// <summary> - /// <para>Error Bar Value.</para> - /// <para>Represents the following element tag in the schema: c:val.</para> + /// Initializes a new instance of the SurfaceSerExtensionList class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public ErrorBarValue? ErrorBarValue + /// <param name="childElements">Specifies the child elements.</param> + public SurfaceSerExtensionList(params OpenXmlElement[] childElements) : base(childElements) { - get => GetElement<ErrorBarValue>(); - set => SetElement(value); } /// <summary> - /// <para>ChartShapeProperties.</para> - /// <para>Represents the following element tag in the schema: c:spPr.</para> + /// Initializes a new instance of the SurfaceSerExtensionList class from outer XML. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public ChartShapeProperties? ChartShapeProperties + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public SurfaceSerExtensionList(string outerXml) : base(outerXml) { - get => GetElement<ChartShapeProperties>(); - set => SetElement(value); } - /// <summary> - /// <para>Chart Extensibility.</para> - /// <para>Represents the following element tag in the schema: c:extLst.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public ExtensionList? ExtensionList + internal override void ConfigureMetadata(ElementMetadata.Builder builder) { - get => GetElement<ExtensionList>(); - set => SetElement(value); + base.ConfigureMetadata(builder); + builder.SetSchema(11, "extLst"); + builder.AddChild<SurfaceSerExtension>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SurfaceSerExtension), 0, 0) + }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<ErrorBars>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<SurfaceSerExtensionList>(deep); } /// <summary> - /// <para>Defines the CategoryAxisData Class.</para> + /// <para>Defines the LineChartExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:cat.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>MultiLevelStringReference <c:multiLvlStrRef></description></item> - /// <item><description>NumberReference <c:numRef></description></item> - /// <item><description>NumberLiteral <c:numLit></description></item> - /// <item><description>StringReference <c:strRef></description></item> - /// <item><description>StringLiteral <c:strLit></description></item> + /// <item><description>LineChartExtension <c:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "cat")] + [SchemaAttr(11, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class CategoryAxisData : AxisDataSourceType + public partial class LineChartExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the CategoryAxisData class. + /// Initializes a new instance of the LineChartExtensionList class. /// </summary> - public CategoryAxisData() : base() + public LineChartExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the CategoryAxisData class with the specified child elements. + /// Initializes a new instance of the LineChartExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public CategoryAxisData(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public LineChartExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the CategoryAxisData class with the specified child elements. + /// Initializes a new instance of the LineChartExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public CategoryAxisData(params OpenXmlElement[] childElements) : base(childElements) + public LineChartExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the CategoryAxisData class from outer XML. + /// Initializes a new instance of the LineChartExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public CategoryAxisData(string outerXml) : base(outerXml) + public LineChartExtensionList(string outerXml) : base(outerXml) { } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "cat"); + builder.SetSchema(11, "extLst"); + builder.AddChild<LineChartExtension>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new CompositeParticle.Builder(ParticleType.Choice, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MultiLevelStringReference), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.NumberReference), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.NumberLiteral), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.StringReference), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.StringLiteral), 1, 1) - } + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.LineChartExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<CategoryAxisData>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<LineChartExtensionList>(deep); } /// <summary> - /// <para>Defines the XValues Class.</para> + /// <para>Defines the Line3DChartExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:xVal.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>MultiLevelStringReference <c:multiLvlStrRef></description></item> - /// <item><description>NumberReference <c:numRef></description></item> - /// <item><description>NumberLiteral <c:numLit></description></item> - /// <item><description>StringReference <c:strRef></description></item> - /// <item><description>StringLiteral <c:strLit></description></item> + /// <item><description>Line3DChartExtension <c:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "xVal")] + [SchemaAttr(11, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class XValues : AxisDataSourceType + public partial class Line3DChartExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the XValues class. + /// Initializes a new instance of the Line3DChartExtensionList class. /// </summary> - public XValues() : base() + public Line3DChartExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the XValues class with the specified child elements. + /// Initializes a new instance of the Line3DChartExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public XValues(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public Line3DChartExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the XValues class with the specified child elements. + /// Initializes a new instance of the Line3DChartExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public XValues(params OpenXmlElement[] childElements) : base(childElements) + public Line3DChartExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the XValues class from outer XML. + /// Initializes a new instance of the Line3DChartExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public XValues(string outerXml) : base(outerXml) + public Line3DChartExtensionList(string outerXml) : base(outerXml) { } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "xVal"); + builder.SetSchema(11, "extLst"); + builder.AddChild<Line3DChartExtension>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new CompositeParticle.Builder(ParticleType.Choice, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.MultiLevelStringReference), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.NumberReference), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.NumberLiteral), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.StringReference), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.StringLiteral), 1, 1) - } + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Line3DChartExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<XValues>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<Line3DChartExtensionList>(deep); } /// <summary> - /// <para>Defines the AxisDataSourceType Class.</para> + /// <para>Defines the ScatterStyle Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is :.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:scatterStyle.</para> + /// </summary> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "scatterStyle")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class ScatterStyle : OpenXmlLeafElement + { + /// <summary> + /// Initializes a new instance of the ScatterStyle class. + /// </summary> + public ScatterStyle() : base() + { + } + + /// <summary> + /// <para>Scatter Style Value</para> + /// <para>Represents the following attribute in the schema: val</para> + /// </summary> + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "val")] +#pragma warning restore CS0618 // Type or member is obsolete + + public EnumValue<DocumentFormat.OpenXml.Drawing.Charts.ScatterStyleValues>? Val + { + get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.Charts.ScatterStyleValues>>(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(11, "scatterStyle"); + builder.AddElement<ScatterStyle>() +.AddAttribute(0, "val", a => a.Val); + } + + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<ScatterStyle>(deep); + } + + /// <summary> + /// <para>Defines the ScatterChartSeries Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:ser.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>MultiLevelStringReference <c:multiLvlStrRef></description></item> - /// <item><description>NumberReference <c:numRef></description></item> - /// <item><description>NumberLiteral <c:numLit></description></item> - /// <item><description>StringReference <c:strRef></description></item> - /// <item><description>StringLiteral <c:strLit></description></item> + /// <item><description>Index <c:idx></description></item> + /// <item><description>Order <c:order></description></item> + /// <item><description>SeriesText <c:tx></description></item> + /// <item><description>ChartShapeProperties <c:spPr></description></item> + /// <item><description>Marker <c:marker></description></item> + /// <item><description>DataPoint <c:dPt></description></item> + /// <item><description>DataLabels <c:dLbls></description></item> + /// <item><description>Trendline <c:trendline></description></item> + /// <item><description>ErrorBars <c:errBars></description></item> + /// <item><description>XValues <c:xVal></description></item> + /// <item><description>YValues <c:yVal></description></item> + /// <item><description>Smooth <c:smooth></description></item> + /// <item><description>ScatterSerExtensionList <c:extLst></description></item> /// </list> /// </remark> - public abstract partial class AxisDataSourceType : OpenXmlCompositeElement +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "ser")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class ScatterChartSeries : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the AxisDataSourceType class. + /// Initializes a new instance of the ScatterChartSeries class. /// </summary> - protected AxisDataSourceType() : base() + public ScatterChartSeries() : base() { } /// <summary> - /// Initializes a new instance of the AxisDataSourceType class with the specified child elements. + /// Initializes a new instance of the ScatterChartSeries class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - protected AxisDataSourceType(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public ScatterChartSeries(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the AxisDataSourceType class with the specified child elements. + /// Initializes a new instance of the ScatterChartSeries class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - protected AxisDataSourceType(params OpenXmlElement[] childElements) : base(childElements) + public ScatterChartSeries(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the AxisDataSourceType class from outer XML. + /// Initializes a new instance of the ScatterChartSeries class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - protected AxisDataSourceType(string outerXml) : base(outerXml) + public ScatterChartSeries(string outerXml) : base(outerXml) { } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.AddChild<MultiLevelStringReference>(); - builder.AddChild<NumberReference>(); - builder.AddChild<NumberLiteral>(); - builder.AddChild<StringReference>(); - builder.AddChild<StringLiteral>(); + builder.SetSchema(11, "ser"); + builder.AddChild<Index>(); + builder.AddChild<Order>(); + builder.AddChild<SeriesText>(); + builder.AddChild<ChartShapeProperties>(); + builder.AddChild<Marker>(); + builder.AddChild<DataPoint>(); + builder.AddChild<DataLabels>(); + builder.AddChild<Trendline>(); + builder.AddChild<ErrorBars>(); + builder.AddChild<XValues>(); + builder.AddChild<YValues>(); + builder.AddChild<Smooth>(); + builder.AddChild<ScatterSerExtensionList>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Group, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Index), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Order), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SeriesText), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartShapeProperties), 0, 1) + } + }, + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Marker), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataPoint), 0, 0), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Trendline), 0, 0), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ErrorBars), 0, 2), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.XValues), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.YValues), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Smooth), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ScatterSerExtensionList), 0, 1) + }; } /// <summary> - /// <para>Multi Level String Reference.</para> - /// <para>Represents the following element tag in the schema: c:multiLvlStrRef.</para> + /// <para>Index.</para> + /// <para>Represents the following element tag in the schema: c:idx.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public MultiLevelStringReference? MultiLevelStringReference + public Index? Index { - get => GetElement<MultiLevelStringReference>(); + get => GetElement<Index>(); set => SetElement(value); } /// <summary> - /// <para>Number Reference.</para> - /// <para>Represents the following element tag in the schema: c:numRef.</para> + /// <para>Order.</para> + /// <para>Represents the following element tag in the schema: c:order.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public NumberReference? NumberReference + public Order? Order { - get => GetElement<NumberReference>(); + get => GetElement<Order>(); set => SetElement(value); } /// <summary> - /// <para>Number Literal.</para> - /// <para>Represents the following element tag in the schema: c:numLit.</para> + /// <para>Series Text.</para> + /// <para>Represents the following element tag in the schema: c:tx.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public NumberLiteral? NumberLiteral + public SeriesText? SeriesText { - get => GetElement<NumberLiteral>(); + get => GetElement<SeriesText>(); set => SetElement(value); } /// <summary> - /// <para>StringReference.</para> - /// <para>Represents the following element tag in the schema: c:strRef.</para> + /// <para>ChartShapeProperties.</para> + /// <para>Represents the following element tag in the schema: c:spPr.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public StringReference? StringReference + public ChartShapeProperties? ChartShapeProperties { - get => GetElement<StringReference>(); + get => GetElement<ChartShapeProperties>(); set => SetElement(value); } /// <summary> - /// <para>String Literal.</para> - /// <para>Represents the following element tag in the schema: c:strLit.</para> + /// <para>Marker.</para> + /// <para>Represents the following element tag in the schema: c:marker.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public StringLiteral? StringLiteral + public Marker? Marker { - get => GetElement<StringLiteral>(); + get => GetElement<Marker>(); set => SetElement(value); } + + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<ScatterChartSeries>(deep); } /// <summary> - /// <para>Defines the LineSerExtensionList Class.</para> + /// <para>Defines the ScatterChartExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>LineSerExtension <c:ext></description></item> + /// <item><description>ScatterChartExtension <c:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(11, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class LineSerExtensionList : OpenXmlCompositeElement + public partial class ScatterChartExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the LineSerExtensionList class. + /// Initializes a new instance of the ScatterChartExtensionList class. /// </summary> - public LineSerExtensionList() : base() + public ScatterChartExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the LineSerExtensionList class with the specified child elements. + /// Initializes a new instance of the ScatterChartExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public LineSerExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public ScatterChartExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the LineSerExtensionList class with the specified child elements. + /// Initializes a new instance of the ScatterChartExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public LineSerExtensionList(params OpenXmlElement[] childElements) : base(childElements) + public ScatterChartExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the LineSerExtensionList class from outer XML. + /// Initializes a new instance of the ScatterChartExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public LineSerExtensionList(string outerXml) : base(outerXml) + public ScatterChartExtensionList(string outerXml) : base(outerXml) { } @@ -19206,230 +19446,285 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(11, "extLst"); - builder.AddChild<LineSerExtension>(); + builder.AddChild<ScatterChartExtension>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.LineSerExtension), 0, 0) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ScatterChartExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<LineSerExtensionList>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<ScatterChartExtensionList>(deep); } /// <summary> - /// <para>Defines the ScatterSerExtensionList Class.</para> + /// <para>Defines the RadarStyle Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:radarStyle.</para> /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>ScatterSerExtension <c:ext></description></item> - /// </list> - /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "extLst")] + [SchemaAttr(11, "radarStyle")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class ScatterSerExtensionList : OpenXmlCompositeElement + public partial class RadarStyle : OpenXmlLeafElement { /// <summary> - /// Initializes a new instance of the ScatterSerExtensionList class. + /// Initializes a new instance of the RadarStyle class. /// </summary> - public ScatterSerExtensionList() : base() + public RadarStyle() : base() { } /// <summary> - /// Initializes a new instance of the ScatterSerExtensionList class with the specified child elements. + /// <para>Radar Style Value</para> + /// <para>Represents the following attribute in the schema: val</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public ScatterSerExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) - { - } - /// <summary> - /// Initializes a new instance of the ScatterSerExtensionList class with the specified child elements. - /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public ScatterSerExtensionList(params OpenXmlElement[] childElements) : base(childElements) - { - } +#pragma warning disable CS0618 // Type or member is obsolete - /// <summary> - /// Initializes a new instance of the ScatterSerExtensionList class from outer XML. - /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public ScatterSerExtensionList(string outerXml) : base(outerXml) + [SchemaAttr(0, "val")] +#pragma warning restore CS0618 // Type or member is obsolete + + public EnumValue<DocumentFormat.OpenXml.Drawing.Charts.RadarStyleValues>? Val { + get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.Charts.RadarStyleValues>>(); + set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "extLst"); - builder.AddChild<ScatterSerExtension>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ScatterSerExtension), 0, 0) - }; + builder.SetSchema(11, "radarStyle"); + builder.AddElement<RadarStyle>() +.AddAttribute(0, "val", a => a.Val, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +}); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<ScatterSerExtensionList>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<RadarStyle>(deep); } /// <summary> - /// <para>Defines the RadarSerExtensionList Class.</para> + /// <para>Defines the RadarChartSeries Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:ser.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>RadarSerExtension <c:ext></description></item> + /// <item><description>Index <c:idx></description></item> + /// <item><description>Order <c:order></description></item> + /// <item><description>SeriesText <c:tx></description></item> + /// <item><description>ChartShapeProperties <c:spPr></description></item> + /// <item><description>PictureOptions <c:pictureOptions></description></item> + /// <item><description>Marker <c:marker></description></item> + /// <item><description>DataPoint <c:dPt></description></item> + /// <item><description>DataLabels <c:dLbls></description></item> + /// <item><description>CategoryAxisData <c:cat></description></item> + /// <item><description>Values <c:val></description></item> + /// <item><description>RadarSerExtensionList <c:extLst></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "extLst")] + [SchemaAttr(11, "ser")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class RadarSerExtensionList : OpenXmlCompositeElement + public partial class RadarChartSeries : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the RadarSerExtensionList class. + /// Initializes a new instance of the RadarChartSeries class. /// </summary> - public RadarSerExtensionList() : base() + public RadarChartSeries() : base() { } /// <summary> - /// Initializes a new instance of the RadarSerExtensionList class with the specified child elements. + /// Initializes a new instance of the RadarChartSeries class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public RadarSerExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public RadarChartSeries(IEnumerable<OpenXmlElement> childElements) : base(childElements) + { + } + + /// <summary> + /// Initializes a new instance of the RadarChartSeries class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public RadarChartSeries(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// <summary> + /// Initializes a new instance of the RadarChartSeries class from outer XML. + /// </summary> + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public RadarChartSeries(string outerXml) : base(outerXml) + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) { + base.ConfigureMetadata(builder); + builder.SetSchema(11, "ser"); + builder.AddChild<Index>(); + builder.AddChild<Order>(); + builder.AddChild<SeriesText>(); + builder.AddChild<ChartShapeProperties>(); + builder.AddChild<PictureOptions>(); + builder.AddChild<Marker>(); + builder.AddChild<DataPoint>(); + builder.AddChild<DataLabels>(); + builder.AddChild<CategoryAxisData>(); + builder.AddChild<Values>(); + builder.AddChild<RadarSerExtensionList>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Group, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Index), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Order), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SeriesText), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartShapeProperties), 0, 1) + } + }, + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PictureOptions), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Marker), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataPoint), 0, 0), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CategoryAxisData), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Values), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.RadarSerExtensionList), 0, 1) + }; } /// <summary> - /// Initializes a new instance of the RadarSerExtensionList class with the specified child elements. + /// <para>Index.</para> + /// <para>Represents the following element tag in the schema: c:idx.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public RadarSerExtensionList(params OpenXmlElement[] childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public Index? Index { + get => GetElement<Index>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the RadarSerExtensionList class from outer XML. + /// <para>Order.</para> + /// <para>Represents the following element tag in the schema: c:order.</para> /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public RadarSerExtensionList(string outerXml) : base(outerXml) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public Order? Order { + get => GetElement<Order>(); + set => SetElement(value); } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// <summary> + /// <para>Series Text.</para> + /// <para>Represents the following element tag in the schema: c:tx.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public SeriesText? SeriesText { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "extLst"); - builder.AddChild<RadarSerExtension>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.RadarSerExtension), 0, 0) - }; + get => GetElement<SeriesText>(); + set => SetElement(value); } - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<RadarSerExtensionList>(deep); - } - - /// <summary> - /// <para>Defines the Shape Class.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:shape.</para> - /// </summary> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "shape")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class Shape : OpenXmlLeafElement - { /// <summary> - /// Initializes a new instance of the Shape class. + /// <para>ChartShapeProperties.</para> + /// <para>Represents the following element tag in the schema: c:spPr.</para> /// </summary> - public Shape() : base() + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public ChartShapeProperties? ChartShapeProperties { + get => GetElement<ChartShapeProperties>(); + set => SetElement(value); } /// <summary> - /// <para>Shape Value</para> - /// <para>Represents the following attribute in the schema: val</para> + /// <para>PictureOptions.</para> + /// <para>Represents the following element tag in the schema: c:pictureOptions.</para> /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "val")] -#pragma warning restore CS0618 // Type or member is obsolete - - public EnumValue<DocumentFormat.OpenXml.Drawing.Charts.ShapeValues>? Val + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public PictureOptions? PictureOptions { - get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.Charts.ShapeValues>>(); - set => SetAttribute(value); + get => GetElement<PictureOptions>(); + set => SetElement(value); } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// <summary> + /// <para>Marker.</para> + /// <para>Represents the following element tag in the schema: c:marker.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public Marker? Marker { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "shape"); - builder.AddElement<Shape>() -.AddAttribute(0, "val", a => a.Val); + get => GetElement<Marker>(); + set => SetElement(value); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<Shape>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<RadarChartSeries>(deep); } /// <summary> - /// <para>Defines the BarSerExtensionList Class.</para> + /// <para>Defines the RadarChartExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>BarSerExtension <c:ext></description></item> + /// <item><description>RadarChartExtension <c:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(11, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class BarSerExtensionList : OpenXmlCompositeElement + public partial class RadarChartExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the BarSerExtensionList class. + /// Initializes a new instance of the RadarChartExtensionList class. /// </summary> - public BarSerExtensionList() : base() + public RadarChartExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the BarSerExtensionList class with the specified child elements. + /// Initializes a new instance of the RadarChartExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public BarSerExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public RadarChartExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the BarSerExtensionList class with the specified child elements. + /// Initializes a new instance of the RadarChartExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public BarSerExtensionList(params OpenXmlElement[] childElements) : base(childElements) + public RadarChartExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the BarSerExtensionList class from outer XML. + /// Initializes a new instance of the RadarChartExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public BarSerExtensionList(string outerXml) : base(outerXml) + public RadarChartExtensionList(string outerXml) : base(outerXml) { } @@ -19437,158 +19732,109 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(11, "extLst"); - builder.AddChild<BarSerExtension>(); + builder.AddChild<RadarChartExtension>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BarSerExtension), 0, 0) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.RadarChartExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<BarSerExtensionList>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<RadarChartExtensionList>(deep); } /// <summary> - /// <para>Defines the BarSerExtension Class.</para> + /// <para>Defines the Overlap Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:overlap.</para> /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2010.Drawing.Charts.InvertSolidFillFormat <c14:invertSolidFillFmt></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle <c15:filteredSeriesTitle></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle <c15:filteredCategoryTitle></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange <c15:datalabelsRange></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions <c15:categoryFilterExceptions></description></item> - /// </list> - /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "ext")] + [SchemaAttr(11, "overlap")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class BarSerExtension : OpenXmlCompositeElement + public partial class Overlap : OpenXmlLeafElement { /// <summary> - /// Initializes a new instance of the BarSerExtension class. - /// </summary> - public BarSerExtension() : base() - { - } - - /// <summary> - /// Initializes a new instance of the BarSerExtension class with the specified child elements. - /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public BarSerExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) - { - } - - /// <summary> - /// Initializes a new instance of the BarSerExtension class with the specified child elements. - /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public BarSerExtension(params OpenXmlElement[] childElements) : base(childElements) - { - } - - /// <summary> - /// Initializes a new instance of the BarSerExtension class from outer XML. + /// Initializes a new instance of the Overlap class. /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public BarSerExtension(string outerXml) : base(outerXml) + public Overlap() : base() { } /// <summary> - /// <para>URI</para> - /// <para>Represents the following attribute in the schema: uri</para> + /// <para>Overlap Value</para> + /// <para>Represents the following attribute in the schema: val</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(0, "uri")] + [SchemaAttr(0, "val")] #pragma warning restore CS0618 // Type or member is obsolete - public StringValue? Uri + public SByteValue? Val { - get => GetAttribute<StringValue>(); + get => GetAttribute<SByteValue>(); set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2010.Drawing.Charts.InvertSolidFillFormat>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions>(); - builder.AddElement<BarSerExtension>() -.AddAttribute(0, "uri", a => a.Uri, aBuilder => + builder.SetSchema(11, "overlap"); + builder.AddElement<Overlap>() +.AddAttribute(0, "val", a => a.Val, aBuilder => { -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +aBuilder.AddValidator(new NumberValidator() { MinInclusive = (-100L), MaxInclusive = (100L) }); }); - builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.Drawing.Charts.InvertSolidFillFormat), 1, 1, version: FileFormatVersions.Office2010), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredSeriesTitle), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions), 1, 1, version: FileFormatVersions.Office2013), - new AnyParticle(0, 1) - }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<BarSerExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<Overlap>(deep); } /// <summary> - /// <para>Defines the AreaSerExtensionList Class.</para> + /// <para>Defines the BarChartExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>AreaSerExtension <c:ext></description></item> + /// <item><description>BarChartExtension <c:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(11, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class AreaSerExtensionList : OpenXmlCompositeElement + public partial class BarChartExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the AreaSerExtensionList class. + /// Initializes a new instance of the BarChartExtensionList class. /// </summary> - public AreaSerExtensionList() : base() + public BarChartExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the AreaSerExtensionList class with the specified child elements. + /// Initializes a new instance of the BarChartExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public AreaSerExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public BarChartExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the AreaSerExtensionList class with the specified child elements. + /// Initializes a new instance of the BarChartExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public AreaSerExtensionList(params OpenXmlElement[] childElements) : base(childElements) + public BarChartExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the AreaSerExtensionList class from outer XML. + /// Initializes a new instance of the BarChartExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public AreaSerExtensionList(string outerXml) : base(outerXml) + public BarChartExtensionList(string outerXml) : base(outerXml) { } @@ -19596,61 +19842,61 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(11, "extLst"); - builder.AddChild<AreaSerExtension>(); + builder.AddChild<BarChartExtension>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AreaSerExtension), 0, 0) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BarChartExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<AreaSerExtensionList>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<BarChartExtensionList>(deep); } /// <summary> - /// <para>Defines the PieSerExtensionList Class.</para> + /// <para>Defines the Bar3DChartExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>PieSerExtension <c:ext></description></item> + /// <item><description>Bar3DChartExtension <c:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(11, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class PieSerExtensionList : OpenXmlCompositeElement + public partial class Bar3DChartExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the PieSerExtensionList class. + /// Initializes a new instance of the Bar3DChartExtensionList class. /// </summary> - public PieSerExtensionList() : base() + public Bar3DChartExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the PieSerExtensionList class with the specified child elements. + /// Initializes a new instance of the Bar3DChartExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public PieSerExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public Bar3DChartExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the PieSerExtensionList class with the specified child elements. + /// Initializes a new instance of the Bar3DChartExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public PieSerExtensionList(params OpenXmlElement[] childElements) : base(childElements) + public Bar3DChartExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the PieSerExtensionList class from outer XML. + /// Initializes a new instance of the Bar3DChartExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public PieSerExtensionList(string outerXml) : base(outerXml) + public Bar3DChartExtensionList(string outerXml) : base(outerXml) { } @@ -19658,61 +19904,61 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(11, "extLst"); - builder.AddChild<PieSerExtension>(); + builder.AddChild<Bar3DChartExtension>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PieSerExtension), 0, 0) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Bar3DChartExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<PieSerExtensionList>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<Bar3DChartExtensionList>(deep); } /// <summary> - /// <para>Defines the BubbleSerExtensionList Class.</para> + /// <para>Defines the AreaChartExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>BubbleSerExtension <c:ext></description></item> + /// <item><description>AreaChartExtension <c:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(11, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class BubbleSerExtensionList : OpenXmlCompositeElement + public partial class AreaChartExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the BubbleSerExtensionList class. + /// Initializes a new instance of the AreaChartExtensionList class. /// </summary> - public BubbleSerExtensionList() : base() + public AreaChartExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the BubbleSerExtensionList class with the specified child elements. + /// Initializes a new instance of the AreaChartExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public BubbleSerExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public AreaChartExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the BubbleSerExtensionList class with the specified child elements. + /// Initializes a new instance of the AreaChartExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public BubbleSerExtensionList(params OpenXmlElement[] childElements) : base(childElements) + public AreaChartExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the BubbleSerExtensionList class from outer XML. + /// Initializes a new instance of the AreaChartExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public BubbleSerExtensionList(string outerXml) : base(outerXml) + public AreaChartExtensionList(string outerXml) : base(outerXml) { } @@ -19720,316 +19966,334 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(11, "extLst"); - builder.AddChild<BubbleSerExtension>(); + builder.AddChild<AreaChartExtension>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BubbleSerExtension), 0, 0) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AreaChartExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<BubbleSerExtensionList>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<AreaChartExtensionList>(deep); } /// <summary> - /// <para>Defines the BubbleSerExtension Class.</para> + /// <para>Defines the Area3DChartExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2010.Drawing.Charts.InvertSolidFillFormat <c14:invertSolidFillFmt></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle <c15:filteredCategoryTitle></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange <c15:datalabelsRange></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions <c15:categoryFilterExceptions></description></item> + /// <item><description>Area3DChartExtension <c:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "ext")] + [SchemaAttr(11, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class BubbleSerExtension : OpenXmlCompositeElement + public partial class Area3DChartExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the BubbleSerExtension class. + /// Initializes a new instance of the Area3DChartExtensionList class. /// </summary> - public BubbleSerExtension() : base() + public Area3DChartExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the BubbleSerExtension class with the specified child elements. + /// Initializes a new instance of the Area3DChartExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public BubbleSerExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public Area3DChartExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the BubbleSerExtension class with the specified child elements. + /// Initializes a new instance of the Area3DChartExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public BubbleSerExtension(params OpenXmlElement[] childElements) : base(childElements) + public Area3DChartExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the BubbleSerExtension class from outer XML. + /// Initializes a new instance of the Area3DChartExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public BubbleSerExtension(string outerXml) : base(outerXml) - { - } - - /// <summary> - /// <para>URI</para> - /// <para>Represents the following attribute in the schema: uri</para> - /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "uri")] -#pragma warning restore CS0618 // Type or member is obsolete - - public StringValue? Uri + public Area3DChartExtensionList(string outerXml) : base(outerXml) { - get => GetAttribute<StringValue>(); - set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2010.Drawing.Charts.InvertSolidFillFormat>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions>(); - builder.AddElement<BubbleSerExtension>() -.AddAttribute(0, "uri", a => a.Uri, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}); - builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + builder.SetSchema(11, "extLst"); + builder.AddChild<Area3DChartExtension>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.Drawing.Charts.InvertSolidFillFormat), 1, 1, version: FileFormatVersions.Office2010), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.FilteredCategoryTitle), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.DataLabelsRange), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.CategoryFilterExceptions), 1, 1, version: FileFormatVersions.Office2013), - new AnyParticle(0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Area3DChartExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<BubbleSerExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<Area3DChartExtensionList>(deep); } /// <summary> - /// <para>Defines the SurfaceSerExtensionList Class.</para> + /// <para>Defines the BubbleChartSeries Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:ser.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>SurfaceSerExtension <c:ext></description></item> + /// <item><description>Index <c:idx></description></item> + /// <item><description>Order <c:order></description></item> + /// <item><description>SeriesText <c:tx></description></item> + /// <item><description>ChartShapeProperties <c:spPr></description></item> + /// <item><description>PictureOptions <c:pictureOptions></description></item> + /// <item><description>InvertIfNegative <c:invertIfNegative></description></item> + /// <item><description>DataPoint <c:dPt></description></item> + /// <item><description>DataLabels <c:dLbls></description></item> + /// <item><description>Trendline <c:trendline></description></item> + /// <item><description>ErrorBars <c:errBars></description></item> + /// <item><description>XValues <c:xVal></description></item> + /// <item><description>YValues <c:yVal></description></item> + /// <item><description>BubbleSize <c:bubbleSize></description></item> + /// <item><description>Bubble3D <c:bubble3D></description></item> + /// <item><description>BubbleSerExtensionList <c:extLst></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "extLst")] + [SchemaAttr(11, "ser")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class SurfaceSerExtensionList : OpenXmlCompositeElement + public partial class BubbleChartSeries : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the SurfaceSerExtensionList class. + /// Initializes a new instance of the BubbleChartSeries class. /// </summary> - public SurfaceSerExtensionList() : base() + public BubbleChartSeries() : base() { } /// <summary> - /// Initializes a new instance of the SurfaceSerExtensionList class with the specified child elements. + /// Initializes a new instance of the BubbleChartSeries class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public SurfaceSerExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public BubbleChartSeries(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the SurfaceSerExtensionList class with the specified child elements. + /// Initializes a new instance of the BubbleChartSeries class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public SurfaceSerExtensionList(params OpenXmlElement[] childElements) : base(childElements) + public BubbleChartSeries(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the SurfaceSerExtensionList class from outer XML. + /// Initializes a new instance of the BubbleChartSeries class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public SurfaceSerExtensionList(string outerXml) : base(outerXml) + public BubbleChartSeries(string outerXml) : base(outerXml) { } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "extLst"); - builder.AddChild<SurfaceSerExtension>(); + builder.SetSchema(11, "ser"); + builder.AddChild<Index>(); + builder.AddChild<Order>(); + builder.AddChild<SeriesText>(); + builder.AddChild<ChartShapeProperties>(); + builder.AddChild<PictureOptions>(); + builder.AddChild<InvertIfNegative>(); + builder.AddChild<DataPoint>(); + builder.AddChild<DataLabels>(); + builder.AddChild<Trendline>(); + builder.AddChild<ErrorBars>(); + builder.AddChild<XValues>(); + builder.AddChild<YValues>(); + builder.AddChild<BubbleSize>(); + builder.AddChild<Bubble3D>(); + builder.AddChild<BubbleSerExtensionList>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SurfaceSerExtension), 0, 0) + new CompositeParticle.Builder(ParticleType.Group, 1, 1) + { + new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Index), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Order), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SeriesText), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartShapeProperties), 0, 1) + } + }, + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PictureOptions), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.InvertIfNegative), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataPoint), 0, 0), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Trendline), 0, 0), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ErrorBars), 0, 2), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.XValues), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.YValues), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BubbleSize), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Bubble3D), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BubbleSerExtensionList), 0, 1) }; } - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<SurfaceSerExtensionList>(deep); - } + /// <summary> + /// <para>Index.</para> + /// <para>Represents the following element tag in the schema: c:idx.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public Index? Index + { + get => GetElement<Index>(); + set => SetElement(value); + } - /// <summary> - /// <para>Defines the LineChartExtensionList Class.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> - /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>LineChartExtension <c:ext></description></item> - /// </list> - /// </remark> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "extLst")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class LineChartExtensionList : OpenXmlCompositeElement - { /// <summary> - /// Initializes a new instance of the LineChartExtensionList class. + /// <para>Order.</para> + /// <para>Represents the following element tag in the schema: c:order.</para> /// </summary> - public LineChartExtensionList() : base() + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public Order? Order { + get => GetElement<Order>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the LineChartExtensionList class with the specified child elements. + /// <para>Series Text.</para> + /// <para>Represents the following element tag in the schema: c:tx.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public LineChartExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public SeriesText? SeriesText { + get => GetElement<SeriesText>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the LineChartExtensionList class with the specified child elements. + /// <para>ChartShapeProperties.</para> + /// <para>Represents the following element tag in the schema: c:spPr.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public LineChartExtensionList(params OpenXmlElement[] childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public ChartShapeProperties? ChartShapeProperties { + get => GetElement<ChartShapeProperties>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the LineChartExtensionList class from outer XML. + /// <para>PictureOptions.</para> + /// <para>Represents the following element tag in the schema: c:pictureOptions.</para> /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public LineChartExtensionList(string outerXml) : base(outerXml) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public PictureOptions? PictureOptions { + get => GetElement<PictureOptions>(); + set => SetElement(value); } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// <summary> + /// <para>InvertIfNegative.</para> + /// <para>Represents the following element tag in the schema: c:invertIfNegative.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public InvertIfNegative? InvertIfNegative { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "extLst"); - builder.AddChild<LineChartExtension>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.LineChartExtension), 0, 0) - }; + get => GetElement<InvertIfNegative>(); + set => SetElement(value); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<LineChartExtensionList>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<BubbleChartSeries>(deep); } /// <summary> - /// <para>Defines the Line3DChartExtensionList Class.</para> + /// <para>Defines the BubbleScale Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:bubbleScale.</para> /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>Line3DChartExtension <c:ext></description></item> - /// </list> - /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "extLst")] + [SchemaAttr(11, "bubbleScale")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class Line3DChartExtensionList : OpenXmlCompositeElement + public partial class BubbleScale : OpenXmlLeafElement { /// <summary> - /// Initializes a new instance of the Line3DChartExtensionList class. + /// Initializes a new instance of the BubbleScale class. /// </summary> - public Line3DChartExtensionList() : base() + public BubbleScale() : base() { } /// <summary> - /// Initializes a new instance of the Line3DChartExtensionList class with the specified child elements. + /// <para>Bubble Scale Value</para> + /// <para>Represents the following attribute in the schema: val</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public Line3DChartExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) - { - } - /// <summary> - /// Initializes a new instance of the Line3DChartExtensionList class with the specified child elements. - /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public Line3DChartExtensionList(params OpenXmlElement[] childElements) : base(childElements) - { - } +#pragma warning disable CS0618 // Type or member is obsolete - /// <summary> - /// Initializes a new instance of the Line3DChartExtensionList class from outer XML. - /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public Line3DChartExtensionList(string outerXml) : base(outerXml) + [SchemaAttr(0, "val")] +#pragma warning restore CS0618 // Type or member is obsolete + + public UInt32Value? Val { + get => GetAttribute<UInt32Value>(); + set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "extLst"); - builder.AddChild<Line3DChartExtension>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Line3DChartExtension), 0, 0) - }; + builder.SetSchema(11, "bubbleScale"); + builder.AddElement<BubbleScale>() +.AddAttribute(0, "val", a => a.Val, aBuilder => +{ +aBuilder.AddValidator(new NumberValidator() { MinInclusive = (0L), MaxInclusive = (300L) }); +}); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<Line3DChartExtensionList>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<BubbleScale>(deep); } /// <summary> - /// <para>Defines the ScatterStyle Class.</para> + /// <para>Defines the SizeRepresents Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:scatterStyle.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:sizeRepresents.</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "scatterStyle")] + [SchemaAttr(11, "sizeRepresents")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class ScatterStyle : OpenXmlLeafElement + public partial class SizeRepresents : OpenXmlLeafElement { /// <summary> - /// Initializes a new instance of the ScatterStyle class. + /// Initializes a new instance of the SizeRepresents class. /// </summary> - public ScatterStyle() : base() + public SizeRepresents() : base() { } /// <summary> - /// <para>Scatter Style Value</para> + /// <para>Size Represents Value</para> /// <para>Represents the following attribute in the schema: val</para> /// </summary> @@ -20038,237 +20302,192 @@ public ScatterStyle() : base() [SchemaAttr(0, "val")] #pragma warning restore CS0618 // Type or member is obsolete - public EnumValue<DocumentFormat.OpenXml.Drawing.Charts.ScatterStyleValues>? Val + public EnumValue<DocumentFormat.OpenXml.Drawing.Charts.SizeRepresentsValues>? Val { - get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.Charts.ScatterStyleValues>>(); + get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.Charts.SizeRepresentsValues>>(); set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "scatterStyle"); - builder.AddElement<ScatterStyle>() + builder.SetSchema(11, "sizeRepresents"); + builder.AddElement<SizeRepresents>() .AddAttribute(0, "val", a => a.Val); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<ScatterStyle>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<SizeRepresents>(deep); } /// <summary> - /// <para>Defines the ScatterChartSeries Class.</para> + /// <para>Defines the BubbleChartExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:ser.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>Index <c:idx></description></item> - /// <item><description>Order <c:order></description></item> - /// <item><description>SeriesText <c:tx></description></item> - /// <item><description>ChartShapeProperties <c:spPr></description></item> - /// <item><description>Marker <c:marker></description></item> - /// <item><description>DataPoint <c:dPt></description></item> - /// <item><description>DataLabels <c:dLbls></description></item> - /// <item><description>Trendline <c:trendline></description></item> - /// <item><description>ErrorBars <c:errBars></description></item> - /// <item><description>XValues <c:xVal></description></item> - /// <item><description>YValues <c:yVal></description></item> - /// <item><description>Smooth <c:smooth></description></item> - /// <item><description>ScatterSerExtensionList <c:extLst></description></item> + /// <item><description>BubbleChartExtension <c:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "ser")] + [SchemaAttr(11, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class ScatterChartSeries : OpenXmlCompositeElement + public partial class BubbleChartExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the ScatterChartSeries class. + /// Initializes a new instance of the BubbleChartExtensionList class. /// </summary> - public ScatterChartSeries() : base() + public BubbleChartExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the ScatterChartSeries class with the specified child elements. + /// Initializes a new instance of the BubbleChartExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public ScatterChartSeries(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public BubbleChartExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the ScatterChartSeries class with the specified child elements. + /// Initializes a new instance of the BubbleChartExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public ScatterChartSeries(params OpenXmlElement[] childElements) : base(childElements) + public BubbleChartExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the ScatterChartSeries class from outer XML. + /// Initializes a new instance of the BubbleChartExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public ScatterChartSeries(string outerXml) : base(outerXml) + public BubbleChartExtensionList(string outerXml) : base(outerXml) { } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "ser"); - builder.AddChild<Index>(); - builder.AddChild<Order>(); - builder.AddChild<SeriesText>(); - builder.AddChild<ChartShapeProperties>(); - builder.AddChild<Marker>(); - builder.AddChild<DataPoint>(); - builder.AddChild<DataLabels>(); - builder.AddChild<Trendline>(); - builder.AddChild<ErrorBars>(); - builder.AddChild<XValues>(); - builder.AddChild<YValues>(); - builder.AddChild<Smooth>(); - builder.AddChild<ScatterSerExtensionList>(); + builder.SetSchema(11, "extLst"); + builder.AddChild<BubbleChartExtension>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new CompositeParticle.Builder(ParticleType.Group, 1, 1) - { - new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Index), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Order), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SeriesText), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartShapeProperties), 0, 1) - } - }, - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Marker), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataPoint), 0, 0), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Trendline), 0, 0), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ErrorBars), 0, 2), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.XValues), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.YValues), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Smooth), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ScatterSerExtensionList), 0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BubbleChartExtension), 0, 0) }; } + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<BubbleChartExtensionList>(deep); + } + + /// <summary> + /// <para>Defines the SurfaceChartExtensionList Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>SurfaceChartExtension <c:ext></description></item> + /// </list> + /// </remark> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "extLst")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class SurfaceChartExtensionList : OpenXmlCompositeElement + { /// <summary> - /// <para>Index.</para> - /// <para>Represents the following element tag in the schema: c:idx.</para> + /// Initializes a new instance of the SurfaceChartExtensionList class. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Index? Index + public SurfaceChartExtensionList() : base() { - get => GetElement<Index>(); - set => SetElement(value); } /// <summary> - /// <para>Order.</para> - /// <para>Represents the following element tag in the schema: c:order.</para> + /// Initializes a new instance of the SurfaceChartExtensionList class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Order? Order + /// <param name="childElements">Specifies the child elements.</param> + public SurfaceChartExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { - get => GetElement<Order>(); - set => SetElement(value); } /// <summary> - /// <para>Series Text.</para> - /// <para>Represents the following element tag in the schema: c:tx.</para> + /// Initializes a new instance of the SurfaceChartExtensionList class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public SeriesText? SeriesText + /// <param name="childElements">Specifies the child elements.</param> + public SurfaceChartExtensionList(params OpenXmlElement[] childElements) : base(childElements) { - get => GetElement<SeriesText>(); - set => SetElement(value); } /// <summary> - /// <para>ChartShapeProperties.</para> - /// <para>Represents the following element tag in the schema: c:spPr.</para> + /// Initializes a new instance of the SurfaceChartExtensionList class from outer XML. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public ChartShapeProperties? ChartShapeProperties + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public SurfaceChartExtensionList(string outerXml) : base(outerXml) { - get => GetElement<ChartShapeProperties>(); - set => SetElement(value); } - /// <summary> - /// <para>Marker.</para> - /// <para>Represents the following element tag in the schema: c:marker.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Marker? Marker + internal override void ConfigureMetadata(ElementMetadata.Builder builder) { - get => GetElement<Marker>(); - set => SetElement(value); + base.ConfigureMetadata(builder); + builder.SetSchema(11, "extLst"); + builder.AddChild<SurfaceChartExtension>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SurfaceChartExtension), 0, 0) + }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<ScatterChartSeries>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<SurfaceChartExtensionList>(deep); } /// <summary> - /// <para>Defines the ScatterChartExtensionList Class.</para> + /// <para>Defines the Surface3DChartExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>ScatterChartExtension <c:ext></description></item> + /// <item><description>Surface3DChartExtension <c:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(11, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class ScatterChartExtensionList : OpenXmlCompositeElement + public partial class Surface3DChartExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the ScatterChartExtensionList class. + /// Initializes a new instance of the Surface3DChartExtensionList class. /// </summary> - public ScatterChartExtensionList() : base() + public Surface3DChartExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the ScatterChartExtensionList class with the specified child elements. + /// Initializes a new instance of the Surface3DChartExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public ScatterChartExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public Surface3DChartExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the ScatterChartExtensionList class with the specified child elements. + /// Initializes a new instance of the Surface3DChartExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public ScatterChartExtensionList(params OpenXmlElement[] childElements) : base(childElements) + public Surface3DChartExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the ScatterChartExtensionList class from outer XML. + /// Initializes a new instance of the Surface3DChartExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public ScatterChartExtensionList(string outerXml) : base(outerXml) + public Surface3DChartExtensionList(string outerXml) : base(outerXml) { } @@ -20276,36 +20495,36 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(11, "extLst"); - builder.AddChild<ScatterChartExtension>(); + builder.AddChild<Surface3DChartExtension>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ScatterChartExtension), 0, 0) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Surface3DChartExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<ScatterChartExtensionList>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<Surface3DChartExtensionList>(deep); } /// <summary> - /// <para>Defines the RadarStyle Class.</para> + /// <para>Defines the LabelAlignment Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:radarStyle.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:lblAlgn.</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "radarStyle")] + [SchemaAttr(11, "lblAlgn")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class RadarStyle : OpenXmlLeafElement + public partial class LabelAlignment : OpenXmlLeafElement { /// <summary> - /// Initializes a new instance of the RadarStyle class. + /// Initializes a new instance of the LabelAlignment class. /// </summary> - public RadarStyle() : base() + public LabelAlignment() : base() { } /// <summary> - /// <para>Radar Style Value</para> + /// <para>Label Alignment Value</para> /// <para>Represents the following attribute in the schema: val</para> /// </summary> @@ -20314,17 +20533,17 @@ public RadarStyle() : base() [SchemaAttr(0, "val")] #pragma warning restore CS0618 // Type or member is obsolete - public EnumValue<DocumentFormat.OpenXml.Drawing.Charts.RadarStyleValues>? Val + public EnumValue<DocumentFormat.OpenXml.Drawing.Charts.LabelAlignmentValues>? Val { - get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.Charts.RadarStyleValues>>(); + get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.Charts.LabelAlignmentValues>>(); set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "radarStyle"); - builder.AddElement<RadarStyle>() + builder.SetSchema(11, "lblAlgn"); + builder.AddElement<LabelAlignment>() .AddAttribute(0, "val", a => a.Val, aBuilder => { aBuilder.AddValidator(RequiredValidator.Instance); @@ -20332,229 +20551,197 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<RadarStyle>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<LabelAlignment>(deep); } /// <summary> - /// <para>Defines the RadarChartSeries Class.</para> + /// <para>Defines the LabelOffset Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:ser.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:lblOffset.</para> /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>Index <c:idx></description></item> - /// <item><description>Order <c:order></description></item> - /// <item><description>SeriesText <c:tx></description></item> - /// <item><description>ChartShapeProperties <c:spPr></description></item> - /// <item><description>PictureOptions <c:pictureOptions></description></item> - /// <item><description>Marker <c:marker></description></item> - /// <item><description>DataPoint <c:dPt></description></item> - /// <item><description>DataLabels <c:dLbls></description></item> - /// <item><description>CategoryAxisData <c:cat></description></item> - /// <item><description>Values <c:val></description></item> - /// <item><description>RadarSerExtensionList <c:extLst></description></item> - /// </list> - /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "ser")] + [SchemaAttr(11, "lblOffset")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class RadarChartSeries : OpenXmlCompositeElement + public partial class LabelOffset : OpenXmlLeafElement { /// <summary> - /// Initializes a new instance of the RadarChartSeries class. + /// Initializes a new instance of the LabelOffset class. /// </summary> - public RadarChartSeries() : base() + public LabelOffset() : base() { } /// <summary> - /// Initializes a new instance of the RadarChartSeries class with the specified child elements. + /// <para>Label Offset Value</para> + /// <para>Represents the following attribute in the schema: val</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public RadarChartSeries(IEnumerable<OpenXmlElement> childElements) : base(childElements) - { - } - /// <summary> - /// Initializes a new instance of the RadarChartSeries class with the specified child elements. - /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public RadarChartSeries(params OpenXmlElement[] childElements) : base(childElements) - { - } +#pragma warning disable CS0618 // Type or member is obsolete - /// <summary> - /// Initializes a new instance of the RadarChartSeries class from outer XML. - /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public RadarChartSeries(string outerXml) : base(outerXml) + [SchemaAttr(0, "val")] +#pragma warning restore CS0618 // Type or member is obsolete + + public UInt16Value? Val { + get => GetAttribute<UInt16Value>(); + set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "ser"); - builder.AddChild<Index>(); - builder.AddChild<Order>(); - builder.AddChild<SeriesText>(); - builder.AddChild<ChartShapeProperties>(); - builder.AddChild<PictureOptions>(); - builder.AddChild<Marker>(); - builder.AddChild<DataPoint>(); - builder.AddChild<DataLabels>(); - builder.AddChild<CategoryAxisData>(); - builder.AddChild<Values>(); - builder.AddChild<RadarSerExtensionList>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new CompositeParticle.Builder(ParticleType.Group, 1, 1) - { - new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Index), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Order), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SeriesText), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartShapeProperties), 0, 1) - } - }, - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PictureOptions), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Marker), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataPoint), 0, 0), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CategoryAxisData), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Values), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.RadarSerExtensionList), 0, 1) - }; + builder.SetSchema(11, "lblOffset"); + builder.AddElement<LabelOffset>() +.AddAttribute(0, "val", a => a.Val, aBuilder => +{ +aBuilder.AddValidator(new NumberValidator() { MinInclusive = (0L), MaxInclusive = (1000L) }); +}); } + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<LabelOffset>(deep); + } + + /// <summary> + /// <para>Defines the TickLabelSkip Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:tickLblSkip.</para> + /// </summary> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "tickLblSkip")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class TickLabelSkip : SkipType + { /// <summary> - /// <para>Index.</para> - /// <para>Represents the following element tag in the schema: c:idx.</para> + /// Initializes a new instance of the TickLabelSkip class. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Index? Index + public TickLabelSkip() : base() { - get => GetElement<Index>(); - set => SetElement(value); } - /// <summary> - /// <para>Order.</para> - /// <para>Represents the following element tag in the schema: c:order.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Order? Order + internal override void ConfigureMetadata(ElementMetadata.Builder builder) { - get => GetElement<Order>(); - set => SetElement(value); + base.ConfigureMetadata(builder); + builder.SetSchema(11, "tickLblSkip"); } + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<TickLabelSkip>(deep); + } + + /// <summary> + /// <para>Defines the TickMarkSkip Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:tickMarkSkip.</para> + /// </summary> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "tickMarkSkip")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class TickMarkSkip : SkipType + { /// <summary> - /// <para>Series Text.</para> - /// <para>Represents the following element tag in the schema: c:tx.</para> + /// Initializes a new instance of the TickMarkSkip class. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public SeriesText? SeriesText + public TickMarkSkip() : base() { - get => GetElement<SeriesText>(); - set => SetElement(value); } - /// <summary> - /// <para>ChartShapeProperties.</para> - /// <para>Represents the following element tag in the schema: c:spPr.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public ChartShapeProperties? ChartShapeProperties + internal override void ConfigureMetadata(ElementMetadata.Builder builder) { - get => GetElement<ChartShapeProperties>(); - set => SetElement(value); + base.ConfigureMetadata(builder); + builder.SetSchema(11, "tickMarkSkip"); } + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<TickMarkSkip>(deep); + } + + /// <summary> + /// <para>Defines the SkipType Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is :.</para> + /// </summary> + public abstract partial class SkipType : OpenXmlLeafElement + { /// <summary> - /// <para>PictureOptions.</para> - /// <para>Represents the following element tag in the schema: c:pictureOptions.</para> + /// Initializes a new instance of the SkipType class. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public PictureOptions? PictureOptions + protected SkipType() : base() { - get => GetElement<PictureOptions>(); - set => SetElement(value); } /// <summary> - /// <para>Marker.</para> - /// <para>Represents the following element tag in the schema: c:marker.</para> + /// <para>Tick Skip Value</para> + /// <para>Represents the following attribute in the schema: val</para> /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Marker? Marker + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "val")] +#pragma warning restore CS0618 // Type or member is obsolete + + public Int32Value? Val { - get => GetElement<Marker>(); - set => SetElement(value); + get => GetAttribute<Int32Value>(); + set => SetAttribute(value); } - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<RadarChartSeries>(deep); + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.AddElement<SkipType>() + .AddAttribute(0, "val", a => a.Val, aBuilder => + { + aBuilder.AddValidator(RequiredValidator.Instance); + aBuilder.AddValidator(new NumberValidator() { MinInclusive = (1L) }); + }); + } } /// <summary> - /// <para>Defines the RadarChartExtensionList Class.</para> + /// <para>Defines the CatAxExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>RadarChartExtension <c:ext></description></item> + /// <item><description>CatAxExtension <c:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(11, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class RadarChartExtensionList : OpenXmlCompositeElement + public partial class CatAxExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the RadarChartExtensionList class. + /// Initializes a new instance of the CatAxExtensionList class. /// </summary> - public RadarChartExtensionList() : base() + public CatAxExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the RadarChartExtensionList class with the specified child elements. + /// Initializes a new instance of the CatAxExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public RadarChartExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public CatAxExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the RadarChartExtensionList class with the specified child elements. + /// Initializes a new instance of the CatAxExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public RadarChartExtensionList(params OpenXmlElement[] childElements) : base(childElements) + public CatAxExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the RadarChartExtensionList class from outer XML. + /// Initializes a new instance of the CatAxExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public RadarChartExtensionList(string outerXml) : base(outerXml) + public CatAxExtensionList(string outerXml) : base(outerXml) { } @@ -20562,36 +20749,114 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(11, "extLst"); - builder.AddChild<RadarChartExtension>(); + builder.AddChild<CatAxExtension>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.RadarChartExtension), 0, 0) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CatAxExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<RadarChartExtensionList>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<CatAxExtensionList>(deep); } /// <summary> - /// <para>Defines the Overlap Class.</para> + /// <para>Defines the BaseTimeUnit Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:overlap.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:baseTimeUnit.</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "overlap")] + [SchemaAttr(11, "baseTimeUnit")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class Overlap : OpenXmlLeafElement + public partial class BaseTimeUnit : TimeUnitType { /// <summary> - /// Initializes a new instance of the Overlap class. + /// Initializes a new instance of the BaseTimeUnit class. /// </summary> - public Overlap() : base() + public BaseTimeUnit() : base() + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) { + base.ConfigureMetadata(builder); + builder.SetSchema(11, "baseTimeUnit"); } + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<BaseTimeUnit>(deep); + } + + /// <summary> + /// <para>Defines the MajorTimeUnit Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:majorTimeUnit.</para> + /// </summary> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "majorTimeUnit")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class MajorTimeUnit : TimeUnitType + { /// <summary> - /// <para>Overlap Value</para> + /// Initializes a new instance of the MajorTimeUnit class. + /// </summary> + public MajorTimeUnit() : base() + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(11, "majorTimeUnit"); + } + + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<MajorTimeUnit>(deep); + } + + /// <summary> + /// <para>Defines the MinorTimeUnit Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:minorTimeUnit.</para> + /// </summary> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "minorTimeUnit")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class MinorTimeUnit : TimeUnitType + { + /// <summary> + /// Initializes a new instance of the MinorTimeUnit class. + /// </summary> + public MinorTimeUnit() : base() + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(11, "minorTimeUnit"); + } + + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<MinorTimeUnit>(deep); + } + + /// <summary> + /// <para>Defines the TimeUnitType Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is :.</para> + /// </summary> + public abstract partial class TimeUnitType : OpenXmlLeafElement + { + /// <summary> + /// Initializes a new instance of the TimeUnitType class. + /// </summary> + protected TimeUnitType() : base() + { + } + + /// <summary> + /// <para>Time Unit Value</para> /// <para>Represents the following attribute in the schema: val</para> /// </summary> @@ -20600,133 +20865,160 @@ public Overlap() : base() [SchemaAttr(0, "val")] #pragma warning restore CS0618 // Type or member is obsolete - public SByteValue? Val + public EnumValue<DocumentFormat.OpenXml.Drawing.Charts.TimeUnitValues>? Val { - get => GetAttribute<SByteValue>(); + get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.Charts.TimeUnitValues>>(); set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "overlap"); - builder.AddElement<Overlap>() -.AddAttribute(0, "val", a => a.Val, aBuilder => -{ -aBuilder.AddValidator(new NumberValidator() { MinInclusive = (-100L), MaxInclusive = (100L) }); -}); + builder.AddElement<TimeUnitType>() + .AddAttribute(0, "val", a => a.Val); } - - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<Overlap>(deep); } /// <summary> - /// <para>Defines the BarChartExtensionList Class.</para> + /// <para>Defines the MajorUnit Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:majorUnit.</para> /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>BarChartExtension <c:ext></description></item> - /// </list> - /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "extLst")] + [SchemaAttr(11, "majorUnit")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class BarChartExtensionList : OpenXmlCompositeElement + public partial class MajorUnit : AxisUnitType { /// <summary> - /// Initializes a new instance of the BarChartExtensionList class. + /// Initializes a new instance of the MajorUnit class. /// </summary> - public BarChartExtensionList() : base() + public MajorUnit() : base() + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) { + base.ConfigureMetadata(builder); + builder.SetSchema(11, "majorUnit"); } + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<MajorUnit>(deep); + } + + /// <summary> + /// <para>Defines the MinorUnit Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:minorUnit.</para> + /// </summary> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "minorUnit")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class MinorUnit : AxisUnitType + { /// <summary> - /// Initializes a new instance of the BarChartExtensionList class with the specified child elements. + /// Initializes a new instance of the MinorUnit class. /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public BarChartExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public MinorUnit() : base() + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) { + base.ConfigureMetadata(builder); + builder.SetSchema(11, "minorUnit"); } + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<MinorUnit>(deep); + } + + /// <summary> + /// <para>Defines the AxisUnitType Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is :.</para> + /// </summary> + public abstract partial class AxisUnitType : OpenXmlLeafElement + { /// <summary> - /// Initializes a new instance of the BarChartExtensionList class with the specified child elements. + /// Initializes a new instance of the AxisUnitType class. /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public BarChartExtensionList(params OpenXmlElement[] childElements) : base(childElements) + protected AxisUnitType() : base() { } /// <summary> - /// Initializes a new instance of the BarChartExtensionList class from outer XML. + /// <para>Major Unit Value</para> + /// <para>Represents the following attribute in the schema: val</para> /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public BarChartExtensionList(string outerXml) : base(outerXml) + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "val")] +#pragma warning restore CS0618 // Type or member is obsolete + + public DoubleValue? Val { + get => GetAttribute<DoubleValue>(); + set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "extLst"); - builder.AddChild<BarChartExtension>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BarChartExtension), 0, 0) - }; + builder.AddElement<AxisUnitType>() + .AddAttribute(0, "val", a => a.Val, aBuilder => + { + aBuilder.AddValidator(RequiredValidator.Instance); + aBuilder.AddValidator(new NumberValidator() { MinExclusive = (0L) }); + }); } - - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<BarChartExtensionList>(deep); } /// <summary> - /// <para>Defines the Bar3DChartExtensionList Class.</para> + /// <para>Defines the DateAxExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>Bar3DChartExtension <c:ext></description></item> + /// <item><description>DateAxExtension <c:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(11, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class Bar3DChartExtensionList : OpenXmlCompositeElement + public partial class DateAxExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the Bar3DChartExtensionList class. + /// Initializes a new instance of the DateAxExtensionList class. /// </summary> - public Bar3DChartExtensionList() : base() + public DateAxExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the Bar3DChartExtensionList class with the specified child elements. + /// Initializes a new instance of the DateAxExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public Bar3DChartExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public DateAxExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the Bar3DChartExtensionList class with the specified child elements. + /// Initializes a new instance of the DateAxExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public Bar3DChartExtensionList(params OpenXmlElement[] childElements) : base(childElements) + public DateAxExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the Bar3DChartExtensionList class from outer XML. + /// Initializes a new instance of the DateAxExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public Bar3DChartExtensionList(string outerXml) : base(outerXml) + public DateAxExtensionList(string outerXml) : base(outerXml) { } @@ -20734,61 +21026,61 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(11, "extLst"); - builder.AddChild<Bar3DChartExtension>(); + builder.AddChild<DateAxExtension>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Bar3DChartExtension), 0, 0) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DateAxExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<Bar3DChartExtensionList>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<DateAxExtensionList>(deep); } /// <summary> - /// <para>Defines the AreaChartExtensionList Class.</para> + /// <para>Defines the SerAxExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>AreaChartExtension <c:ext></description></item> + /// <item><description>SerAxExtension <c:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(11, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class AreaChartExtensionList : OpenXmlCompositeElement + public partial class SerAxExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the AreaChartExtensionList class. + /// Initializes a new instance of the SerAxExtensionList class. /// </summary> - public AreaChartExtensionList() : base() + public SerAxExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the AreaChartExtensionList class with the specified child elements. + /// Initializes a new instance of the SerAxExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public AreaChartExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public SerAxExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the AreaChartExtensionList class with the specified child elements. + /// Initializes a new instance of the SerAxExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public AreaChartExtensionList(params OpenXmlElement[] childElements) : base(childElements) + public SerAxExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the AreaChartExtensionList class from outer XML. + /// Initializes a new instance of the SerAxExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public AreaChartExtensionList(string outerXml) : base(outerXml) + public SerAxExtensionList(string outerXml) : base(outerXml) { } @@ -20796,286 +21088,220 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(11, "extLst"); - builder.AddChild<AreaChartExtension>(); + builder.AddChild<SerAxExtension>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AreaChartExtension), 0, 0) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SerAxExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<AreaChartExtensionList>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<SerAxExtensionList>(deep); } /// <summary> - /// <para>Defines the Area3DChartExtensionList Class.</para> + /// <para>Defines the CrossBetween Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:crossBetween.</para> /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>Area3DChartExtension <c:ext></description></item> - /// </list> - /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "extLst")] + [SchemaAttr(11, "crossBetween")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class Area3DChartExtensionList : OpenXmlCompositeElement + public partial class CrossBetween : OpenXmlLeafElement { /// <summary> - /// Initializes a new instance of the Area3DChartExtensionList class. + /// Initializes a new instance of the CrossBetween class. /// </summary> - public Area3DChartExtensionList() : base() + public CrossBetween() : base() { } /// <summary> - /// Initializes a new instance of the Area3DChartExtensionList class with the specified child elements. + /// <para>Cross Between Value</para> + /// <para>Represents the following attribute in the schema: val</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public Area3DChartExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) - { - } - /// <summary> - /// Initializes a new instance of the Area3DChartExtensionList class with the specified child elements. - /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public Area3DChartExtensionList(params OpenXmlElement[] childElements) : base(childElements) - { - } +#pragma warning disable CS0618 // Type or member is obsolete - /// <summary> - /// Initializes a new instance of the Area3DChartExtensionList class from outer XML. - /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public Area3DChartExtensionList(string outerXml) : base(outerXml) + [SchemaAttr(0, "val")] +#pragma warning restore CS0618 // Type or member is obsolete + + public EnumValue<DocumentFormat.OpenXml.Drawing.Charts.CrossBetweenValues>? Val { + get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.Charts.CrossBetweenValues>>(); + set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "extLst"); - builder.AddChild<Area3DChartExtension>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Area3DChartExtension), 0, 0) - }; + builder.SetSchema(11, "crossBetween"); + builder.AddElement<CrossBetween>() +.AddAttribute(0, "val", a => a.Val, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +}); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<Area3DChartExtensionList>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<CrossBetween>(deep); } /// <summary> - /// <para>Defines the BubbleChartSeries Class.</para> + /// <para>Defines the DisplayUnits Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:ser.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:dispUnits.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>Index <c:idx></description></item> - /// <item><description>Order <c:order></description></item> - /// <item><description>SeriesText <c:tx></description></item> - /// <item><description>ChartShapeProperties <c:spPr></description></item> - /// <item><description>PictureOptions <c:pictureOptions></description></item> - /// <item><description>InvertIfNegative <c:invertIfNegative></description></item> - /// <item><description>DataPoint <c:dPt></description></item> - /// <item><description>DataLabels <c:dLbls></description></item> - /// <item><description>Trendline <c:trendline></description></item> - /// <item><description>ErrorBars <c:errBars></description></item> - /// <item><description>XValues <c:xVal></description></item> - /// <item><description>YValues <c:yVal></description></item> - /// <item><description>BubbleSize <c:bubbleSize></description></item> - /// <item><description>Bubble3D <c:bubble3D></description></item> - /// <item><description>BubbleSerExtensionList <c:extLst></description></item> + /// <item><description>CustomDisplayUnit <c:custUnit></description></item> + /// <item><description>BuiltInUnit <c:builtInUnit></description></item> + /// <item><description>DisplayUnitsLabel <c:dispUnitsLbl></description></item> + /// <item><description>ExtensionList <c:extLst></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "ser")] + [SchemaAttr(11, "dispUnits")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class BubbleChartSeries : OpenXmlCompositeElement + public partial class DisplayUnits : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the BubbleChartSeries class. + /// Initializes a new instance of the DisplayUnits class. /// </summary> - public BubbleChartSeries() : base() + public DisplayUnits() : base() { } /// <summary> - /// Initializes a new instance of the BubbleChartSeries class with the specified child elements. + /// Initializes a new instance of the DisplayUnits class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public BubbleChartSeries(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public DisplayUnits(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the BubbleChartSeries class with the specified child elements. + /// Initializes a new instance of the DisplayUnits class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public BubbleChartSeries(params OpenXmlElement[] childElements) : base(childElements) + public DisplayUnits(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the BubbleChartSeries class from outer XML. + /// Initializes a new instance of the DisplayUnits class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public BubbleChartSeries(string outerXml) : base(outerXml) + public DisplayUnits(string outerXml) : base(outerXml) { } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "ser"); - builder.AddChild<Index>(); - builder.AddChild<Order>(); - builder.AddChild<SeriesText>(); - builder.AddChild<ChartShapeProperties>(); - builder.AddChild<PictureOptions>(); - builder.AddChild<InvertIfNegative>(); - builder.AddChild<DataPoint>(); - builder.AddChild<DataLabels>(); - builder.AddChild<Trendline>(); - builder.AddChild<ErrorBars>(); - builder.AddChild<XValues>(); - builder.AddChild<YValues>(); - builder.AddChild<BubbleSize>(); - builder.AddChild<Bubble3D>(); - builder.AddChild<BubbleSerExtensionList>(); + builder.SetSchema(11, "dispUnits"); + builder.AddChild<CustomDisplayUnit>(); + builder.AddChild<BuiltInUnit>(); + builder.AddChild<DisplayUnitsLabel>(); + builder.AddChild<ExtensionList>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new CompositeParticle.Builder(ParticleType.Group, 1, 1) + new CompositeParticle.Builder(ParticleType.Choice, 1, 1) { - new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Index), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Order), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SeriesText), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartShapeProperties), 0, 1) - } + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CustomDisplayUnit), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BuiltInUnit), 1, 1) }, - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PictureOptions), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.InvertIfNegative), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataPoint), 0, 0), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataLabels), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Trendline), 0, 0), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ErrorBars), 0, 2), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.XValues), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.YValues), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BubbleSize), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Bubble3D), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BubbleSerExtensionList), 0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DisplayUnitsLabel), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) }; } - /// <summary> - /// <para>Index.</para> - /// <para>Represents the following element tag in the schema: c:idx.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Index? Index - { - get => GetElement<Index>(); - set => SetElement(value); - } - - /// <summary> - /// <para>Order.</para> - /// <para>Represents the following element tag in the schema: c:order.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Order? Order - { - get => GetElement<Order>(); - set => SetElement(value); - } + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<DisplayUnits>(deep); + } + /// <summary> + /// <para>Defines the ValAxExtensionList Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>ValAxExtension <c:ext></description></item> + /// </list> + /// </remark> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "extLst")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class ValAxExtensionList : OpenXmlCompositeElement + { /// <summary> - /// <para>Series Text.</para> - /// <para>Represents the following element tag in the schema: c:tx.</para> + /// Initializes a new instance of the ValAxExtensionList class. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public SeriesText? SeriesText + public ValAxExtensionList() : base() { - get => GetElement<SeriesText>(); - set => SetElement(value); } /// <summary> - /// <para>ChartShapeProperties.</para> - /// <para>Represents the following element tag in the schema: c:spPr.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public ChartShapeProperties? ChartShapeProperties + /// Initializes a new instance of the ValAxExtensionList class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public ValAxExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { - get => GetElement<ChartShapeProperties>(); - set => SetElement(value); } /// <summary> - /// <para>PictureOptions.</para> - /// <para>Represents the following element tag in the schema: c:pictureOptions.</para> + /// Initializes a new instance of the ValAxExtensionList class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public PictureOptions? PictureOptions + /// <param name="childElements">Specifies the child elements.</param> + public ValAxExtensionList(params OpenXmlElement[] childElements) : base(childElements) { - get => GetElement<PictureOptions>(); - set => SetElement(value); } /// <summary> - /// <para>InvertIfNegative.</para> - /// <para>Represents the following element tag in the schema: c:invertIfNegative.</para> + /// Initializes a new instance of the ValAxExtensionList class from outer XML. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public InvertIfNegative? InvertIfNegative + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public ValAxExtensionList(string outerXml) : base(outerXml) { - get => GetElement<InvertIfNegative>(); - set => SetElement(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(11, "extLst"); + builder.AddChild<ValAxExtension>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ValAxExtension), 0, 0) + }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<BubbleChartSeries>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<ValAxExtensionList>(deep); } /// <summary> - /// <para>Defines the BubbleScale Class.</para> + /// <para>Defines the EditingLanguage Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:bubbleScale.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:lang.</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "bubbleScale")] + [SchemaAttr(11, "lang")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class BubbleScale : OpenXmlLeafElement + public partial class EditingLanguage : OpenXmlLeafElement { /// <summary> - /// Initializes a new instance of the BubbleScale class. + /// Initializes a new instance of the EditingLanguage class. /// </summary> - public BubbleScale() : base() + public EditingLanguage() : base() { } /// <summary> - /// <para>Bubble Scale Value</para> + /// <para>Language Code</para> /// <para>Represents the following attribute in the schema: val</para> /// </summary> @@ -21084,46 +21310,46 @@ public BubbleScale() : base() [SchemaAttr(0, "val")] #pragma warning restore CS0618 // Type or member is obsolete - public UInt32Value? Val + public StringValue? Val { - get => GetAttribute<UInt32Value>(); + get => GetAttribute<StringValue>(); set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "bubbleScale"); - builder.AddElement<BubbleScale>() + builder.SetSchema(11, "lang"); + builder.AddElement<EditingLanguage>() .AddAttribute(0, "val", a => a.Val, aBuilder => { -aBuilder.AddValidator(new NumberValidator() { MinInclusive = (0L), MaxInclusive = (300L) }); + aBuilder.AddValidator(RequiredValidator.Instance); }); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<BubbleScale>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<EditingLanguage>(deep); } /// <summary> - /// <para>Defines the SizeRepresents Class.</para> + /// <para>Defines the Style Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:sizeRepresents.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:style.</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "sizeRepresents")] + [SchemaAttr(11, "style")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class SizeRepresents : OpenXmlLeafElement + public partial class Style : OpenXmlLeafElement { /// <summary> - /// Initializes a new instance of the SizeRepresents class. + /// Initializes a new instance of the Style class. /// </summary> - public SizeRepresents() : base() + public Style() : base() { } /// <summary> - /// <para>Size Represents Value</para> + /// <para>Style Type</para> /// <para>Represents the following attribute in the schema: val</para> /// </summary> @@ -21132,1498 +21358,1533 @@ public SizeRepresents() : base() [SchemaAttr(0, "val")] #pragma warning restore CS0618 // Type or member is obsolete - public EnumValue<DocumentFormat.OpenXml.Drawing.Charts.SizeRepresentsValues>? Val + public ByteValue? Val { - get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.Charts.SizeRepresentsValues>>(); + get => GetAttribute<ByteValue>(); set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "sizeRepresents"); - builder.AddElement<SizeRepresents>() -.AddAttribute(0, "val", a => a.Val); + builder.SetSchema(11, "style"); + builder.AddElement<Style>() +.AddAttribute(0, "val", a => a.Val, aBuilder => +{ + aBuilder.AddValidator(new NumberValidator() { MinInclusive = (1L), MaxInclusive = (48L) }); +}); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<SizeRepresents>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<Style>(deep); } /// <summary> - /// <para>Defines the BubbleChartExtensionList Class.</para> + /// <para>Defines the ColorMapOverride Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:clrMapOvr.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>BubbleChartExtension <c:ext></description></item> + /// <item><description>DocumentFormat.OpenXml.Drawing.ExtensionList <a:extLst></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "extLst")] + [SchemaAttr(11, "clrMapOvr")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class BubbleChartExtensionList : OpenXmlCompositeElement + public partial class ColorMapOverride : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the BubbleChartExtensionList class. + /// Initializes a new instance of the ColorMapOverride class. /// </summary> - public BubbleChartExtensionList() : base() + public ColorMapOverride() : base() { } /// <summary> - /// Initializes a new instance of the BubbleChartExtensionList class with the specified child elements. + /// Initializes a new instance of the ColorMapOverride class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public BubbleChartExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public ColorMapOverride(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the BubbleChartExtensionList class with the specified child elements. + /// Initializes a new instance of the ColorMapOverride class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public BubbleChartExtensionList(params OpenXmlElement[] childElements) : base(childElements) + public ColorMapOverride(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the BubbleChartExtensionList class from outer XML. + /// Initializes a new instance of the ColorMapOverride class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public BubbleChartExtensionList(string outerXml) : base(outerXml) - { - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + public ColorMapOverride(string outerXml) : base(outerXml) { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "extLst"); - builder.AddChild<BubbleChartExtension>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BubbleChartExtension), 0, 0) - }; } - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<BubbleChartExtensionList>(deep); - } + /// <summary> + /// <para>Background 1</para> + /// <para>Represents the following attribute in the schema: bg1</para> + /// </summary> - /// <summary> - /// <para>Defines the SurfaceChartExtensionList Class.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> - /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>SurfaceChartExtension <c:ext></description></item> - /// </list> - /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "extLst")] + + [SchemaAttr(0, "bg1")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class SurfaceChartExtensionList : OpenXmlCompositeElement - { - /// <summary> - /// Initializes a new instance of the SurfaceChartExtensionList class. - /// </summary> - public SurfaceChartExtensionList() : base() - { - } - /// <summary> - /// Initializes a new instance of the SurfaceChartExtensionList class with the specified child elements. - /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public SurfaceChartExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>? Background1 { + get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>>(); + set => SetAttribute(value); } /// <summary> - /// Initializes a new instance of the SurfaceChartExtensionList class with the specified child elements. + /// <para>Text 1</para> + /// <para>Represents the following attribute in the schema: tx1</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public SurfaceChartExtensionList(params OpenXmlElement[] childElements) : base(childElements) - { - } - /// <summary> - /// Initializes a new instance of the SurfaceChartExtensionList class from outer XML. - /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public SurfaceChartExtensionList(string outerXml) : base(outerXml) - { - } +#pragma warning disable CS0618 // Type or member is obsolete - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + [SchemaAttr(0, "tx1")] +#pragma warning restore CS0618 // Type or member is obsolete + + public EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>? Text1 { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "extLst"); - builder.AddChild<SurfaceChartExtension>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SurfaceChartExtension), 0, 0) - }; + get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>>(); + set => SetAttribute(value); } - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<SurfaceChartExtensionList>(deep); - } + /// <summary> + /// <para>Background 2</para> + /// <para>Represents the following attribute in the schema: bg2</para> + /// </summary> - /// <summary> - /// <para>Defines the Surface3DChartExtensionList Class.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> - /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>Surface3DChartExtension <c:ext></description></item> - /// </list> - /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "extLst")] + + [SchemaAttr(0, "bg2")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class Surface3DChartExtensionList : OpenXmlCompositeElement - { - /// <summary> - /// Initializes a new instance of the Surface3DChartExtensionList class. - /// </summary> - public Surface3DChartExtensionList() : base() + + public EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>? Background2 { + get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>>(); + set => SetAttribute(value); } /// <summary> - /// Initializes a new instance of the Surface3DChartExtensionList class with the specified child elements. + /// <para>Text 2</para> + /// <para>Represents the following attribute in the schema: tx2</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public Surface3DChartExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "tx2")] +#pragma warning restore CS0618 // Type or member is obsolete + + public EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>? Text2 { + get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>>(); + set => SetAttribute(value); } /// <summary> - /// Initializes a new instance of the Surface3DChartExtensionList class with the specified child elements. + /// <para>Accent 1</para> + /// <para>Represents the following attribute in the schema: accent1</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public Surface3DChartExtensionList(params OpenXmlElement[] childElements) : base(childElements) + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "accent1")] +#pragma warning restore CS0618 // Type or member is obsolete + + public EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>? Accent1 { + get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>>(); + set => SetAttribute(value); } /// <summary> - /// Initializes a new instance of the Surface3DChartExtensionList class from outer XML. + /// <para>Accent 2</para> + /// <para>Represents the following attribute in the schema: accent2</para> /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public Surface3DChartExtensionList(string outerXml) : base(outerXml) - { - } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "accent2")] +#pragma warning restore CS0618 // Type or member is obsolete + + public EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>? Accent2 { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "extLst"); - builder.AddChild<Surface3DChartExtension>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Surface3DChartExtension), 0, 0) - }; + get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>>(); + set => SetAttribute(value); } - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<Surface3DChartExtensionList>(deep); - } + /// <summary> + /// <para>Accent 3</para> + /// <para>Represents the following attribute in the schema: accent3</para> + /// </summary> - /// <summary> - /// <para>Defines the LabelAlignment Class.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:lblAlgn.</para> - /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "lblAlgn")] + + [SchemaAttr(0, "accent3")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class LabelAlignment : OpenXmlLeafElement - { - /// <summary> - /// Initializes a new instance of the LabelAlignment class. - /// </summary> - public LabelAlignment() : base() + + public EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>? Accent3 { + get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>>(); + set => SetAttribute(value); } /// <summary> - /// <para>Label Alignment Value</para> - /// <para>Represents the following attribute in the schema: val</para> + /// <para>Accent 4</para> + /// <para>Represents the following attribute in the schema: accent4</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(0, "val")] + [SchemaAttr(0, "accent4")] #pragma warning restore CS0618 // Type or member is obsolete - public EnumValue<DocumentFormat.OpenXml.Drawing.Charts.LabelAlignmentValues>? Val + public EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>? Accent4 { - get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.Charts.LabelAlignmentValues>>(); + get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>>(); set => SetAttribute(value); } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "lblAlgn"); - builder.AddElement<LabelAlignment>() -.AddAttribute(0, "val", a => a.Val, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -}); - } - - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<LabelAlignment>(deep); - } + /// <summary> + /// <para>Accent 5</para> + /// <para>Represents the following attribute in the schema: accent5</para> + /// </summary> - /// <summary> - /// <para>Defines the LabelOffset Class.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:lblOffset.</para> - /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "lblOffset")] + + [SchemaAttr(0, "accent5")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class LabelOffset : OpenXmlLeafElement - { - /// <summary> - /// Initializes a new instance of the LabelOffset class. - /// </summary> - public LabelOffset() : base() + + public EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>? Accent5 { + get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>>(); + set => SetAttribute(value); } /// <summary> - /// <para>Label Offset Value</para> - /// <para>Represents the following attribute in the schema: val</para> + /// <para>Accent 6</para> + /// <para>Represents the following attribute in the schema: accent6</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(0, "val")] + [SchemaAttr(0, "accent6")] #pragma warning restore CS0618 // Type or member is obsolete - public UInt16Value? Val + public EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>? Accent6 { - get => GetAttribute<UInt16Value>(); + get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>>(); set => SetAttribute(value); } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "lblOffset"); - builder.AddElement<LabelOffset>() -.AddAttribute(0, "val", a => a.Val, aBuilder => -{ -aBuilder.AddValidator(new NumberValidator() { MinInclusive = (0L), MaxInclusive = (1000L) }); -}); - } - - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<LabelOffset>(deep); - } + /// <summary> + /// <para>Hyperlink</para> + /// <para>Represents the following attribute in the schema: hlink</para> + /// </summary> - /// <summary> - /// <para>Defines the TickLabelSkip Class.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:tickLblSkip.</para> - /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "tickLblSkip")] + + [SchemaAttr(0, "hlink")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class TickLabelSkip : SkipType - { - /// <summary> - /// Initializes a new instance of the TickLabelSkip class. - /// </summary> - public TickLabelSkip() : base() - { - } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + public EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>? Hyperlink { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "tickLblSkip"); + get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>>(); + set => SetAttribute(value); } - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<TickLabelSkip>(deep); - } + /// <summary> + /// <para>Followed Hyperlink</para> + /// <para>Represents the following attribute in the schema: folHlink</para> + /// </summary> - /// <summary> - /// <para>Defines the TickMarkSkip Class.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:tickMarkSkip.</para> - /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "tickMarkSkip")] + + [SchemaAttr(0, "folHlink")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class TickMarkSkip : SkipType - { - /// <summary> - /// Initializes a new instance of the TickMarkSkip class. - /// </summary> - public TickMarkSkip() : base() + + public EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>? FollowedHyperlink { + get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>>(); + set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "tickMarkSkip"); - } - - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<TickMarkSkip>(deep); - } - - /// <summary> - /// <para>Defines the SkipType Class.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is :.</para> - /// </summary> - public abstract partial class SkipType : OpenXmlLeafElement - { - /// <summary> - /// Initializes a new instance of the SkipType class. - /// </summary> - protected SkipType() : base() - { + builder.SetSchema(11, "clrMapOvr"); + builder.AddChild<DocumentFormat.OpenXml.Drawing.ExtensionList>(); + builder.AddElement<ColorMapOverride>() +.AddAttribute(0, "bg1", a => a.Background1, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}) +.AddAttribute(0, "tx1", a => a.Text1, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}) +.AddAttribute(0, "bg2", a => a.Background2, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}) +.AddAttribute(0, "tx2", a => a.Text2, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}) +.AddAttribute(0, "accent1", a => a.Accent1, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}) +.AddAttribute(0, "accent2", a => a.Accent2, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}) +.AddAttribute(0, "accent3", a => a.Accent3, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}) +.AddAttribute(0, "accent4", a => a.Accent4, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}) +.AddAttribute(0, "accent5", a => a.Accent5, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}) +.AddAttribute(0, "accent6", a => a.Accent6, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}) +.AddAttribute(0, "hlink", a => a.Hyperlink, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}) +.AddAttribute(0, "folHlink", a => a.FollowedHyperlink, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.ExtensionList), 0, 1) + }; } /// <summary> - /// <para>Tick Skip Value</para> - /// <para>Represents the following attribute in the schema: val</para> + /// <para>ExtensionList.</para> + /// <para>Represents the following element tag in the schema: a:extLst.</para> /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "val")] -#pragma warning restore CS0618 // Type or member is obsolete - - public Int32Value? Val + /// <remark> + /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main + /// </remark> + public DocumentFormat.OpenXml.Drawing.ExtensionList? ExtensionList { - get => GetAttribute<Int32Value>(); - set => SetAttribute(value); + get => GetElement<DocumentFormat.OpenXml.Drawing.ExtensionList>(); + set => SetElement(value); } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.AddElement<SkipType>() - .AddAttribute(0, "val", a => a.Val, aBuilder => - { - aBuilder.AddValidator(RequiredValidator.Instance); - aBuilder.AddValidator(new NumberValidator() { MinInclusive = (1L) }); - }); - } + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<ColorMapOverride>(deep); } /// <summary> - /// <para>Defines the CatAxExtensionList Class.</para> + /// <para>Defines the PivotSource Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:pivotSource.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>CatAxExtension <c:ext></description></item> + /// <item><description>PivotTableName <c:name></description></item> + /// <item><description>FormatId <c:fmtId></description></item> + /// <item><description>ExtensionList <c:extLst></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "extLst")] + [SchemaAttr(11, "pivotSource")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class CatAxExtensionList : OpenXmlCompositeElement + public partial class PivotSource : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the CatAxExtensionList class. + /// Initializes a new instance of the PivotSource class. /// </summary> - public CatAxExtensionList() : base() + public PivotSource() : base() { } /// <summary> - /// Initializes a new instance of the CatAxExtensionList class with the specified child elements. + /// Initializes a new instance of the PivotSource class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public CatAxExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public PivotSource(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the CatAxExtensionList class with the specified child elements. + /// Initializes a new instance of the PivotSource class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public CatAxExtensionList(params OpenXmlElement[] childElements) : base(childElements) + public PivotSource(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the CatAxExtensionList class from outer XML. + /// Initializes a new instance of the PivotSource class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public CatAxExtensionList(string outerXml) : base(outerXml) + public PivotSource(string outerXml) : base(outerXml) { } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "extLst"); - builder.AddChild<CatAxExtension>(); + builder.SetSchema(11, "pivotSource"); + builder.AddChild<PivotTableName>(); + builder.AddChild<FormatId>(); + builder.AddChild<ExtensionList>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CatAxExtension), 0, 0) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PivotTableName), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.FormatId), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) }; } - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<CatAxExtensionList>(deep); - } + /// <summary> + /// <para>Pivot Name.</para> + /// <para>Represents the following element tag in the schema: c:name.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public PivotTableName? PivotTableName + { + get => GetElement<PivotTableName>(); + set => SetElement(value); + } - /// <summary> - /// <para>Defines the BaseTimeUnit Class.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:baseTimeUnit.</para> - /// </summary> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "baseTimeUnit")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class BaseTimeUnit : TimeUnitType - { /// <summary> - /// Initializes a new instance of the BaseTimeUnit class. + /// <para>Format ID.</para> + /// <para>Represents the following element tag in the schema: c:fmtId.</para> /// </summary> - public BaseTimeUnit() : base() + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public FormatId? FormatId { + get => GetElement<FormatId>(); + set => SetElement(value); } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// <summary> + /// <para>Chart Extensibility.</para> + /// <para>Represents the following element tag in the schema: c:extLst.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public ExtensionList? ExtensionList { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "baseTimeUnit"); + get => GetElement<ExtensionList>(); + set => SetElement(value); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<BaseTimeUnit>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<PivotSource>(deep); } /// <summary> - /// <para>Defines the MajorTimeUnit Class.</para> + /// <para>Defines the Protection Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:majorTimeUnit.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:protection.</para> /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>ChartObject <c:chartObject></description></item> + /// <item><description>Data <c:data></description></item> + /// <item><description>Formatting <c:formatting></description></item> + /// <item><description>Selection <c:selection></description></item> + /// <item><description>UserInterface <c:userInterface></description></item> + /// </list> + /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "majorTimeUnit")] + [SchemaAttr(11, "protection")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class MajorTimeUnit : TimeUnitType + public partial class Protection : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the MajorTimeUnit class. + /// Initializes a new instance of the Protection class. /// </summary> - public MajorTimeUnit() : base() + public Protection() : base() { } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// <summary> + /// Initializes a new instance of the Protection class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public Protection(IEnumerable<OpenXmlElement> childElements) : base(childElements) { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "majorTimeUnit"); } - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<MajorTimeUnit>(deep); - } + /// <summary> + /// Initializes a new instance of the Protection class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public Protection(params OpenXmlElement[] childElements) : base(childElements) + { + } - /// <summary> - /// <para>Defines the MinorTimeUnit Class.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:minorTimeUnit.</para> - /// </summary> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "minorTimeUnit")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class MinorTimeUnit : TimeUnitType - { /// <summary> - /// Initializes a new instance of the MinorTimeUnit class. + /// Initializes a new instance of the Protection class from outer XML. /// </summary> - public MinorTimeUnit() : base() + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public Protection(string outerXml) : base(outerXml) { } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "minorTimeUnit"); + builder.SetSchema(11, "protection"); + builder.AddChild<ChartObject>(); + builder.AddChild<Data>(); + builder.AddChild<Formatting>(); + builder.AddChild<Selection>(); + builder.AddChild<UserInterface>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartObject), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Data), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Formatting), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Selection), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.UserInterface), 0, 1) + }; } - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<MinorTimeUnit>(deep); - } - - /// <summary> - /// <para>Defines the TimeUnitType Class.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is :.</para> - /// </summary> - public abstract partial class TimeUnitType : OpenXmlLeafElement - { /// <summary> - /// Initializes a new instance of the TimeUnitType class. + /// <para>Chart Object.</para> + /// <para>Represents the following element tag in the schema: c:chartObject.</para> /// </summary> - protected TimeUnitType() : base() + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public ChartObject? ChartObject { + get => GetElement<ChartObject>(); + set => SetElement(value); } /// <summary> - /// <para>Time Unit Value</para> - /// <para>Represents the following attribute in the schema: val</para> + /// <para>Data Cannot Be Changed.</para> + /// <para>Represents the following element tag in the schema: c:data.</para> /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "val")] -#pragma warning restore CS0618 // Type or member is obsolete - - public EnumValue<DocumentFormat.OpenXml.Drawing.Charts.TimeUnitValues>? Val + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public Data? Data { - get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.Charts.TimeUnitValues>>(); - set => SetAttribute(value); + get => GetElement<Data>(); + set => SetElement(value); } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// <summary> + /// <para>Formatting.</para> + /// <para>Represents the following element tag in the schema: c:formatting.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public Formatting? Formatting { - base.ConfigureMetadata(builder); - builder.AddElement<TimeUnitType>() - .AddAttribute(0, "val", a => a.Val); + get => GetElement<Formatting>(); + set => SetElement(value); } - } - - /// <summary> - /// <para>Defines the MajorUnit Class.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:majorUnit.</para> - /// </summary> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "majorUnit")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class MajorUnit : AxisUnitType - { + /// <summary> - /// Initializes a new instance of the MajorUnit class. + /// <para>Selection.</para> + /// <para>Represents the following element tag in the schema: c:selection.</para> /// </summary> - public MajorUnit() : base() + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public Selection? Selection { + get => GetElement<Selection>(); + set => SetElement(value); } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// <summary> + /// <para>User Interface.</para> + /// <para>Represents the following element tag in the schema: c:userInterface.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public UserInterface? UserInterface { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "majorUnit"); + get => GetElement<UserInterface>(); + set => SetElement(value); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<MajorUnit>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<Protection>(deep); } /// <summary> - /// <para>Defines the MinorUnit Class.</para> + /// <para>Defines the Chart Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:minorUnit.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:chart.</para> /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>Title <c:title></description></item> + /// <item><description>AutoTitleDeleted <c:autoTitleDeleted></description></item> + /// <item><description>PivotFormats <c:pivotFmts></description></item> + /// <item><description>View3D <c:view3D></description></item> + /// <item><description>Floor <c:floor></description></item> + /// <item><description>SideWall <c:sideWall></description></item> + /// <item><description>BackWall <c:backWall></description></item> + /// <item><description>PlotArea <c:plotArea></description></item> + /// <item><description>Legend <c:legend></description></item> + /// <item><description>PlotVisibleOnly <c:plotVisOnly></description></item> + /// <item><description>DisplayBlanksAs <c:dispBlanksAs></description></item> + /// <item><description>ShowDataLabelsOverMaximum <c:showDLblsOverMax></description></item> + /// <item><description>ChartExtensionList <c:extLst></description></item> + /// </list> + /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "minorUnit")] + [SchemaAttr(11, "chart")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class MinorUnit : AxisUnitType + public partial class Chart : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the MinorUnit class. + /// Initializes a new instance of the Chart class. /// </summary> - public MinorUnit() : base() + public Chart() : base() { } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// <summary> + /// Initializes a new instance of the Chart class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public Chart(IEnumerable<OpenXmlElement> childElements) : base(childElements) { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "minorUnit"); } - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<MinorUnit>(deep); - } - - /// <summary> - /// <para>Defines the AxisUnitType Class.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is :.</para> - /// </summary> - public abstract partial class AxisUnitType : OpenXmlLeafElement - { /// <summary> - /// Initializes a new instance of the AxisUnitType class. + /// Initializes a new instance of the Chart class with the specified child elements. /// </summary> - protected AxisUnitType() : base() + /// <param name="childElements">Specifies the child elements.</param> + public Chart(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// <para>Major Unit Value</para> - /// <para>Represents the following attribute in the schema: val</para> + /// Initializes a new instance of the Chart class from outer XML. /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "val")] -#pragma warning restore CS0618 // Type or member is obsolete - - public DoubleValue? Val + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public Chart(string outerXml) : base(outerXml) { - get => GetAttribute<DoubleValue>(); - set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.AddElement<AxisUnitType>() - .AddAttribute(0, "val", a => a.Val, aBuilder => - { - aBuilder.AddValidator(RequiredValidator.Instance); - aBuilder.AddValidator(new NumberValidator() { MinExclusive = (0L) }); - }); + builder.SetSchema(11, "chart"); + builder.AddChild<Title>(); + builder.AddChild<AutoTitleDeleted>(); + builder.AddChild<PivotFormats>(); + builder.AddChild<View3D>(); + builder.AddChild<Floor>(); + builder.AddChild<SideWall>(); + builder.AddChild<BackWall>(); + builder.AddChild<PlotArea>(); + builder.AddChild<Legend>(); + builder.AddChild<PlotVisibleOnly>(); + builder.AddChild<DisplayBlanksAs>(); + builder.AddChild<ShowDataLabelsOverMaximum>(); + builder.AddChild<ChartExtensionList>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Title), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AutoTitleDeleted), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PivotFormats), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.View3D), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Floor), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SideWall), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BackWall), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PlotArea), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Legend), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PlotVisibleOnly), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DisplayBlanksAs), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShowDataLabelsOverMaximum), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartExtensionList), 0, 1) + }; } - } - /// <summary> - /// <para>Defines the DateAxExtensionList Class.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> - /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>DateAxExtension <c:ext></description></item> - /// </list> - /// </remark> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "extLst")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class DateAxExtensionList : OpenXmlCompositeElement - { /// <summary> - /// Initializes a new instance of the DateAxExtensionList class. + /// <para>Title data and formatting.</para> + /// <para>Represents the following element tag in the schema: c:title.</para> /// </summary> - public DateAxExtensionList() : base() + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public Title? Title { + get => GetElement<Title>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the DateAxExtensionList class with the specified child elements. + /// <para>True if the chart automatic title has been deleted..</para> + /// <para>Represents the following element tag in the schema: c:autoTitleDeleted.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public DateAxExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public AutoTitleDeleted? AutoTitleDeleted { + get => GetElement<AutoTitleDeleted>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the DateAxExtensionList class with the specified child elements. + /// <para>pivot chart format persistence data.</para> + /// <para>Represents the following element tag in the schema: c:pivotFmts.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public DateAxExtensionList(params OpenXmlElement[] childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public PivotFormats? PivotFormats { + get => GetElement<PivotFormats>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the DateAxExtensionList class from outer XML. + /// <para>3D view settings.</para> + /// <para>Represents the following element tag in the schema: c:view3D.</para> /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public DateAxExtensionList(string outerXml) : base(outerXml) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public View3D? View3D { + get => GetElement<View3D>(); + set => SetElement(value); } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// <summary> + /// <para>3D floor formatting.</para> + /// <para>Represents the following element tag in the schema: c:floor.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public Floor? Floor { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "extLst"); - builder.AddChild<DateAxExtension>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DateAxExtension), 0, 0) - }; + get => GetElement<Floor>(); + set => SetElement(value); } - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<DateAxExtensionList>(deep); - } + /// <summary> + /// <para>3D side wall formatting.</para> + /// <para>Represents the following element tag in the schema: c:sideWall.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public SideWall? SideWall + { + get => GetElement<SideWall>(); + set => SetElement(value); + } - /// <summary> - /// <para>Defines the SerAxExtensionList Class.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> - /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>SerAxExtension <c:ext></description></item> - /// </list> - /// </remark> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "extLst")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class SerAxExtensionList : OpenXmlCompositeElement - { /// <summary> - /// Initializes a new instance of the SerAxExtensionList class. + /// <para>3D back wall formatting.</para> + /// <para>Represents the following element tag in the schema: c:backWall.</para> /// </summary> - public SerAxExtensionList() : base() + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public BackWall? BackWall { + get => GetElement<BackWall>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the SerAxExtensionList class with the specified child elements. + /// <para>Plot data and formatting.</para> + /// <para>Represents the following element tag in the schema: c:plotArea.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public SerAxExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public PlotArea? PlotArea { + get => GetElement<PlotArea>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the SerAxExtensionList class with the specified child elements. + /// <para>Legend data and formatting.</para> + /// <para>Represents the following element tag in the schema: c:legend.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public SerAxExtensionList(params OpenXmlElement[] childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public Legend? Legend { + get => GetElement<Legend>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the SerAxExtensionList class from outer XML. + /// <para>True if only visible cells are plotted..</para> + /// <para>Represents the following element tag in the schema: c:plotVisOnly.</para> /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public SerAxExtensionList(string outerXml) : base(outerXml) - { - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public PlotVisibleOnly? PlotVisibleOnly { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "extLst"); - builder.AddChild<SerAxExtension>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SerAxExtension), 0, 0) - }; + get => GetElement<PlotVisibleOnly>(); + set => SetElement(value); } - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<SerAxExtensionList>(deep); - } - - /// <summary> - /// <para>Defines the CrossBetween Class.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:crossBetween.</para> - /// </summary> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "crossBetween")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class CrossBetween : OpenXmlLeafElement - { /// <summary> - /// Initializes a new instance of the CrossBetween class. + /// <para>The way that blank cells are plotted on a chart..</para> + /// <para>Represents the following element tag in the schema: c:dispBlanksAs.</para> /// </summary> - public CrossBetween() : base() + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public DisplayBlanksAs? DisplayBlanksAs { + get => GetElement<DisplayBlanksAs>(); + set => SetElement(value); } /// <summary> - /// <para>Cross Between Value</para> - /// <para>Represents the following attribute in the schema: val</para> + /// <para>True if we should render datalabels over the maximum scale.</para> + /// <para>Represents the following element tag in the schema: c:showDLblsOverMax.</para> /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "val")] -#pragma warning restore CS0618 // Type or member is obsolete - - public EnumValue<DocumentFormat.OpenXml.Drawing.Charts.CrossBetweenValues>? Val + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public ShowDataLabelsOverMaximum? ShowDataLabelsOverMaximum { - get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.Charts.CrossBetweenValues>>(); - set => SetAttribute(value); + get => GetElement<ShowDataLabelsOverMaximum>(); + set => SetElement(value); } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// <summary> + /// <para>Extensibility container.</para> + /// <para>Represents the following element tag in the schema: c:extLst.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public ChartExtensionList? ChartExtensionList { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "crossBetween"); - builder.AddElement<CrossBetween>() -.AddAttribute(0, "val", a => a.Val, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -}); + get => GetElement<ChartExtensionList>(); + set => SetElement(value); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<CrossBetween>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<Chart>(deep); } /// <summary> - /// <para>Defines the DisplayUnits Class.</para> + /// <para>Defines the ExternalData Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:dispUnits.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:externalData.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>CustomDisplayUnit <c:custUnit></description></item> - /// <item><description>BuiltInUnit <c:builtInUnit></description></item> - /// <item><description>DisplayUnitsLabel <c:dispUnitsLbl></description></item> - /// <item><description>ExtensionList <c:extLst></description></item> + /// <item><description>AutoUpdate <c:autoUpdate></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "dispUnits")] + [SchemaAttr(11, "externalData")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class DisplayUnits : OpenXmlCompositeElement + public partial class ExternalData : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the DisplayUnits class. + /// Initializes a new instance of the ExternalData class. /// </summary> - public DisplayUnits() : base() + public ExternalData() : base() { } /// <summary> - /// Initializes a new instance of the DisplayUnits class with the specified child elements. + /// Initializes a new instance of the ExternalData class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public DisplayUnits(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public ExternalData(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the DisplayUnits class with the specified child elements. + /// Initializes a new instance of the ExternalData class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public DisplayUnits(params OpenXmlElement[] childElements) : base(childElements) + public ExternalData(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the DisplayUnits class from outer XML. + /// Initializes a new instance of the ExternalData class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public DisplayUnits(string outerXml) : base(outerXml) + public ExternalData(string outerXml) : base(outerXml) + { + } + + /// <summary> + /// <para>Relationship Reference</para> + /// <para>Represents the following attribute in the schema: r:id</para> + /// </summary> + /// <remark> + /// xmlns:r=http://schemas.openxmlformats.org/officeDocument/2006/relationships + /// </remark> + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(19, "id")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Id { + get => GetAttribute<StringValue>(); + set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "dispUnits"); - builder.AddChild<CustomDisplayUnit>(); - builder.AddChild<BuiltInUnit>(); - builder.AddChild<DisplayUnitsLabel>(); - builder.AddChild<ExtensionList>(); + builder.SetSchema(11, "externalData"); + builder.AddChild<AutoUpdate>(); + builder.AddElement<ExternalData>() +.AddAttribute(19, "id", a => a.Id, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +}); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new CompositeParticle.Builder(ParticleType.Choice, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CustomDisplayUnit), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BuiltInUnit), 1, 1) - }, - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DisplayUnitsLabel), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AutoUpdate), 0, 1) }; + builder.AddConstraint(new RelationshipExistConstraint(0 /*r:id*/)); + } + + /// <summary> + /// <para>Update Automatically.</para> + /// <para>Represents the following element tag in the schema: c:autoUpdate.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public AutoUpdate? AutoUpdate + { + get => GetElement<AutoUpdate>(); + set => SetElement(value); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<DisplayUnits>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<ExternalData>(deep); } /// <summary> - /// <para>Defines the ValAxExtensionList Class.</para> + /// <para>Defines the PrintSettings Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:printSettings.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>ValAxExtension <c:ext></description></item> + /// <item><description>HeaderFooter <c:headerFooter></description></item> + /// <item><description>PageMargins <c:pageMargins></description></item> + /// <item><description>PageSetup <c:pageSetup></description></item> + /// <item><description>LegacyDrawingHeaderFooter <c:legacyDrawingHF></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "extLst")] + [SchemaAttr(11, "printSettings")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class ValAxExtensionList : OpenXmlCompositeElement + public partial class PrintSettings : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the ValAxExtensionList class. + /// Initializes a new instance of the PrintSettings class. /// </summary> - public ValAxExtensionList() : base() + public PrintSettings() : base() { } /// <summary> - /// Initializes a new instance of the ValAxExtensionList class with the specified child elements. + /// Initializes a new instance of the PrintSettings class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public ValAxExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public PrintSettings(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the ValAxExtensionList class with the specified child elements. + /// Initializes a new instance of the PrintSettings class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public ValAxExtensionList(params OpenXmlElement[] childElements) : base(childElements) + public PrintSettings(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the ValAxExtensionList class from outer XML. + /// Initializes a new instance of the PrintSettings class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public ValAxExtensionList(string outerXml) : base(outerXml) + public PrintSettings(string outerXml) : base(outerXml) { } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "extLst"); - builder.AddChild<ValAxExtension>(); + builder.SetSchema(11, "printSettings"); + builder.AddChild<HeaderFooter>(); + builder.AddChild<PageMargins>(); + builder.AddChild<PageSetup>(); + builder.AddChild<LegacyDrawingHeaderFooter>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ValAxExtension), 0, 0) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.HeaderFooter), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PageMargins), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PageSetup), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.LegacyDrawingHeaderFooter), 0, 1) }; } - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<ValAxExtensionList>(deep); - } - - /// <summary> - /// <para>Defines the EditingLanguage Class.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:lang.</para> - /// </summary> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "lang")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class EditingLanguage : OpenXmlLeafElement - { - /// <summary> - /// Initializes a new instance of the EditingLanguage class. - /// </summary> - public EditingLanguage() : base() - { - } - /// <summary> - /// <para>Language Code</para> - /// <para>Represents the following attribute in the schema: val</para> + /// <para>Header and Footer.</para> + /// <para>Represents the following element tag in the schema: c:headerFooter.</para> /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "val")] -#pragma warning restore CS0618 // Type or member is obsolete - - public StringValue? Val - { - get => GetAttribute<StringValue>(); - set => SetAttribute(value); - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public HeaderFooter? HeaderFooter { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "lang"); - builder.AddElement<EditingLanguage>() -.AddAttribute(0, "val", a => a.Val, aBuilder => -{ - aBuilder.AddValidator(RequiredValidator.Instance); -}); + get => GetElement<HeaderFooter>(); + set => SetElement(value); } - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<EditingLanguage>(deep); - } - - /// <summary> - /// <para>Defines the Style Class.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:style.</para> - /// </summary> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "style")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class Style : OpenXmlLeafElement - { /// <summary> - /// Initializes a new instance of the Style class. + /// <para>Page Margins.</para> + /// <para>Represents the following element tag in the schema: c:pageMargins.</para> /// </summary> - public Style() : base() + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public PageMargins? PageMargins { + get => GetElement<PageMargins>(); + set => SetElement(value); } /// <summary> - /// <para>Style Type</para> - /// <para>Represents the following attribute in the schema: val</para> + /// <para>Page Setup.</para> + /// <para>Represents the following element tag in the schema: c:pageSetup.</para> /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "val")] -#pragma warning restore CS0618 // Type or member is obsolete - - public ByteValue? Val + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public PageSetup? PageSetup { - get => GetAttribute<ByteValue>(); - set => SetAttribute(value); + get => GetElement<PageSetup>(); + set => SetElement(value); } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// <summary> + /// <para>Legacy Drawing for Headers and Footers.</para> + /// <para>Represents the following element tag in the schema: c:legacyDrawingHF.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public LegacyDrawingHeaderFooter? LegacyDrawingHeaderFooter { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "style"); - builder.AddElement<Style>() -.AddAttribute(0, "val", a => a.Val, aBuilder => -{ - aBuilder.AddValidator(new NumberValidator() { MinInclusive = (1L), MaxInclusive = (48L) }); -}); + get => GetElement<LegacyDrawingHeaderFooter>(); + set => SetElement(value); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<Style>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<PrintSettings>(deep); } /// <summary> - /// <para>Defines the ColorMapOverride Class.</para> + /// <para>Defines the ChartSpaceExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:clrMapOvr.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Drawing.ExtensionList <a:extLst></description></item> + /// <item><description>ChartSpaceExtension <c:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "clrMapOvr")] + [SchemaAttr(11, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class ColorMapOverride : OpenXmlCompositeElement + public partial class ChartSpaceExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the ColorMapOverride class. + /// Initializes a new instance of the ChartSpaceExtensionList class. /// </summary> - public ColorMapOverride() : base() + public ChartSpaceExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the ColorMapOverride class with the specified child elements. + /// Initializes a new instance of the ChartSpaceExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public ColorMapOverride(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public ChartSpaceExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the ColorMapOverride class with the specified child elements. + /// Initializes a new instance of the ChartSpaceExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public ColorMapOverride(params OpenXmlElement[] childElements) : base(childElements) + public ChartSpaceExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the ColorMapOverride class from outer XML. + /// Initializes a new instance of the ChartSpaceExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public ColorMapOverride(string outerXml) : base(outerXml) + public ChartSpaceExtensionList(string outerXml) : base(outerXml) { } - /// <summary> - /// <para>Background 1</para> - /// <para>Represents the following attribute in the schema: bg1</para> - /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "bg1")] -#pragma warning restore CS0618 // Type or member is obsolete - - public EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>? Background1 + internal override void ConfigureMetadata(ElementMetadata.Builder builder) { - get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>>(); - set => SetAttribute(value); + base.ConfigureMetadata(builder); + builder.SetSchema(11, "extLst"); + builder.AddChild<ChartSpaceExtension>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartSpaceExtension), 0, 0) + }; } - /// <summary> - /// <para>Text 1</para> - /// <para>Represents the following attribute in the schema: tx1</para> - /// </summary> + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<ChartSpaceExtensionList>(deep); + } + /// <summary> + /// <para>Defines the ChartSpaceExtension Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>DocumentFormat.OpenXml.Office2010.Drawing.Charts.PivotOptions <c14:pivotOptions></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2010.Drawing.Charts.SketchOptions <c14:sketchOptions></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.PivotSource <c15:pivotSource></description></item> + /// </list> + /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "tx1")] + [SchemaAttr(11, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - - public EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>? Text1 + public partial class ChartSpaceExtension : OpenXmlCompositeElement + { + /// <summary> + /// Initializes a new instance of the ChartSpaceExtension class. + /// </summary> + public ChartSpaceExtension() : base() { - get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>>(); - set => SetAttribute(value); } /// <summary> - /// <para>Background 2</para> - /// <para>Represents the following attribute in the schema: bg2</para> + /// Initializes a new instance of the ChartSpaceExtension class with the specified child elements. /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "bg2")] -#pragma warning restore CS0618 // Type or member is obsolete - - public EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>? Background2 + /// <param name="childElements">Specifies the child elements.</param> + public ChartSpaceExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { - get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>>(); - set => SetAttribute(value); } /// <summary> - /// <para>Text 2</para> - /// <para>Represents the following attribute in the schema: tx2</para> + /// Initializes a new instance of the ChartSpaceExtension class with the specified child elements. /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "tx2")] -#pragma warning restore CS0618 // Type or member is obsolete - - public EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>? Text2 + /// <param name="childElements">Specifies the child elements.</param> + public ChartSpaceExtension(params OpenXmlElement[] childElements) : base(childElements) { - get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>>(); - set => SetAttribute(value); } /// <summary> - /// <para>Accent 1</para> - /// <para>Represents the following attribute in the schema: accent1</para> + /// Initializes a new instance of the ChartSpaceExtension class from outer XML. /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "accent1")] -#pragma warning restore CS0618 // Type or member is obsolete - - public EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>? Accent1 + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public ChartSpaceExtension(string outerXml) : base(outerXml) { - get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>>(); - set => SetAttribute(value); } /// <summary> - /// <para>Accent 2</para> - /// <para>Represents the following attribute in the schema: accent2</para> + /// <para>URI</para> + /// <para>Represents the following attribute in the schema: uri</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(0, "accent2")] + [SchemaAttr(0, "uri")] #pragma warning restore CS0618 // Type or member is obsolete - public EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>? Accent2 + public StringValue? Uri { - get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>>(); + get => GetAttribute<StringValue>(); set => SetAttribute(value); } - /// <summary> - /// <para>Accent 3</para> - /// <para>Represents the following attribute in the schema: accent3</para> - /// </summary> + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(11, "ext"); + builder.AddChild<DocumentFormat.OpenXml.Office2010.Drawing.Charts.PivotOptions>(); + builder.AddChild<DocumentFormat.OpenXml.Office2010.Drawing.Charts.SketchOptions>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.PivotSource>(); + builder.AddElement<ChartSpaceExtension>() +.AddAttribute(0, "uri", a => a.Uri, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.Drawing.Charts.PivotOptions), 1, 1, version: FileFormatVersions.Office2010), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.Drawing.Charts.SketchOptions), 1, 1, version: FileFormatVersions.Office2010), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.PivotSource), 1, 1, version: FileFormatVersions.Office2013), + new AnyParticle(0, 1) + }; + } -#pragma warning disable CS0618 // Type or member is obsolete + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<ChartSpaceExtension>(deep); + } - [SchemaAttr(0, "accent3")] + /// <summary> + /// <para>Defines the DataDisplayOptions16 Class.</para> + /// <para>This class is available in Office 2019 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>DocumentFormat.OpenXml.Office2019.Drawing.Chart.BooleanFalse <c16r3:dispNaAsBlank></description></item> + /// </list> + /// </remark> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - - public EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>? Accent3 + public partial class DataDisplayOptions16 : OpenXmlCompositeElement + { + /// <summary> + /// Initializes a new instance of the DataDisplayOptions16 class. + /// </summary> + public DataDisplayOptions16() : base() { - get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>>(); - set => SetAttribute(value); } /// <summary> - /// <para>Accent 4</para> - /// <para>Represents the following attribute in the schema: accent4</para> + /// Initializes a new instance of the DataDisplayOptions16 class with the specified child elements. /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "accent4")] -#pragma warning restore CS0618 // Type or member is obsolete - - public EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>? Accent4 + /// <param name="childElements">Specifies the child elements.</param> + public DataDisplayOptions16(IEnumerable<OpenXmlElement> childElements) : base(childElements) { - get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>>(); - set => SetAttribute(value); } /// <summary> - /// <para>Accent 5</para> - /// <para>Represents the following attribute in the schema: accent5</para> + /// Initializes a new instance of the DataDisplayOptions16 class with the specified child elements. /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "accent5")] -#pragma warning restore CS0618 // Type or member is obsolete - - public EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>? Accent5 + /// <param name="childElements">Specifies the child elements.</param> + public DataDisplayOptions16(params OpenXmlElement[] childElements) : base(childElements) { - get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>>(); - set => SetAttribute(value); } /// <summary> - /// <para>Accent 6</para> - /// <para>Represents the following attribute in the schema: accent6</para> + /// Initializes a new instance of the DataDisplayOptions16 class from outer XML. /// </summary> + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public DataDisplayOptions16(string outerXml) : base(outerXml) + { + } -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "accent6")] -#pragma warning restore CS0618 // Type or member is obsolete - - public EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>? Accent6 + internal override void ConfigureMetadata(ElementMetadata.Builder builder) { - get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>>(); - set => SetAttribute(value); + base.ConfigureMetadata(builder); + builder.SetSchema(11, "ext"); + builder.Availability = FileFormatVersions.Office2019; + builder.AddChild<DocumentFormat.OpenXml.Office2019.Drawing.Chart.BooleanFalse>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Chart.BooleanFalse), 0, 1, version: FileFormatVersions.Office2019) + }; } /// <summary> - /// <para>Hyperlink</para> - /// <para>Represents the following attribute in the schema: hlink</para> + /// <para>BooleanFalse.</para> + /// <para>Represents the following element tag in the schema: c16r3:dispNaAsBlank.</para> /// </summary> + /// <remark> + /// xmlns:c16r3 = http://schemas.microsoft.com/office/drawing/2017/03/chart + /// </remark> + public DocumentFormat.OpenXml.Office2019.Drawing.Chart.BooleanFalse? BooleanFalse + { + get => GetElement<DocumentFormat.OpenXml.Office2019.Drawing.Chart.BooleanFalse>(); + set => SetElement(value); + } -#pragma warning disable CS0618 // Type or member is obsolete + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<DataDisplayOptions16>(deep); + } - [SchemaAttr(0, "hlink")] + /// <summary> + /// <para>pivot chart format persistence data.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:pivotFmts.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>PivotFormat <c:pivotFmt></description></item> + /// </list> + /// </remark> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "pivotFmts")] #pragma warning restore CS0618 // Type or member is obsolete - - public EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>? Hyperlink + public partial class PivotFormats : OpenXmlCompositeElement + { + /// <summary> + /// Initializes a new instance of the PivotFormats class. + /// </summary> + public PivotFormats() : base() { - get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>>(); - set => SetAttribute(value); } /// <summary> - /// <para>Followed Hyperlink</para> - /// <para>Represents the following attribute in the schema: folHlink</para> + /// Initializes a new instance of the PivotFormats class with the specified child elements. /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public PivotFormats(IEnumerable<OpenXmlElement> childElements) : base(childElements) + { + } -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "folHlink")] -#pragma warning restore CS0618 // Type or member is obsolete + /// <summary> + /// Initializes a new instance of the PivotFormats class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public PivotFormats(params OpenXmlElement[] childElements) : base(childElements) + { + } - public EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>? FollowedHyperlink + /// <summary> + /// Initializes a new instance of the PivotFormats class from outer XML. + /// </summary> + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public PivotFormats(string outerXml) : base(outerXml) { - get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.ColorSchemeIndexValues>>(); - set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "clrMapOvr"); - builder.AddChild<DocumentFormat.OpenXml.Drawing.ExtensionList>(); - builder.AddElement<ColorMapOverride>() -.AddAttribute(0, "bg1", a => a.Background1, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}) -.AddAttribute(0, "tx1", a => a.Text1, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}) -.AddAttribute(0, "bg2", a => a.Background2, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}) -.AddAttribute(0, "tx2", a => a.Text2, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}) -.AddAttribute(0, "accent1", a => a.Accent1, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}) -.AddAttribute(0, "accent2", a => a.Accent2, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}) -.AddAttribute(0, "accent3", a => a.Accent3, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}) -.AddAttribute(0, "accent4", a => a.Accent4, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}) -.AddAttribute(0, "accent5", a => a.Accent5, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}) -.AddAttribute(0, "accent6", a => a.Accent6, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}) -.AddAttribute(0, "hlink", a => a.Hyperlink, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}) -.AddAttribute(0, "folHlink", a => a.FollowedHyperlink, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}); + builder.SetSchema(11, "pivotFmts"); + builder.AddChild<PivotFormat>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.ExtensionList), 0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PivotFormat), 0, 0) }; } - /// <summary> - /// <para>ExtensionList.</para> - /// <para>Represents the following element tag in the schema: a:extLst.</para> - /// </summary> - /// <remark> - /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main - /// </remark> - public DocumentFormat.OpenXml.Drawing.ExtensionList? ExtensionList - { - get => GetElement<DocumentFormat.OpenXml.Drawing.ExtensionList>(); - set => SetElement(value); - } - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<ColorMapOverride>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<PivotFormats>(deep); } /// <summary> - /// <para>Defines the PivotSource Class.</para> + /// <para>3D view settings.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:pivotSource.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:view3D.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>PivotTableName <c:name></description></item> - /// <item><description>FormatId <c:fmtId></description></item> + /// <item><description>RotateX <c:rotX></description></item> + /// <item><description>HeightPercent <c:hPercent></description></item> + /// <item><description>RotateY <c:rotY></description></item> + /// <item><description>DepthPercent <c:depthPercent></description></item> + /// <item><description>RightAngleAxes <c:rAngAx></description></item> + /// <item><description>Perspective <c:perspective></description></item> /// <item><description>ExtensionList <c:extLst></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "pivotSource")] + [SchemaAttr(11, "view3D")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class PivotSource : OpenXmlCompositeElement + public partial class View3D : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the PivotSource class. + /// Initializes a new instance of the View3D class. /// </summary> - public PivotSource() : base() + public View3D() : base() { } /// <summary> - /// Initializes a new instance of the PivotSource class with the specified child elements. + /// Initializes a new instance of the View3D class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public PivotSource(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public View3D(IEnumerable<OpenXmlElement> childElements) : base(childElements) + { + } + + /// <summary> + /// Initializes a new instance of the View3D class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public View3D(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// <summary> + /// Initializes a new instance of the View3D class from outer XML. + /// </summary> + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public View3D(string outerXml) : base(outerXml) + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(11, "view3D"); + builder.AddChild<RotateX>(); + builder.AddChild<HeightPercent>(); + builder.AddChild<RotateY>(); + builder.AddChild<DepthPercent>(); + builder.AddChild<RightAngleAxes>(); + builder.AddChild<Perspective>(); + builder.AddChild<ExtensionList>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.RotateX), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.HeightPercent), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.RotateY), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DepthPercent), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.RightAngleAxes), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Perspective), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) + }; + } + + /// <summary> + /// <para>X Rotation.</para> + /// <para>Represents the following element tag in the schema: c:rotX.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public RotateX? RotateX + { + get => GetElement<RotateX>(); + set => SetElement(value); + } + + /// <summary> + /// <para>Height Percent.</para> + /// <para>Represents the following element tag in the schema: c:hPercent.</para> + /// </summary> + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public HeightPercent? HeightPercent { + get => GetElement<HeightPercent>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the PivotSource class with the specified child elements. + /// <para>Y Rotation.</para> + /// <para>Represents the following element tag in the schema: c:rotY.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public PivotSource(params OpenXmlElement[] childElements) : base(childElements) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public RotateY? RotateY { + get => GetElement<RotateY>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the PivotSource class from outer XML. + /// <para>Depth Percent.</para> + /// <para>Represents the following element tag in the schema: c:depthPercent.</para> /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public PivotSource(string outerXml) : base(outerXml) - { - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// <remark> + /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart + /// </remark> + public DepthPercent? DepthPercent { - base.ConfigureMetadata(builder); - builder.SetSchema(11, "pivotSource"); - builder.AddChild<PivotTableName>(); - builder.AddChild<FormatId>(); - builder.AddChild<ExtensionList>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PivotTableName), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.FormatId), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) - }; + get => GetElement<DepthPercent>(); + set => SetElement(value); } /// <summary> - /// <para>Pivot Name.</para> - /// <para>Represents the following element tag in the schema: c:name.</para> + /// <para>Right Angle Axes.</para> + /// <para>Represents the following element tag in the schema: c:rAngAx.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public PivotTableName? PivotTableName + public RightAngleAxes? RightAngleAxes { - get => GetElement<PivotTableName>(); + get => GetElement<RightAngleAxes>(); set => SetElement(value); } /// <summary> - /// <para>Format ID.</para> - /// <para>Represents the following element tag in the schema: c:fmtId.</para> + /// <para>Perspective.</para> + /// <para>Represents the following element tag in the schema: c:perspective.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public FormatId? FormatId + public Perspective? Perspective { - get => GetElement<FormatId>(); + get => GetElement<Perspective>(); set => SetElement(value); } @@ -22641,395 +22902,302 @@ public ExtensionList? ExtensionList } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<PivotSource>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<View3D>(deep); } /// <summary> - /// <para>Defines the Protection Class.</para> + /// <para>3D floor formatting.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:protection.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:floor.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>ChartObject <c:chartObject></description></item> - /// <item><description>Data <c:data></description></item> - /// <item><description>Formatting <c:formatting></description></item> - /// <item><description>Selection <c:selection></description></item> - /// <item><description>UserInterface <c:userInterface></description></item> + /// <item><description>Thickness <c:thickness></description></item> + /// <item><description>ShapeProperties <c:spPr></description></item> + /// <item><description>PictureOptions <c:pictureOptions></description></item> + /// <item><description>ExtensionList <c:extLst></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "protection")] + [SchemaAttr(11, "floor")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class Protection : OpenXmlCompositeElement + public partial class Floor : SurfaceType { /// <summary> - /// Initializes a new instance of the Protection class. + /// Initializes a new instance of the Floor class. /// </summary> - public Protection() : base() + public Floor() : base() { } /// <summary> - /// Initializes a new instance of the Protection class with the specified child elements. + /// Initializes a new instance of the Floor class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public Protection(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public Floor(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the Protection class with the specified child elements. + /// Initializes a new instance of the Floor class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public Protection(params OpenXmlElement[] childElements) : base(childElements) + public Floor(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the Protection class from outer XML. + /// Initializes a new instance of the Floor class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public Protection(string outerXml) : base(outerXml) + public Floor(string outerXml) : base(outerXml) { } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "protection"); - builder.AddChild<ChartObject>(); - builder.AddChild<Data>(); - builder.AddChild<Formatting>(); - builder.AddChild<Selection>(); - builder.AddChild<UserInterface>(); + builder.SetSchema(11, "floor"); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartObject), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Data), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Formatting), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Selection), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.UserInterface), 0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Thickness), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShapeProperties), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PictureOptions), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) }; } - /// <summary> - /// <para>Chart Object.</para> - /// <para>Represents the following element tag in the schema: c:chartObject.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public ChartObject? ChartObject - { - get => GetElement<ChartObject>(); - set => SetElement(value); - } - - /// <summary> - /// <para>Data Cannot Be Changed.</para> - /// <para>Represents the following element tag in the schema: c:data.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Data? Data - { - get => GetElement<Data>(); - set => SetElement(value); - } - - /// <summary> - /// <para>Formatting.</para> - /// <para>Represents the following element tag in the schema: c:formatting.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Formatting? Formatting - { - get => GetElement<Formatting>(); - set => SetElement(value); - } - - /// <summary> - /// <para>Selection.</para> - /// <para>Represents the following element tag in the schema: c:selection.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Selection? Selection - { - get => GetElement<Selection>(); - set => SetElement(value); - } - - /// <summary> - /// <para>User Interface.</para> - /// <para>Represents the following element tag in the schema: c:userInterface.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public UserInterface? UserInterface - { - get => GetElement<UserInterface>(); - set => SetElement(value); - } - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<Protection>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<Floor>(deep); } /// <summary> - /// <para>Defines the Chart Class.</para> + /// <para>3D side wall formatting.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:chart.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:sideWall.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>Title <c:title></description></item> - /// <item><description>AutoTitleDeleted <c:autoTitleDeleted></description></item> - /// <item><description>PivotFormats <c:pivotFmts></description></item> - /// <item><description>View3D <c:view3D></description></item> - /// <item><description>Floor <c:floor></description></item> - /// <item><description>SideWall <c:sideWall></description></item> - /// <item><description>BackWall <c:backWall></description></item> - /// <item><description>PlotArea <c:plotArea></description></item> - /// <item><description>Legend <c:legend></description></item> - /// <item><description>PlotVisibleOnly <c:plotVisOnly></description></item> - /// <item><description>DisplayBlanksAs <c:dispBlanksAs></description></item> - /// <item><description>ShowDataLabelsOverMaximum <c:showDLblsOverMax></description></item> + /// <item><description>Thickness <c:thickness></description></item> + /// <item><description>ShapeProperties <c:spPr></description></item> + /// <item><description>PictureOptions <c:pictureOptions></description></item> /// <item><description>ExtensionList <c:extLst></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "chart")] + [SchemaAttr(11, "sideWall")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class Chart : OpenXmlCompositeElement + public partial class SideWall : SurfaceType { /// <summary> - /// Initializes a new instance of the Chart class. + /// Initializes a new instance of the SideWall class. /// </summary> - public Chart() : base() + public SideWall() : base() { } /// <summary> - /// Initializes a new instance of the Chart class with the specified child elements. + /// Initializes a new instance of the SideWall class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public Chart(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public SideWall(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the Chart class with the specified child elements. + /// Initializes a new instance of the SideWall class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public Chart(params OpenXmlElement[] childElements) : base(childElements) + public SideWall(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the Chart class from outer XML. + /// Initializes a new instance of the SideWall class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public Chart(string outerXml) : base(outerXml) + public SideWall(string outerXml) : base(outerXml) { } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "chart"); - builder.AddChild<Title>(); - builder.AddChild<AutoTitleDeleted>(); - builder.AddChild<PivotFormats>(); - builder.AddChild<View3D>(); - builder.AddChild<Floor>(); - builder.AddChild<SideWall>(); - builder.AddChild<BackWall>(); - builder.AddChild<PlotArea>(); - builder.AddChild<Legend>(); - builder.AddChild<PlotVisibleOnly>(); - builder.AddChild<DisplayBlanksAs>(); - builder.AddChild<ShowDataLabelsOverMaximum>(); - builder.AddChild<ExtensionList>(); + builder.SetSchema(11, "sideWall"); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Title), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AutoTitleDeleted), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PivotFormats), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.View3D), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Floor), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SideWall), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BackWall), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PlotArea), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Legend), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PlotVisibleOnly), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DisplayBlanksAs), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShowDataLabelsOverMaximum), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Thickness), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShapeProperties), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PictureOptions), 0, 1), new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) }; } + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<SideWall>(deep); + } + + /// <summary> + /// <para>3D back wall formatting.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:backWall.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>Thickness <c:thickness></description></item> + /// <item><description>ShapeProperties <c:spPr></description></item> + /// <item><description>PictureOptions <c:pictureOptions></description></item> + /// <item><description>ExtensionList <c:extLst></description></item> + /// </list> + /// </remark> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(11, "backWall")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class BackWall : SurfaceType + { /// <summary> - /// <para>Title.</para> - /// <para>Represents the following element tag in the schema: c:title.</para> + /// Initializes a new instance of the BackWall class. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Title? Title + public BackWall() : base() { - get => GetElement<Title>(); - set => SetElement(value); } /// <summary> - /// <para>Auto Title Is Deleted.</para> - /// <para>Represents the following element tag in the schema: c:autoTitleDeleted.</para> + /// Initializes a new instance of the BackWall class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public AutoTitleDeleted? AutoTitleDeleted + /// <param name="childElements">Specifies the child elements.</param> + public BackWall(IEnumerable<OpenXmlElement> childElements) : base(childElements) { - get => GetElement<AutoTitleDeleted>(); - set => SetElement(value); } /// <summary> - /// <para>Pivot Formats.</para> - /// <para>Represents the following element tag in the schema: c:pivotFmts.</para> + /// Initializes a new instance of the BackWall class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public PivotFormats? PivotFormats + /// <param name="childElements">Specifies the child elements.</param> + public BackWall(params OpenXmlElement[] childElements) : base(childElements) { - get => GetElement<PivotFormats>(); - set => SetElement(value); } /// <summary> - /// <para>View In 3D.</para> - /// <para>Represents the following element tag in the schema: c:view3D.</para> + /// Initializes a new instance of the BackWall class from outer XML. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public View3D? View3D + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public BackWall(string outerXml) : base(outerXml) { - get => GetElement<View3D>(); - set => SetElement(value); } - /// <summary> - /// <para>Floor.</para> - /// <para>Represents the following element tag in the schema: c:floor.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Floor? Floor + internal override void ConfigureMetadata(ElementMetadata.Builder builder) { - get => GetElement<Floor>(); - set => SetElement(value); + base.ConfigureMetadata(builder); + builder.SetSchema(11, "backWall"); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Thickness), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShapeProperties), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PictureOptions), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) + }; } + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<BackWall>(deep); + } + + /// <summary> + /// <para>Defines the SurfaceType Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is :.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>Thickness <c:thickness></description></item> + /// <item><description>ShapeProperties <c:spPr></description></item> + /// <item><description>PictureOptions <c:pictureOptions></description></item> + /// <item><description>ExtensionList <c:extLst></description></item> + /// </list> + /// </remark> + public abstract partial class SurfaceType : OpenXmlCompositeElement + { /// <summary> - /// <para>Side Wall.</para> - /// <para>Represents the following element tag in the schema: c:sideWall.</para> + /// Initializes a new instance of the SurfaceType class. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public SideWall? SideWall + protected SurfaceType() : base() { - get => GetElement<SideWall>(); - set => SetElement(value); } /// <summary> - /// <para>Back Wall.</para> - /// <para>Represents the following element tag in the schema: c:backWall.</para> + /// Initializes a new instance of the SurfaceType class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public BackWall? BackWall + /// <param name="childElements">Specifies the child elements.</param> + protected SurfaceType(IEnumerable<OpenXmlElement> childElements) : base(childElements) { - get => GetElement<BackWall>(); - set => SetElement(value); } /// <summary> - /// <para>Plot Area.</para> - /// <para>Represents the following element tag in the schema: c:plotArea.</para> + /// Initializes a new instance of the SurfaceType class with the specified child elements. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public PlotArea? PlotArea + /// <param name="childElements">Specifies the child elements.</param> + protected SurfaceType(params OpenXmlElement[] childElements) : base(childElements) { - get => GetElement<PlotArea>(); - set => SetElement(value); } /// <summary> - /// <para>Legend.</para> - /// <para>Represents the following element tag in the schema: c:legend.</para> + /// Initializes a new instance of the SurfaceType class from outer XML. /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public Legend? Legend + /// <param name="outerXml">Specifies the outer XML of the element.</param> + protected SurfaceType(string outerXml) : base(outerXml) { - get => GetElement<Legend>(); - set => SetElement(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.AddChild<Thickness>(); + builder.AddChild<ShapeProperties>(); + builder.AddChild<PictureOptions>(); + builder.AddChild<ExtensionList>(); } /// <summary> - /// <para>Plot Visible Only.</para> - /// <para>Represents the following element tag in the schema: c:plotVisOnly.</para> + /// <para>Thickness.</para> + /// <para>Represents the following element tag in the schema: c:thickness.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public PlotVisibleOnly? PlotVisibleOnly + public Thickness? Thickness { - get => GetElement<PlotVisibleOnly>(); + get => GetElement<Thickness>(); set => SetElement(value); } /// <summary> - /// <para>Display Blanks As.</para> - /// <para>Represents the following element tag in the schema: c:dispBlanksAs.</para> + /// <para>ShapeProperties.</para> + /// <para>Represents the following element tag in the schema: c:spPr.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public DisplayBlanksAs? DisplayBlanksAs + public ShapeProperties? ShapeProperties { - get => GetElement<DisplayBlanksAs>(); + get => GetElement<ShapeProperties>(); set => SetElement(value); } /// <summary> - /// <para>Show Data Labels over Maximum.</para> - /// <para>Represents the following element tag in the schema: c:showDLblsOverMax.</para> + /// <para>Picture Options.</para> + /// <para>Represents the following element tag in the schema: c:pictureOptions.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public ShowDataLabelsOverMaximum? ShowDataLabelsOverMaximum + public PictureOptions? PictureOptions { - get => GetElement<ShowDataLabelsOverMaximum>(); + get => GetElement<PictureOptions>(); set => SetElement(value); } @@ -23045,385 +23213,356 @@ public ExtensionList? ExtensionList get => GetElement<ExtensionList>(); set => SetElement(value); } - - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<Chart>(deep); } /// <summary> - /// <para>Defines the ExternalData Class.</para> + /// <para>Plot data and formatting.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:externalData.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:plotArea.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>AutoUpdate <c:autoUpdate></description></item> + /// <item><description>Layout <c:layout></description></item> + /// <item><description>AreaChart <c:areaChart></description></item> + /// <item><description>Area3DChart <c:area3DChart></description></item> + /// <item><description>LineChart <c:lineChart></description></item> + /// <item><description>Line3DChart <c:line3DChart></description></item> + /// <item><description>StockChart <c:stockChart></description></item> + /// <item><description>RadarChart <c:radarChart></description></item> + /// <item><description>ScatterChart <c:scatterChart></description></item> + /// <item><description>PieChart <c:pieChart></description></item> + /// <item><description>Pie3DChart <c:pie3DChart></description></item> + /// <item><description>DoughnutChart <c:doughnutChart></description></item> + /// <item><description>BarChart <c:barChart></description></item> + /// <item><description>Bar3DChart <c:bar3DChart></description></item> + /// <item><description>OfPieChart <c:ofPieChart></description></item> + /// <item><description>SurfaceChart <c:surfaceChart></description></item> + /// <item><description>Surface3DChart <c:surface3DChart></description></item> + /// <item><description>BubbleChart <c:bubbleChart></description></item> + /// <item><description>ValueAxis <c:valAx></description></item> + /// <item><description>CategoryAxis <c:catAx></description></item> + /// <item><description>DateAxis <c:dateAx></description></item> + /// <item><description>SeriesAxis <c:serAx></description></item> + /// <item><description>DataTable <c:dTable></description></item> + /// <item><description>ShapeProperties <c:spPr></description></item> + /// <item><description>ExtensionList <c:extLst></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "externalData")] + [SchemaAttr(11, "plotArea")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class ExternalData : OpenXmlCompositeElement + public partial class PlotArea : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the ExternalData class. + /// Initializes a new instance of the PlotArea class. /// </summary> - public ExternalData() : base() + public PlotArea() : base() { } /// <summary> - /// Initializes a new instance of the ExternalData class with the specified child elements. + /// Initializes a new instance of the PlotArea class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public ExternalData(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public PlotArea(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the ExternalData class with the specified child elements. + /// Initializes a new instance of the PlotArea class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public ExternalData(params OpenXmlElement[] childElements) : base(childElements) + public PlotArea(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the ExternalData class from outer XML. + /// Initializes a new instance of the PlotArea class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public ExternalData(string outerXml) : base(outerXml) - { - } - - /// <summary> - /// <para>Relationship Reference</para> - /// <para>Represents the following attribute in the schema: r:id</para> - /// </summary> - /// <remark> - /// xmlns:r=http://schemas.openxmlformats.org/officeDocument/2006/relationships - /// </remark> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(19, "id")] -#pragma warning restore CS0618 // Type or member is obsolete - - public StringValue? Id + public PlotArea(string outerXml) : base(outerXml) { - get => GetAttribute<StringValue>(); - set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "externalData"); - builder.AddChild<AutoUpdate>(); - builder.AddElement<ExternalData>() -.AddAttribute(19, "id", a => a.Id, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -}); + builder.SetSchema(11, "plotArea"); + builder.AddChild<Layout>(); + builder.AddChild<AreaChart>(); + builder.AddChild<Area3DChart>(); + builder.AddChild<LineChart>(); + builder.AddChild<Line3DChart>(); + builder.AddChild<StockChart>(); + builder.AddChild<RadarChart>(); + builder.AddChild<ScatterChart>(); + builder.AddChild<PieChart>(); + builder.AddChild<Pie3DChart>(); + builder.AddChild<DoughnutChart>(); + builder.AddChild<BarChart>(); + builder.AddChild<Bar3DChart>(); + builder.AddChild<OfPieChart>(); + builder.AddChild<SurfaceChart>(); + builder.AddChild<Surface3DChart>(); + builder.AddChild<BubbleChart>(); + builder.AddChild<ValueAxis>(); + builder.AddChild<CategoryAxis>(); + builder.AddChild<DateAxis>(); + builder.AddChild<SeriesAxis>(); + builder.AddChild<DataTable>(); + builder.AddChild<ShapeProperties>(); + builder.AddChild<ExtensionList>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AutoUpdate), 0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Layout), 0, 1), + new CompositeParticle.Builder(ParticleType.Choice, 1, 0) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.AreaChart), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Area3DChart), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.LineChart), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Line3DChart), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.StockChart), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.RadarChart), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ScatterChart), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PieChart), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Pie3DChart), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DoughnutChart), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BarChart), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Bar3DChart), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.OfPieChart), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SurfaceChart), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Surface3DChart), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.BubbleChart), 1, 1) + }, + new CompositeParticle.Builder(ParticleType.Choice, 0, 4) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ValueAxis), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.CategoryAxis), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DateAxis), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.SeriesAxis), 1, 1) + }, + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataTable), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ShapeProperties), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) }; - builder.AddConstraint(new RelationshipExistConstraint(0 /*r:id*/)); } /// <summary> - /// <para>Update Automatically.</para> - /// <para>Represents the following element tag in the schema: c:autoUpdate.</para> + /// <para>Layout.</para> + /// <para>Represents the following element tag in the schema: c:layout.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public AutoUpdate? AutoUpdate + public Layout? Layout { - get => GetElement<AutoUpdate>(); + get => GetElement<Layout>(); set => SetElement(value); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<ExternalData>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<PlotArea>(deep); } /// <summary> - /// <para>Defines the PrintSettings Class.</para> + /// <para>Legend data and formatting.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:printSettings.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:legend.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>HeaderFooter <c:headerFooter></description></item> - /// <item><description>PageMargins <c:pageMargins></description></item> - /// <item><description>PageSetup <c:pageSetup></description></item> - /// <item><description>LegacyDrawingHeaderFooter <c:legacyDrawingHF></description></item> + /// <item><description>LegendPosition <c:legendPos></description></item> + /// <item><description>LegendEntry <c:legendEntry></description></item> + /// <item><description>Layout <c:layout></description></item> + /// <item><description>Overlay <c:overlay></description></item> + /// <item><description>ChartShapeProperties <c:spPr></description></item> + /// <item><description>TextProperties <c:txPr></description></item> + /// <item><description>ExtensionList <c:extLst></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "printSettings")] + [SchemaAttr(11, "legend")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class PrintSettings : OpenXmlCompositeElement + public partial class Legend : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the PrintSettings class. + /// Initializes a new instance of the Legend class. /// </summary> - public PrintSettings() : base() + public Legend() : base() { } /// <summary> - /// Initializes a new instance of the PrintSettings class with the specified child elements. + /// Initializes a new instance of the Legend class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public PrintSettings(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public Legend(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the PrintSettings class with the specified child elements. + /// Initializes a new instance of the Legend class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public PrintSettings(params OpenXmlElement[] childElements) : base(childElements) + public Legend(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the PrintSettings class from outer XML. + /// Initializes a new instance of the Legend class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public PrintSettings(string outerXml) : base(outerXml) + public Legend(string outerXml) : base(outerXml) { } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "printSettings"); - builder.AddChild<HeaderFooter>(); - builder.AddChild<PageMargins>(); - builder.AddChild<PageSetup>(); - builder.AddChild<LegacyDrawingHeaderFooter>(); + builder.SetSchema(11, "legend"); + builder.AddChild<LegendPosition>(); + builder.AddChild<LegendEntry>(); + builder.AddChild<Layout>(); + builder.AddChild<Overlay>(); + builder.AddChild<ChartShapeProperties>(); + builder.AddChild<TextProperties>(); + builder.AddChild<ExtensionList>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.HeaderFooter), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PageMargins), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.PageSetup), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.LegacyDrawingHeaderFooter), 0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.LegendPosition), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.LegendEntry), 0, 0), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Layout), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.Overlay), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartShapeProperties), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.TextProperties), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ExtensionList), 0, 1) }; } /// <summary> - /// <para>Header and Footer.</para> - /// <para>Represents the following element tag in the schema: c:headerFooter.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public HeaderFooter? HeaderFooter - { - get => GetElement<HeaderFooter>(); - set => SetElement(value); - } - - /// <summary> - /// <para>Page Margins.</para> - /// <para>Represents the following element tag in the schema: c:pageMargins.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public PageMargins? PageMargins - { - get => GetElement<PageMargins>(); - set => SetElement(value); - } - - /// <summary> - /// <para>Page Setup.</para> - /// <para>Represents the following element tag in the schema: c:pageSetup.</para> - /// </summary> - /// <remark> - /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart - /// </remark> - public PageSetup? PageSetup - { - get => GetElement<PageSetup>(); - set => SetElement(value); - } - - /// <summary> - /// <para>Legacy Drawing for Headers and Footers.</para> - /// <para>Represents the following element tag in the schema: c:legacyDrawingHF.</para> + /// <para>Legend Position.</para> + /// <para>Represents the following element tag in the schema: c:legendPos.</para> /// </summary> /// <remark> /// xmlns:c = http://schemas.openxmlformats.org/drawingml/2006/chart /// </remark> - public LegacyDrawingHeaderFooter? LegacyDrawingHeaderFooter + public LegendPosition? LegendPosition { - get => GetElement<LegacyDrawingHeaderFooter>(); + get => GetElement<LegendPosition>(); set => SetElement(value); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<PrintSettings>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<Legend>(deep); } /// <summary> - /// <para>Defines the ChartSpaceExtensionList Class.</para> + /// <para>The way that blank cells are plotted on a chart..</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:dispBlanksAs.</para> /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>ChartSpaceExtension <c:ext></description></item> - /// </list> - /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "extLst")] + [SchemaAttr(11, "dispBlanksAs")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class ChartSpaceExtensionList : OpenXmlCompositeElement + public partial class DisplayBlanksAs : OpenXmlLeafElement { /// <summary> - /// Initializes a new instance of the ChartSpaceExtensionList class. + /// Initializes a new instance of the DisplayBlanksAs class. /// </summary> - public ChartSpaceExtensionList() : base() + public DisplayBlanksAs() : base() { } /// <summary> - /// Initializes a new instance of the ChartSpaceExtensionList class with the specified child elements. + /// <para>Display Blanks As Value</para> + /// <para>Represents the following attribute in the schema: val</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public ChartSpaceExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) - { - } - /// <summary> - /// Initializes a new instance of the ChartSpaceExtensionList class with the specified child elements. - /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public ChartSpaceExtensionList(params OpenXmlElement[] childElements) : base(childElements) - { - } +#pragma warning disable CS0618 // Type or member is obsolete - /// <summary> - /// Initializes a new instance of the ChartSpaceExtensionList class from outer XML. - /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public ChartSpaceExtensionList(string outerXml) : base(outerXml) + [SchemaAttr(0, "val")] +#pragma warning restore CS0618 // Type or member is obsolete + + public EnumValue<DocumentFormat.OpenXml.Drawing.Charts.DisplayBlanksAsValues>? Val { + get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.Charts.DisplayBlanksAsValues>>(); + set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "extLst"); - builder.AddChild<ChartSpaceExtension>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.ChartSpaceExtension), 0, 0) - }; + builder.SetSchema(11, "dispBlanksAs"); + builder.AddElement<DisplayBlanksAs>() +.AddAttribute(0, "val", a => a.Val); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<ChartSpaceExtensionList>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<DisplayBlanksAs>(deep); } /// <summary> - /// <para>Defines the ChartSpaceExtension Class.</para> + /// <para>Extensibility container.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is c:ext.</para> + /// <para>When the object is serialized out as xml, it's qualified name is c:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2010.Drawing.Charts.PivotOptions <c14:pivotOptions></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2010.Drawing.Charts.SketchOptions <c14:sketchOptions></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.PivotSource <c15:pivotSource></description></item> + /// <item><description>DataDisplayOptions16 <c:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(11, "ext")] + [SchemaAttr(11, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class ChartSpaceExtension : OpenXmlCompositeElement + public partial class ChartExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the ChartSpaceExtension class. + /// Initializes a new instance of the ChartExtensionList class. /// </summary> - public ChartSpaceExtension() : base() + public ChartExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the ChartSpaceExtension class with the specified child elements. + /// Initializes a new instance of the ChartExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public ChartSpaceExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public ChartExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the ChartSpaceExtension class with the specified child elements. + /// Initializes a new instance of the ChartExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public ChartSpaceExtension(params OpenXmlElement[] childElements) : base(childElements) + public ChartExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the ChartSpaceExtension class from outer XML. + /// Initializes a new instance of the ChartExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public ChartSpaceExtension(string outerXml) : base(outerXml) - { - } - - /// <summary> - /// <para>URI</para> - /// <para>Represents the following attribute in the schema: uri</para> - /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "uri")] -#pragma warning restore CS0618 // Type or member is obsolete - - public StringValue? Uri + public ChartExtensionList(string outerXml) : base(outerXml) { - get => GetAttribute<StringValue>(); - set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(11, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2010.Drawing.Charts.PivotOptions>(); - builder.AddChild<DocumentFormat.OpenXml.Office2010.Drawing.Charts.SketchOptions>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.PivotSource>(); - builder.AddElement<ChartSpaceExtension>() -.AddAttribute(0, "uri", a => a.Uri, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}); - builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + builder.SetSchema(11, "extLst"); + builder.AddChild<DataDisplayOptions16>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.Drawing.Charts.PivotOptions), 1, 1, version: FileFormatVersions.Office2010), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.Drawing.Charts.SketchOptions), 1, 1, version: FileFormatVersions.Office2010), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.Chart.PivotSource), 1, 1, version: FileFormatVersions.Office2013), - new AnyParticle(0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Charts.DataDisplayOptions16), 0, 0, version: FileFormatVersions.Office2019) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<ChartSpaceExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<ChartExtensionList>(deep); } /// <summary> diff --git a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_openxmlformats_org_drawingml_2006_diagram.g.cs b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_openxmlformats_org_drawingml_2006_diagram.g.cs index 88142554f..3efd5076c 100644 --- a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_openxmlformats_org_drawingml_2006_diagram.g.cs +++ b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_openxmlformats_org_drawingml_2006_diagram.g.cs @@ -7,6 +7,8 @@ using DocumentFormat.OpenXml.Drawing; using DocumentFormat.OpenXml.Framework; using DocumentFormat.OpenXml.Framework.Metadata; +using DocumentFormat.OpenXml.Office2019.Drawing.Diagram11; +using DocumentFormat.OpenXml.Office2019.Drawing.Diagram12; using DocumentFormat.OpenXml.Packaging; using DocumentFormat.OpenXml.Validation.Schema; using DocumentFormat.OpenXml.Validation.Semantic; @@ -530,7 +532,7 @@ public DiagramDataPart? DiagramDataPart /// <item><description>StyleData <dgm:styleData></description></item> /// <item><description>ColorData <dgm:clrData></description></item> /// <item><description>LayoutNode <dgm:layoutNode></description></item> - /// <item><description>ExtensionList <dgm:extLst></description></item> + /// <item><description>DiagramDefinitionExtensionList <dgm:extLst></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete @@ -570,7 +572,7 @@ public LayoutDefinition(string outerXml) : base(outerXml) } /// <summary> - /// <para>Unique Identifier</para> + /// <para>uniqueId</para> /// <para>Represents the following attribute in the schema: uniqueId</para> /// </summary> @@ -586,7 +588,7 @@ public StringValue? UniqueId } /// <summary> - /// <para>Minimum Version</para> + /// <para>minVer</para> /// <para>Represents the following attribute in the schema: minVer</para> /// </summary> @@ -602,7 +604,7 @@ public StringValue? MinVersion } /// <summary> - /// <para>Default Style</para> + /// <para>defStyle</para> /// <para>Represents the following attribute in the schema: defStyle</para> /// </summary> @@ -628,7 +630,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) builder.AddChild<StyleData>(); builder.AddChild<ColorData>(); builder.AddChild<LayoutNode>(); - builder.AddChild<ExtensionList>(); + builder.AddChild<DiagramDefinitionExtensionList>(); builder.AddElement<LayoutDefinition>() .AddAttribute(0, "uniqueId", a => a.UniqueId) .AddAttribute(0, "minVer", a => a.MinVersion) @@ -642,7 +644,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Diagrams.StyleData), 0, 1), new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Diagrams.ColorData), 0, 1), new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Diagrams.LayoutNode), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Diagrams.ExtensionList), 0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Diagrams.DiagramDefinitionExtensionList), 0, 1) }; } @@ -5871,412 +5873,333 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) } /// <summary> - /// <para>Sample Data.</para> + /// <para>Shape Style.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is dgm:sampData.</para> + /// <para>When the object is serialized out as xml, it's qualified name is dgm:style.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DataModel <dgm:dataModel></description></item> + /// <item><description>DocumentFormat.OpenXml.Drawing.LineReference <a:lnRef></description></item> + /// <item><description>DocumentFormat.OpenXml.Drawing.FillReference <a:fillRef></description></item> + /// <item><description>DocumentFormat.OpenXml.Drawing.EffectReference <a:effectRef></description></item> + /// <item><description>DocumentFormat.OpenXml.Drawing.FontReference <a:fontRef></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(14, "sampData")] + [SchemaAttr(14, "style")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class SampleData : SampleDataType + public partial class Style : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the SampleData class. + /// Initializes a new instance of the Style class. /// </summary> - public SampleData() : base() + public Style() : base() { } /// <summary> - /// Initializes a new instance of the SampleData class with the specified child elements. + /// Initializes a new instance of the Style class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public SampleData(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public Style(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the SampleData class with the specified child elements. + /// Initializes a new instance of the Style class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public SampleData(params OpenXmlElement[] childElements) : base(childElements) + public Style(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the SampleData class from outer XML. + /// Initializes a new instance of the Style class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public SampleData(string outerXml) : base(outerXml) + public Style(string outerXml) : base(outerXml) { } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(14, "sampData"); + builder.SetSchema(14, "style"); + builder.AddChild<DocumentFormat.OpenXml.Drawing.LineReference>(); + builder.AddChild<DocumentFormat.OpenXml.Drawing.FillReference>(); + builder.AddChild<DocumentFormat.OpenXml.Drawing.EffectReference>(); + builder.AddChild<DocumentFormat.OpenXml.Drawing.FontReference>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Diagrams.DataModel), 0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.LineReference), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.FillReference), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.EffectReference), 1, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.FontReference), 1, 1) }; } - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<SampleData>(deep); - } - - /// <summary> - /// <para>Style Data.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is dgm:styleData.</para> - /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>DataModel <dgm:dataModel></description></item> - /// </list> - /// </remark> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(14, "styleData")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class StyleData : SampleDataType - { /// <summary> - /// Initializes a new instance of the StyleData class. + /// <para>LineReference.</para> + /// <para>Represents the following element tag in the schema: a:lnRef.</para> /// </summary> - public StyleData() : base() + /// <remark> + /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main + /// </remark> + public DocumentFormat.OpenXml.Drawing.LineReference? LineReference { + get => GetElement<DocumentFormat.OpenXml.Drawing.LineReference>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the StyleData class with the specified child elements. + /// <para>FillReference.</para> + /// <para>Represents the following element tag in the schema: a:fillRef.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public StyleData(IEnumerable<OpenXmlElement> childElements) : base(childElements) + /// <remark> + /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main + /// </remark> + public DocumentFormat.OpenXml.Drawing.FillReference? FillReference { + get => GetElement<DocumentFormat.OpenXml.Drawing.FillReference>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the StyleData class with the specified child elements. + /// <para>EffectReference.</para> + /// <para>Represents the following element tag in the schema: a:effectRef.</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public StyleData(params OpenXmlElement[] childElements) : base(childElements) + /// <remark> + /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main + /// </remark> + public DocumentFormat.OpenXml.Drawing.EffectReference? EffectReference { + get => GetElement<DocumentFormat.OpenXml.Drawing.EffectReference>(); + set => SetElement(value); } /// <summary> - /// Initializes a new instance of the StyleData class from outer XML. + /// <para>Font Reference.</para> + /// <para>Represents the following element tag in the schema: a:fontRef.</para> /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public StyleData(string outerXml) : base(outerXml) - { - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + /// <remark> + /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main + /// </remark> + public DocumentFormat.OpenXml.Drawing.FontReference? FontReference { - base.ConfigureMetadata(builder); - builder.SetSchema(14, "styleData"); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Diagrams.DataModel), 0, 1) - }; + get => GetElement<DocumentFormat.OpenXml.Drawing.FontReference>(); + set => SetElement(value); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<StyleData>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<Style>(deep); } /// <summary> - /// <para>Color Transform Sample Data.</para> + /// <para>Show Organization Chart User Interface.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is dgm:clrData.</para> + /// <para>When the object is serialized out as xml, it's qualified name is dgm:orgChart.</para> /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>DataModel <dgm:dataModel></description></item> - /// </list> - /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(14, "clrData")] + [SchemaAttr(14, "orgChart")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class ColorData : SampleDataType + public partial class OrganizationChart : OpenXmlLeafElement { /// <summary> - /// Initializes a new instance of the ColorData class. + /// Initializes a new instance of the OrganizationChart class. /// </summary> - public ColorData() : base() + public OrganizationChart() : base() { } /// <summary> - /// Initializes a new instance of the ColorData class with the specified child elements. + /// <para>Show Organization Chart User Interface Value</para> + /// <para>Represents the following attribute in the schema: val</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public ColorData(IEnumerable<OpenXmlElement> childElements) : base(childElements) - { - } - /// <summary> - /// Initializes a new instance of the ColorData class with the specified child elements. - /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public ColorData(params OpenXmlElement[] childElements) : base(childElements) - { - } +#pragma warning disable CS0618 // Type or member is obsolete - /// <summary> - /// Initializes a new instance of the ColorData class from outer XML. - /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public ColorData(string outerXml) : base(outerXml) + [SchemaAttr(0, "val")] +#pragma warning restore CS0618 // Type or member is obsolete + + public BooleanValue? Val { + get => GetAttribute<BooleanValue>(); + set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(14, "clrData"); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Diagrams.DataModel), 0, 1) - }; + builder.SetSchema(14, "orgChart"); + builder.AddElement<OrganizationChart>() +.AddAttribute(0, "val", a => a.Val); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<ColorData>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<OrganizationChart>(deep); } /// <summary> - /// <para>Defines the SampleDataType Class.</para> + /// <para>Maximum Children.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is :.</para> + /// <para>When the object is serialized out as xml, it's qualified name is dgm:chMax.</para> /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>DataModel <dgm:dataModel></description></item> - /// </list> - /// </remark> - public abstract partial class SampleDataType : OpenXmlCompositeElement +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(14, "chMax")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class MaxNumberOfChildren : OpenXmlLeafElement { /// <summary> - /// Initializes a new instance of the SampleDataType class. + /// Initializes a new instance of the MaxNumberOfChildren class. /// </summary> - protected SampleDataType() : base() + public MaxNumberOfChildren() : base() { } /// <summary> - /// Initializes a new instance of the SampleDataType class with the specified child elements. + /// <para>Maximum Children Value</para> + /// <para>Represents the following attribute in the schema: val</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - protected SampleDataType(IEnumerable<OpenXmlElement> childElements) : base(childElements) + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "val")] +#pragma warning restore CS0618 // Type or member is obsolete + + public Int32Value? Val { + get => GetAttribute<Int32Value>(); + set => SetAttribute(value); } - /// <summary> - /// Initializes a new instance of the SampleDataType class with the specified child elements. - /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - protected SampleDataType(params OpenXmlElement[] childElements) : base(childElements) + internal override void ConfigureMetadata(ElementMetadata.Builder builder) { + base.ConfigureMetadata(builder); + builder.SetSchema(14, "chMax"); + builder.AddElement<MaxNumberOfChildren>() +.AddAttribute(0, "val", a => a.Val, aBuilder => +{ + aBuilder.AddValidator(new NumberValidator() { MinInclusive = (-1L) }); +}); } + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<MaxNumberOfChildren>(deep); + } + + /// <summary> + /// <para>Preferred Number of Children.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is dgm:chPref.</para> + /// </summary> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(14, "chPref")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class PreferredNumberOfChildren : OpenXmlLeafElement + { /// <summary> - /// Initializes a new instance of the SampleDataType class from outer XML. + /// Initializes a new instance of the PreferredNumberOfChildren class. /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - protected SampleDataType(string outerXml) : base(outerXml) + public PreferredNumberOfChildren() : base() { } /// <summary> - /// <para>Use Default</para> - /// <para>Represents the following attribute in the schema: useDef</para> + /// <para>Preferred Number of CHildren Value</para> + /// <para>Represents the following attribute in the schema: val</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(0, "useDef")] + [SchemaAttr(0, "val")] #pragma warning restore CS0618 // Type or member is obsolete - public BooleanValue? UseDefault + public Int32Value? Val { - get => GetAttribute<BooleanValue>(); + get => GetAttribute<Int32Value>(); set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.AddChild<DataModel>(); - builder.AddElement<SampleDataType>() -.AddAttribute(0, "useDef", a => a.UseDefault); + builder.SetSchema(14, "chPref"); + builder.AddElement<PreferredNumberOfChildren>() +.AddAttribute(0, "val", a => a.Val, aBuilder => +{ +aBuilder.AddValidator(new NumberValidator() { MinInclusive = (-1L) }); +}); } - /// <summary> - /// <para>Data Model.</para> - /// <para>Represents the following element tag in the schema: dgm:dataModel.</para> - /// </summary> - /// <remark> - /// xmlns:dgm = http://schemas.openxmlformats.org/drawingml/2006/diagram - /// </remark> - public DataModel? DataModel - { - get => GetElement<DataModel>(); - set => SetElement(value); - } + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<PreferredNumberOfChildren>(deep); } /// <summary> - /// <para>Shape Style.</para> + /// <para>Show Insert Bullet.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is dgm:style.</para> + /// <para>When the object is serialized out as xml, it's qualified name is dgm:bulletEnabled.</para> /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Drawing.LineReference <a:lnRef></description></item> - /// <item><description>DocumentFormat.OpenXml.Drawing.FillReference <a:fillRef></description></item> - /// <item><description>DocumentFormat.OpenXml.Drawing.EffectReference <a:effectRef></description></item> - /// <item><description>DocumentFormat.OpenXml.Drawing.FontReference <a:fontRef></description></item> - /// </list> - /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(14, "style")] + [SchemaAttr(14, "bulletEnabled")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class Style : OpenXmlCompositeElement + public partial class BulletEnabled : OpenXmlLeafElement { /// <summary> - /// Initializes a new instance of the Style class. + /// Initializes a new instance of the BulletEnabled class. /// </summary> - public Style() : base() + public BulletEnabled() : base() { } /// <summary> - /// Initializes a new instance of the Style class with the specified child elements. + /// <para>Show Insert Bullet Value</para> + /// <para>Represents the following attribute in the schema: val</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public Style(IEnumerable<OpenXmlElement> childElements) : base(childElements) - { - } - /// <summary> - /// Initializes a new instance of the Style class with the specified child elements. - /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public Style(params OpenXmlElement[] childElements) : base(childElements) - { - } +#pragma warning disable CS0618 // Type or member is obsolete - /// <summary> - /// Initializes a new instance of the Style class from outer XML. - /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public Style(string outerXml) : base(outerXml) + [SchemaAttr(0, "val")] +#pragma warning restore CS0618 // Type or member is obsolete + + public BooleanValue? Val { + get => GetAttribute<BooleanValue>(); + set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(14, "style"); - builder.AddChild<DocumentFormat.OpenXml.Drawing.LineReference>(); - builder.AddChild<DocumentFormat.OpenXml.Drawing.FillReference>(); - builder.AddChild<DocumentFormat.OpenXml.Drawing.EffectReference>(); - builder.AddChild<DocumentFormat.OpenXml.Drawing.FontReference>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.LineReference), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.FillReference), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.EffectReference), 1, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.FontReference), 1, 1) - }; - } - - /// <summary> - /// <para>LineReference.</para> - /// <para>Represents the following element tag in the schema: a:lnRef.</para> - /// </summary> - /// <remark> - /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main - /// </remark> - public DocumentFormat.OpenXml.Drawing.LineReference? LineReference - { - get => GetElement<DocumentFormat.OpenXml.Drawing.LineReference>(); - set => SetElement(value); - } - - /// <summary> - /// <para>FillReference.</para> - /// <para>Represents the following element tag in the schema: a:fillRef.</para> - /// </summary> - /// <remark> - /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main - /// </remark> - public DocumentFormat.OpenXml.Drawing.FillReference? FillReference - { - get => GetElement<DocumentFormat.OpenXml.Drawing.FillReference>(); - set => SetElement(value); - } - - /// <summary> - /// <para>EffectReference.</para> - /// <para>Represents the following element tag in the schema: a:effectRef.</para> - /// </summary> - /// <remark> - /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main - /// </remark> - public DocumentFormat.OpenXml.Drawing.EffectReference? EffectReference - { - get => GetElement<DocumentFormat.OpenXml.Drawing.EffectReference>(); - set => SetElement(value); - } - - /// <summary> - /// <para>Font Reference.</para> - /// <para>Represents the following element tag in the schema: a:fontRef.</para> - /// </summary> - /// <remark> - /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main - /// </remark> - public DocumentFormat.OpenXml.Drawing.FontReference? FontReference - { - get => GetElement<DocumentFormat.OpenXml.Drawing.FontReference>(); - set => SetElement(value); + builder.SetSchema(14, "bulletEnabled"); + builder.AddElement<BulletEnabled>() +.AddAttribute(0, "val", a => a.Val); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<Style>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<BulletEnabled>(deep); } /// <summary> - /// <para>Show Organization Chart User Interface.</para> + /// <para>Diagram Direction.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is dgm:orgChart.</para> + /// <para>When the object is serialized out as xml, it's qualified name is dgm:dir.</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(14, "orgChart")] + [SchemaAttr(14, "dir")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class OrganizationChart : OpenXmlLeafElement + public partial class Direction : OpenXmlLeafElement { /// <summary> - /// Initializes a new instance of the OrganizationChart class. + /// Initializes a new instance of the Direction class. /// </summary> - public OrganizationChart() : base() + public Direction() : base() { } /// <summary> - /// <para>Show Organization Chart User Interface Value</para> + /// <para>Diagram Direction Value</para> /// <para>Represents the following attribute in the schema: val</para> /// </summary> @@ -6285,43 +6208,46 @@ public OrganizationChart() : base() [SchemaAttr(0, "val")] #pragma warning restore CS0618 // Type or member is obsolete - public BooleanValue? Val + public EnumValue<DocumentFormat.OpenXml.Drawing.Diagrams.DirectionValues>? Val { - get => GetAttribute<BooleanValue>(); + get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.Diagrams.DirectionValues>>(); set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(14, "orgChart"); - builder.AddElement<OrganizationChart>() -.AddAttribute(0, "val", a => a.Val); + builder.SetSchema(14, "dir"); + builder.AddElement<Direction>() +.AddAttribute(0, "val", a => a.Val, aBuilder => +{ + aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<OrganizationChart>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<Direction>(deep); } /// <summary> - /// <para>Maximum Children.</para> + /// <para>Organization Chart Branch Style.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is dgm:chMax.</para> + /// <para>When the object is serialized out as xml, it's qualified name is dgm:hierBranch.</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(14, "chMax")] + [SchemaAttr(14, "hierBranch")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class MaxNumberOfChildren : OpenXmlLeafElement + public partial class HierarchyBranch : OpenXmlLeafElement { /// <summary> - /// Initializes a new instance of the MaxNumberOfChildren class. + /// Initializes a new instance of the HierarchyBranch class. /// </summary> - public MaxNumberOfChildren() : base() + public HierarchyBranch() : base() { } /// <summary> - /// <para>Maximum Children Value</para> + /// <para>Organization Chart Branch Style Value</para> /// <para>Represents the following attribute in the schema: val</para> /// </summary> @@ -6330,46 +6256,46 @@ public MaxNumberOfChildren() : base() [SchemaAttr(0, "val")] #pragma warning restore CS0618 // Type or member is obsolete - public Int32Value? Val + public EnumValue<DocumentFormat.OpenXml.Drawing.Diagrams.HierarchyBranchStyleValues>? Val { - get => GetAttribute<Int32Value>(); + get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.Diagrams.HierarchyBranchStyleValues>>(); set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(14, "chMax"); - builder.AddElement<MaxNumberOfChildren>() + builder.SetSchema(14, "hierBranch"); + builder.AddElement<HierarchyBranch>() .AddAttribute(0, "val", a => a.Val, aBuilder => { - aBuilder.AddValidator(new NumberValidator() { MinInclusive = (-1L) }); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); }); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<MaxNumberOfChildren>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<HierarchyBranch>(deep); } /// <summary> - /// <para>Preferred Number of Children.</para> + /// <para>One by One Animation String.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is dgm:chPref.</para> + /// <para>When the object is serialized out as xml, it's qualified name is dgm:animOne.</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(14, "chPref")] + [SchemaAttr(14, "animOne")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class PreferredNumberOfChildren : OpenXmlLeafElement + public partial class AnimateOneByOne : OpenXmlLeafElement { /// <summary> - /// Initializes a new instance of the PreferredNumberOfChildren class. + /// Initializes a new instance of the AnimateOneByOne class. /// </summary> - public PreferredNumberOfChildren() : base() + public AnimateOneByOne() : base() { } /// <summary> - /// <para>Preferred Number of CHildren Value</para> + /// <para>One By One Animation Value</para> /// <para>Represents the following attribute in the schema: val</para> /// </summary> @@ -6378,46 +6304,46 @@ public PreferredNumberOfChildren() : base() [SchemaAttr(0, "val")] #pragma warning restore CS0618 // Type or member is obsolete - public Int32Value? Val + public EnumValue<DocumentFormat.OpenXml.Drawing.Diagrams.AnimateOneByOneValues>? Val { - get => GetAttribute<Int32Value>(); + get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.Diagrams.AnimateOneByOneValues>>(); set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(14, "chPref"); - builder.AddElement<PreferredNumberOfChildren>() + builder.SetSchema(14, "animOne"); + builder.AddElement<AnimateOneByOne>() .AddAttribute(0, "val", a => a.Val, aBuilder => { -aBuilder.AddValidator(new NumberValidator() { MinInclusive = (-1L) }); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); }); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<PreferredNumberOfChildren>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<AnimateOneByOne>(deep); } /// <summary> - /// <para>Show Insert Bullet.</para> + /// <para>Level Animation.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is dgm:bulletEnabled.</para> + /// <para>When the object is serialized out as xml, it's qualified name is dgm:animLvl.</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(14, "bulletEnabled")] + [SchemaAttr(14, "animLvl")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class BulletEnabled : OpenXmlLeafElement + public partial class AnimationLevel : OpenXmlLeafElement { /// <summary> - /// Initializes a new instance of the BulletEnabled class. + /// Initializes a new instance of the AnimationLevel class. /// </summary> - public BulletEnabled() : base() + public AnimationLevel() : base() { } /// <summary> - /// <para>Show Insert Bullet Value</para> + /// <para>Level Animation Value</para> /// <para>Represents the following attribute in the schema: val</para> /// </summary> @@ -6426,43 +6352,46 @@ public BulletEnabled() : base() [SchemaAttr(0, "val")] #pragma warning restore CS0618 // Type or member is obsolete - public BooleanValue? Val + public EnumValue<DocumentFormat.OpenXml.Drawing.Diagrams.AnimationLevelStringValues>? Val { - get => GetAttribute<BooleanValue>(); + get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.Diagrams.AnimationLevelStringValues>>(); set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(14, "bulletEnabled"); - builder.AddElement<BulletEnabled>() -.AddAttribute(0, "val", a => a.Val); + builder.SetSchema(14, "animLvl"); + builder.AddElement<AnimationLevel>() +.AddAttribute(0, "val", a => a.Val, aBuilder => +{ +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<BulletEnabled>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<AnimationLevel>(deep); } /// <summary> - /// <para>Diagram Direction.</para> + /// <para>Shape Resize Style.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is dgm:dir.</para> + /// <para>When the object is serialized out as xml, it's qualified name is dgm:resizeHandles.</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(14, "dir")] + [SchemaAttr(14, "resizeHandles")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class Direction : OpenXmlLeafElement + public partial class ResizeHandles : OpenXmlLeafElement { /// <summary> - /// Initializes a new instance of the Direction class. + /// Initializes a new instance of the ResizeHandles class. /// </summary> - public Direction() : base() + public ResizeHandles() : base() { } /// <summary> - /// <para>Diagram Direction Value</para> + /// <para>Shape Resize Style Type</para> /// <para>Represents the following attribute in the schema: val</para> /// </summary> @@ -6471,199 +6400,7 @@ public Direction() : base() [SchemaAttr(0, "val")] #pragma warning restore CS0618 // Type or member is obsolete - public EnumValue<DocumentFormat.OpenXml.Drawing.Diagrams.DirectionValues>? Val - { - get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.Diagrams.DirectionValues>>(); - set => SetAttribute(value); - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.SetSchema(14, "dir"); - builder.AddElement<Direction>() -.AddAttribute(0, "val", a => a.Val, aBuilder => -{ - aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}); - } - - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<Direction>(deep); - } - - /// <summary> - /// <para>Organization Chart Branch Style.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is dgm:hierBranch.</para> - /// </summary> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(14, "hierBranch")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class HierarchyBranch : OpenXmlLeafElement - { - /// <summary> - /// Initializes a new instance of the HierarchyBranch class. - /// </summary> - public HierarchyBranch() : base() - { - } - - /// <summary> - /// <para>Organization Chart Branch Style Value</para> - /// <para>Represents the following attribute in the schema: val</para> - /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "val")] -#pragma warning restore CS0618 // Type or member is obsolete - - public EnumValue<DocumentFormat.OpenXml.Drawing.Diagrams.HierarchyBranchStyleValues>? Val - { - get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.Diagrams.HierarchyBranchStyleValues>>(); - set => SetAttribute(value); - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.SetSchema(14, "hierBranch"); - builder.AddElement<HierarchyBranch>() -.AddAttribute(0, "val", a => a.Val, aBuilder => -{ -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}); - } - - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<HierarchyBranch>(deep); - } - - /// <summary> - /// <para>One by One Animation String.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is dgm:animOne.</para> - /// </summary> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(14, "animOne")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class AnimateOneByOne : OpenXmlLeafElement - { - /// <summary> - /// Initializes a new instance of the AnimateOneByOne class. - /// </summary> - public AnimateOneByOne() : base() - { - } - - /// <summary> - /// <para>One By One Animation Value</para> - /// <para>Represents the following attribute in the schema: val</para> - /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "val")] -#pragma warning restore CS0618 // Type or member is obsolete - - public EnumValue<DocumentFormat.OpenXml.Drawing.Diagrams.AnimateOneByOneValues>? Val - { - get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.Diagrams.AnimateOneByOneValues>>(); - set => SetAttribute(value); - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.SetSchema(14, "animOne"); - builder.AddElement<AnimateOneByOne>() -.AddAttribute(0, "val", a => a.Val, aBuilder => -{ -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}); - } - - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<AnimateOneByOne>(deep); - } - - /// <summary> - /// <para>Level Animation.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is dgm:animLvl.</para> - /// </summary> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(14, "animLvl")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class AnimationLevel : OpenXmlLeafElement - { - /// <summary> - /// Initializes a new instance of the AnimationLevel class. - /// </summary> - public AnimationLevel() : base() - { - } - - /// <summary> - /// <para>Level Animation Value</para> - /// <para>Represents the following attribute in the schema: val</para> - /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "val")] -#pragma warning restore CS0618 // Type or member is obsolete - - public EnumValue<DocumentFormat.OpenXml.Drawing.Diagrams.AnimationLevelStringValues>? Val - { - get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.Diagrams.AnimationLevelStringValues>>(); - set => SetAttribute(value); - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.SetSchema(14, "animLvl"); - builder.AddElement<AnimationLevel>() -.AddAttribute(0, "val", a => a.Val, aBuilder => -{ -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}); - } - - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<AnimationLevel>(deep); - } - - /// <summary> - /// <para>Shape Resize Style.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is dgm:resizeHandles.</para> - /// </summary> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(14, "resizeHandles")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class ResizeHandles : OpenXmlLeafElement - { - /// <summary> - /// Initializes a new instance of the ResizeHandles class. - /// </summary> - public ResizeHandles() : base() - { - } - - /// <summary> - /// <para>Shape Resize Style Type</para> - /// <para>Represents the following attribute in the schema: val</para> - /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "val")] -#pragma warning restore CS0618 // Type or member is obsolete - - public EnumValue<DocumentFormat.OpenXml.Drawing.Diagrams.ResizeHandlesStringValues>? Val + public EnumValue<DocumentFormat.OpenXml.Drawing.Diagrams.ResizeHandlesStringValues>? Val { get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Drawing.Diagrams.ResizeHandlesStringValues>>(); set => SetAttribute(value); @@ -8800,6 +8537,421 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) public override OpenXmlElement CloneNode(bool deep) => CloneImp<PtExtensionList>(deep); } + /// <summary> + /// <para>Defines the DiagramDefinitionExtension Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is dgm:ext.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>DocumentFormat.OpenXml.Office2019.Drawing.Diagram11.NumberDiagramInfoList <dgm1611:autoBuNodeInfoLst></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2019.Drawing.Diagram12.TextListStyleType <dgm1612:lstStyle></description></item> + /// </list> + /// </remark> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(14, "ext")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class DiagramDefinitionExtension : OpenXmlCompositeElement + { + /// <summary> + /// Initializes a new instance of the DiagramDefinitionExtension class. + /// </summary> + public DiagramDefinitionExtension() : base() + { + } + + /// <summary> + /// Initializes a new instance of the DiagramDefinitionExtension class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public DiagramDefinitionExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + { + } + + /// <summary> + /// Initializes a new instance of the DiagramDefinitionExtension class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public DiagramDefinitionExtension(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// <summary> + /// Initializes a new instance of the DiagramDefinitionExtension class from outer XML. + /// </summary> + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public DiagramDefinitionExtension(string outerXml) : base(outerXml) + { + } + + /// <summary> + /// <para>URI</para> + /// <para>Represents the following attribute in the schema: uri</para> + /// </summary> + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "uri")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Uri + { + get => GetAttribute<StringValue>(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(14, "ext"); + builder.AddChild<DocumentFormat.OpenXml.Office2019.Drawing.Diagram11.NumberDiagramInfoList>(); + builder.AddChild<DocumentFormat.OpenXml.Office2019.Drawing.Diagram12.TextListStyleType>(); + builder.AddElement<DiagramDefinitionExtension>() +.AddAttribute(0, "uri", a => a.Uri, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Diagram11.NumberDiagramInfoList), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Diagram12.TextListStyleType), 1, 1, version: FileFormatVersions.Office2019), + new AnyParticle(0, 1) + }; + } + + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<DiagramDefinitionExtension>(deep); + } + + /// <summary> + /// <para>Defines the SampleData Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is dgm:sampData.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>DataModel <dgm:dataModel></description></item> + /// </list> + /// </remark> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(14, "sampData")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class SampleData : SampleDataType + { + /// <summary> + /// Initializes a new instance of the SampleData class. + /// </summary> + public SampleData() : base() + { + } + + /// <summary> + /// Initializes a new instance of the SampleData class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public SampleData(IEnumerable<OpenXmlElement> childElements) : base(childElements) + { + } + + /// <summary> + /// Initializes a new instance of the SampleData class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public SampleData(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// <summary> + /// Initializes a new instance of the SampleData class from outer XML. + /// </summary> + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public SampleData(string outerXml) : base(outerXml) + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(14, "sampData"); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Diagrams.DataModel), 0, 1) + }; + } + + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<SampleData>(deep); + } + + /// <summary> + /// <para>Defines the StyleData Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is dgm:styleData.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>DataModel <dgm:dataModel></description></item> + /// </list> + /// </remark> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(14, "styleData")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class StyleData : SampleDataType + { + /// <summary> + /// Initializes a new instance of the StyleData class. + /// </summary> + public StyleData() : base() + { + } + + /// <summary> + /// Initializes a new instance of the StyleData class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public StyleData(IEnumerable<OpenXmlElement> childElements) : base(childElements) + { + } + + /// <summary> + /// Initializes a new instance of the StyleData class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public StyleData(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// <summary> + /// Initializes a new instance of the StyleData class from outer XML. + /// </summary> + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public StyleData(string outerXml) : base(outerXml) + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(14, "styleData"); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Diagrams.DataModel), 0, 1) + }; + } + + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<StyleData>(deep); + } + + /// <summary> + /// <para>Defines the ColorData Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is dgm:clrData.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>DataModel <dgm:dataModel></description></item> + /// </list> + /// </remark> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(14, "clrData")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class ColorData : SampleDataType + { + /// <summary> + /// Initializes a new instance of the ColorData class. + /// </summary> + public ColorData() : base() + { + } + + /// <summary> + /// Initializes a new instance of the ColorData class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public ColorData(IEnumerable<OpenXmlElement> childElements) : base(childElements) + { + } + + /// <summary> + /// Initializes a new instance of the ColorData class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public ColorData(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// <summary> + /// Initializes a new instance of the ColorData class from outer XML. + /// </summary> + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public ColorData(string outerXml) : base(outerXml) + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(14, "clrData"); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Diagrams.DataModel), 0, 1) + }; + } + + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<ColorData>(deep); + } + + /// <summary> + /// <para>Defines the SampleDataType Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is :.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>DataModel <dgm:dataModel></description></item> + /// </list> + /// </remark> + public abstract partial class SampleDataType : OpenXmlCompositeElement + { + /// <summary> + /// Initializes a new instance of the SampleDataType class. + /// </summary> + protected SampleDataType() : base() + { + } + + /// <summary> + /// Initializes a new instance of the SampleDataType class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + protected SampleDataType(IEnumerable<OpenXmlElement> childElements) : base(childElements) + { + } + + /// <summary> + /// Initializes a new instance of the SampleDataType class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + protected SampleDataType(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// <summary> + /// Initializes a new instance of the SampleDataType class from outer XML. + /// </summary> + /// <param name="outerXml">Specifies the outer XML of the element.</param> + protected SampleDataType(string outerXml) : base(outerXml) + { + } + + /// <summary> + /// <para>Use Default</para> + /// <para>Represents the following attribute in the schema: useDef</para> + /// </summary> + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "useDef")] +#pragma warning restore CS0618 // Type or member is obsolete + + public BooleanValue? UseDefault + { + get => GetAttribute<BooleanValue>(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.AddChild<DataModel>(); + builder.AddElement<SampleDataType>() +.AddAttribute(0, "useDef", a => a.UseDefault); + } + + /// <summary> + /// <para>Data Model.</para> + /// <para>Represents the following element tag in the schema: dgm:dataModel.</para> + /// </summary> + /// <remark> + /// xmlns:dgm = http://schemas.openxmlformats.org/drawingml/2006/diagram + /// </remark> + public DataModel? DataModel + { + get => GetElement<DataModel>(); + set => SetElement(value); + } + } + + /// <summary> + /// <para>List of extensions to the CT_DiagramDefintions type..</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is dgm:extLst.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>DiagramDefinitionExtension <dgm:ext></description></item> + /// </list> + /// </remark> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(14, "extLst")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class DiagramDefinitionExtensionList : OpenXmlCompositeElement + { + /// <summary> + /// Initializes a new instance of the DiagramDefinitionExtensionList class. + /// </summary> + public DiagramDefinitionExtensionList() : base() + { + } + + /// <summary> + /// Initializes a new instance of the DiagramDefinitionExtensionList class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public DiagramDefinitionExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + { + } + + /// <summary> + /// Initializes a new instance of the DiagramDefinitionExtensionList class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public DiagramDefinitionExtensionList(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// <summary> + /// Initializes a new instance of the DiagramDefinitionExtensionList class from outer XML. + /// </summary> + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public DiagramDefinitionExtensionList(string outerXml) : base(outerXml) + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(14, "extLst"); + builder.AddChild<DiagramDefinitionExtension>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.Diagrams.DiagramDefinitionExtension), 0, 0) + }; + } + + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<DiagramDefinitionExtensionList>(deep); + } + /// <summary> /// Color Application Method Type /// </summary> diff --git a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_openxmlformats_org_drawingml_2006_main.g.cs b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_openxmlformats_org_drawingml_2006_main.g.cs index db574e1db..12d75ff26 100644 --- a/src/DocumentFormat.OpenXml/GeneratedCode/schemas_openxmlformats_org_drawingml_2006_main.g.cs +++ b/src/DocumentFormat.OpenXml/GeneratedCode/schemas_openxmlformats_org_drawingml_2006_main.g.cs @@ -12,6 +12,10 @@ using DocumentFormat.OpenXml.Office2013.Drawing; using DocumentFormat.OpenXml.Office2013.Theme; using DocumentFormat.OpenXml.Office2013.Word.Drawing; +using DocumentFormat.OpenXml.Office2016.Drawing; +using DocumentFormat.OpenXml.Office2019.Drawing; +using DocumentFormat.OpenXml.Office2019.Drawing.HyperLinkColor; +using DocumentFormat.OpenXml.Office2019.Drawing.SVG; using DocumentFormat.OpenXml.Packaging; using DocumentFormat.OpenXml.Validation.Schema; using DocumentFormat.OpenXml.Validation.Semantic; @@ -156,7 +160,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) } /// <summary> - /// <para>Hyperlink Sound.</para> + /// <para>Sound to play..</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is a:snd.</para> /// </summary> @@ -12616,7 +12620,7 @@ public StringValue? Link } /// <summary> - /// <para>cstate</para> + /// <para>Compression state for blips.</para> /// <para>Represents the following attribute in the schema: cstate</para> /// </summary> @@ -16917,6 +16921,15 @@ public ExtensionList? ExtensionList /// <item><description>ThemeManager <a:themeManager></description></item> /// <item><description>Table <a:tbl></description></item> /// <item><description>TableStyleList <a:tblStyleLst></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2019.Drawing.PictureAttributionSourceURL <a1611:picAttrSrcUrl></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2019.Drawing.SVG.SVGBlip <asvg:svgBlip></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2019.Drawing.Decorative <adec:decorative></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2016.Drawing.CreationId <a16:creationId></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2016.Drawing.PredecessorDrawingElementReference <a16:predDERef></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2016.Drawing.ConnectableReferences <a16:cxnDERefs></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2016.Drawing.RowIdIdentifier <a16:rowId></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2016.Drawing.ColIdIdentifier <a16:colId></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2019.Drawing.HyperLinkColor.HyperlinkColor <ahyp:hlinkClr></description></item> /// <item><description>DocumentFormat.OpenXml.Office2013.Word.Drawing.WebVideoProperty <wp15:webVideoPr></description></item> /// <item><description>DocumentFormat.OpenXml.Office2013.Theme.ThemeFamily <thm15:themeFamily></description></item> /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.BackgroundProperties <a15:backgroundPr></description></item> @@ -16951,9 +16964,13 @@ public ExtensionList? ExtensionList /// <item><description>DocumentFormat.OpenXml.Drawing.Diagrams.StyleDefinition <dgm:styleDef></description></item> /// <item><description>DocumentFormat.OpenXml.Drawing.Diagrams.StyleDefinitionHeader <dgm:styleDefHdr></description></item> /// <item><description>DocumentFormat.OpenXml.Drawing.Diagrams.StyleDefinitionHeaderList <dgm:styleDefHdrLst></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2019.Drawing.Diagram12.ShapeProperties <dgm1612:spPr></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2019.Drawing.Diagram12.TextListStyleType <dgm1612:lstStyle></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2019.Drawing.Diagram11.NumberDiagramInfoList <dgm1611:autoBuNodeInfoLst></description></item> /// <item><description>DocumentFormat.OpenXml.Drawing.Charts.ChartSpace <c:chartSpace></description></item> /// <item><description>DocumentFormat.OpenXml.Drawing.Charts.UserShapes <c:userShapes></description></item> /// <item><description>DocumentFormat.OpenXml.Drawing.Charts.ChartReference <c:chart></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2019.Drawing.Chart.DataDisplayOptions16 <c16r3:dataDisplayOptions16></description></item> /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.PivotSource <c15:pivotSource></description></item> /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.NumberingFormat <c15:numFmt></description></item> /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShapeProperties <c15:spPr></description></item> @@ -17219,6 +17236,15 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) builder.AddChild<ThemeManager>(); builder.AddChild<Table>(); builder.AddChild<TableStyleList>(); + builder.AddChild<DocumentFormat.OpenXml.Office2019.Drawing.PictureAttributionSourceURL>(); + builder.AddChild<DocumentFormat.OpenXml.Office2019.Drawing.SVG.SVGBlip>(); + builder.AddChild<DocumentFormat.OpenXml.Office2019.Drawing.Decorative>(); + builder.AddChild<DocumentFormat.OpenXml.Office2016.Drawing.CreationId>(); + builder.AddChild<DocumentFormat.OpenXml.Office2016.Drawing.PredecessorDrawingElementReference>(); + builder.AddChild<DocumentFormat.OpenXml.Office2016.Drawing.ConnectableReferences>(); + builder.AddChild<DocumentFormat.OpenXml.Office2016.Drawing.RowIdIdentifier>(); + builder.AddChild<DocumentFormat.OpenXml.Office2016.Drawing.ColIdIdentifier>(); + builder.AddChild<DocumentFormat.OpenXml.Office2019.Drawing.HyperLinkColor.HyperlinkColor>(); builder.AddChild<DocumentFormat.OpenXml.Office2013.Word.Drawing.WebVideoProperty>(); builder.AddChild<DocumentFormat.OpenXml.Office2013.Theme.ThemeFamily>(); builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.BackgroundProperties>(); @@ -17253,9 +17279,13 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) builder.AddChild<DocumentFormat.OpenXml.Drawing.Diagrams.StyleDefinition>(); builder.AddChild<DocumentFormat.OpenXml.Drawing.Diagrams.StyleDefinitionHeader>(); builder.AddChild<DocumentFormat.OpenXml.Drawing.Diagrams.StyleDefinitionHeaderList>(); + builder.AddChild<DocumentFormat.OpenXml.Office2019.Drawing.Diagram12.ShapeProperties>(); + builder.AddChild<DocumentFormat.OpenXml.Office2019.Drawing.Diagram12.TextListStyleType>(); + builder.AddChild<DocumentFormat.OpenXml.Office2019.Drawing.Diagram11.NumberDiagramInfoList>(); builder.AddChild<DocumentFormat.OpenXml.Drawing.Charts.ChartSpace>(); builder.AddChild<DocumentFormat.OpenXml.Drawing.Charts.UserShapes>(); builder.AddChild<DocumentFormat.OpenXml.Drawing.Charts.ChartReference>(); + builder.AddChild<DocumentFormat.OpenXml.Office2019.Drawing.Chart.DataDisplayOptions16>(); builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.PivotSource>(); builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.NumberingFormat>(); builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.Chart.ShapeProperties>(); @@ -18075,7 +18105,7 @@ public NonVisualDrawingProperties(string outerXml) : base(outerXml) } /// <summary> - /// <para>id</para> + /// <para>Application defined unique identifier.</para> /// <para>Represents the following attribute in the schema: id</para> /// </summary> @@ -18091,7 +18121,7 @@ public UInt32Value? Id } /// <summary> - /// <para>name</para> + /// <para>Name compatible with Object Model (non-unique).</para> /// <para>Represents the following attribute in the schema: name</para> /// </summary> @@ -18107,7 +18137,7 @@ public StringValue? Name } /// <summary> - /// <para>descr</para> + /// <para>Description of the drawing element.</para> /// <para>Represents the following attribute in the schema: descr</para> /// </summary> @@ -18123,7 +18153,7 @@ public StringValue? Description } /// <summary> - /// <para>hidden</para> + /// <para>Flag determining to show or hide this element.</para> /// <para>Represents the following attribute in the schema: hidden</para> /// </summary> @@ -18139,7 +18169,7 @@ public BooleanValue? Hidden } /// <summary> - /// <para>title</para> + /// <para>Title</para> /// <para>Represents the following attribute in the schema: title</para> /// </summary> @@ -18182,7 +18212,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) } /// <summary> - /// <para>HyperlinkOnClick.</para> + /// <para>Hyperlink associated with clicking or selecting the element..</para> /// <para>Represents the following element tag in the schema: a:hlinkClick.</para> /// </summary> /// <remark> @@ -18195,7 +18225,7 @@ public HyperlinkOnClick? HyperlinkOnClick } /// <summary> - /// <para>HyperlinkOnHover.</para> + /// <para>Hyperlink associated with hovering over the element..</para> /// <para>Represents the following element tag in the schema: a:hlinkHover.</para> /// </summary> /// <remark> @@ -18208,7 +18238,7 @@ public HyperlinkOnHover? HyperlinkOnHover } /// <summary> - /// <para>NonVisualDrawingPropertiesExtensionList.</para> + /// <para>Future extension.</para> /// <para>Represents the following element tag in the schema: a:extLst.</para> /// </summary> /// <remark> @@ -32808,370 +32838,223 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) } /// <summary> - /// <para>Defines the HyperlinkOnClick Class.</para> + /// <para>Defines the PictureLocks Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is a:hlinkClick.</para> + /// <para>When the object is serialized out as xml, it's qualified name is a:picLocks.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>HyperlinkSound <a:snd></description></item> /// <item><description>ExtensionList <a:extLst></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(10, "hlinkClick")] + [SchemaAttr(10, "picLocks")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class HyperlinkOnClick : HyperlinkType + public partial class PictureLocks : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the HyperlinkOnClick class. + /// Initializes a new instance of the PictureLocks class. /// </summary> - public HyperlinkOnClick() : base() + public PictureLocks() : base() { } /// <summary> - /// Initializes a new instance of the HyperlinkOnClick class with the specified child elements. + /// Initializes a new instance of the PictureLocks class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public HyperlinkOnClick(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public PictureLocks(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the HyperlinkOnClick class with the specified child elements. + /// Initializes a new instance of the PictureLocks class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public HyperlinkOnClick(params OpenXmlElement[] childElements) : base(childElements) + public PictureLocks(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the HyperlinkOnClick class from outer XML. + /// Initializes a new instance of the PictureLocks class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public HyperlinkOnClick(string outerXml) : base(outerXml) - { - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.SetSchema(10, "hlinkClick"); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.HyperlinkSound), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.ExtensionList), 0, 1) - }; - builder.AddConstraint(new AttributeCannotOmitConstraint(0 /*r:id*/)); - builder.AddConstraint(new RelationshipExistConstraint(0 /*r:id*/)); - } - - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<HyperlinkOnClick>(deep); - } - - /// <summary> - /// <para>Defines the HyperlinkOnHover Class.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is a:hlinkHover.</para> - /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>HyperlinkSound <a:snd></description></item> - /// <item><description>ExtensionList <a:extLst></description></item> - /// </list> - /// </remark> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(10, "hlinkHover")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class HyperlinkOnHover : HyperlinkType - { - /// <summary> - /// Initializes a new instance of the HyperlinkOnHover class. - /// </summary> - public HyperlinkOnHover() : base() - { - } - - /// <summary> - /// Initializes a new instance of the HyperlinkOnHover class with the specified child elements. - /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public HyperlinkOnHover(IEnumerable<OpenXmlElement> childElements) : base(childElements) - { - } - - /// <summary> - /// Initializes a new instance of the HyperlinkOnHover class with the specified child elements. - /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public HyperlinkOnHover(params OpenXmlElement[] childElements) : base(childElements) + public PictureLocks(string outerXml) : base(outerXml) { } /// <summary> - /// Initializes a new instance of the HyperlinkOnHover class from outer XML. + /// <para>Disallow Shape Grouping</para> + /// <para>Represents the following attribute in the schema: noGrp</para> /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public HyperlinkOnHover(string outerXml) : base(outerXml) - { - } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.SetSchema(10, "hlinkHover"); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.HyperlinkSound), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.ExtensionList), 0, 1) - }; - builder.AddConstraint(new AttributeCannotOmitConstraint(0 /*r:id*/)); - } - - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<HyperlinkOnHover>(deep); - } - - /// <summary> - /// <para>Defines the HyperlinkOnMouseOver Class.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is a:hlinkMouseOver.</para> - /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>HyperlinkSound <a:snd></description></item> - /// <item><description>ExtensionList <a:extLst></description></item> - /// </list> - /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(10, "hlinkMouseOver")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class HyperlinkOnMouseOver : HyperlinkType - { - /// <summary> - /// Initializes a new instance of the HyperlinkOnMouseOver class. - /// </summary> - public HyperlinkOnMouseOver() : base() - { - } - /// <summary> - /// Initializes a new instance of the HyperlinkOnMouseOver class with the specified child elements. - /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public HyperlinkOnMouseOver(IEnumerable<OpenXmlElement> childElements) : base(childElements) - { - } + [SchemaAttr(0, "noGrp")] +#pragma warning restore CS0618 // Type or member is obsolete - /// <summary> - /// Initializes a new instance of the HyperlinkOnMouseOver class with the specified child elements. - /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public HyperlinkOnMouseOver(params OpenXmlElement[] childElements) : base(childElements) + public BooleanValue? NoGrouping { + get => GetAttribute<BooleanValue>(); + set => SetAttribute(value); } /// <summary> - /// Initializes a new instance of the HyperlinkOnMouseOver class from outer XML. + /// <para>Disallow Shape Selection</para> + /// <para>Represents the following attribute in the schema: noSelect</para> /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public HyperlinkOnMouseOver(string outerXml) : base(outerXml) - { - } - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.SetSchema(10, "hlinkMouseOver"); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.HyperlinkSound), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.ExtensionList), 0, 1) - }; - builder.AddConstraint(new AttributeCannotOmitConstraint(0 /*r:id*/)); - builder.AddConstraint(new RelationshipExistConstraint(0 /*r:id*/)); - } +#pragma warning disable CS0618 // Type or member is obsolete - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<HyperlinkOnMouseOver>(deep); - } + [SchemaAttr(0, "noSelect")] +#pragma warning restore CS0618 // Type or member is obsolete - /// <summary> - /// <para>Defines the HyperlinkType Class.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is :.</para> - /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>HyperlinkSound <a:snd></description></item> - /// <item><description>ExtensionList <a:extLst></description></item> - /// </list> - /// </remark> - public abstract partial class HyperlinkType : OpenXmlCompositeElement - { - /// <summary> - /// Initializes a new instance of the HyperlinkType class. - /// </summary> - protected HyperlinkType() : base() + public BooleanValue? NoSelection { + get => GetAttribute<BooleanValue>(); + set => SetAttribute(value); } /// <summary> - /// Initializes a new instance of the HyperlinkType class with the specified child elements. + /// <para>Disallow Shape Rotation</para> + /// <para>Represents the following attribute in the schema: noRot</para> /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - protected HyperlinkType(IEnumerable<OpenXmlElement> childElements) : base(childElements) - { - } - /// <summary> - /// Initializes a new instance of the HyperlinkType class with the specified child elements. - /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - protected HyperlinkType(params OpenXmlElement[] childElements) : base(childElements) - { - } +#pragma warning disable CS0618 // Type or member is obsolete - /// <summary> - /// Initializes a new instance of the HyperlinkType class from outer XML. - /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - protected HyperlinkType(string outerXml) : base(outerXml) + [SchemaAttr(0, "noRot")] +#pragma warning restore CS0618 // Type or member is obsolete + + public BooleanValue? NoRotation { + get => GetAttribute<BooleanValue>(); + set => SetAttribute(value); } /// <summary> - /// <para>Drawing Object Hyperlink Target</para> - /// <para>Represents the following attribute in the schema: r:id</para> + /// <para>Disallow Aspect Ratio Change</para> + /// <para>Represents the following attribute in the schema: noChangeAspect</para> /// </summary> - /// <remark> - /// xmlns:r=http://schemas.openxmlformats.org/officeDocument/2006/relationships - /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(19, "id")] + [SchemaAttr(0, "noChangeAspect")] #pragma warning restore CS0618 // Type or member is obsolete - public StringValue? Id + public BooleanValue? NoChangeAspect { - get => GetAttribute<StringValue>(); + get => GetAttribute<BooleanValue>(); set => SetAttribute(value); } /// <summary> - /// <para>Invalid URL</para> - /// <para>Represents the following attribute in the schema: invalidUrl</para> + /// <para>Disallow Shape Movement</para> + /// <para>Represents the following attribute in the schema: noMove</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(0, "invalidUrl")] + [SchemaAttr(0, "noMove")] #pragma warning restore CS0618 // Type or member is obsolete - public StringValue? InvalidUrl + public BooleanValue? NoMove { - get => GetAttribute<StringValue>(); + get => GetAttribute<BooleanValue>(); set => SetAttribute(value); } /// <summary> - /// <para>Action Setting</para> - /// <para>Represents the following attribute in the schema: action</para> + /// <para>Disallow Shape Resize</para> + /// <para>Represents the following attribute in the schema: noResize</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(0, "action")] + [SchemaAttr(0, "noResize")] #pragma warning restore CS0618 // Type or member is obsolete - public StringValue? Action + public BooleanValue? NoResize { - get => GetAttribute<StringValue>(); + get => GetAttribute<BooleanValue>(); set => SetAttribute(value); } /// <summary> - /// <para>Target Frame</para> - /// <para>Represents the following attribute in the schema: tgtFrame</para> + /// <para>Disallow Shape Point Editing</para> + /// <para>Represents the following attribute in the schema: noEditPoints</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(0, "tgtFrame")] + [SchemaAttr(0, "noEditPoints")] #pragma warning restore CS0618 // Type or member is obsolete - public StringValue? TargetFrame + public BooleanValue? NoEditPoints { - get => GetAttribute<StringValue>(); + get => GetAttribute<BooleanValue>(); set => SetAttribute(value); } /// <summary> - /// <para>Hyperlink Tooltip</para> - /// <para>Represents the following attribute in the schema: tooltip</para> + /// <para>Disallow Showing Adjust Handles</para> + /// <para>Represents the following attribute in the schema: noAdjustHandles</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(0, "tooltip")] + [SchemaAttr(0, "noAdjustHandles")] #pragma warning restore CS0618 // Type or member is obsolete - public StringValue? Tooltip + public BooleanValue? NoAdjustHandles { - get => GetAttribute<StringValue>(); + get => GetAttribute<BooleanValue>(); set => SetAttribute(value); } /// <summary> - /// <para>Add Hyperlink to Page History</para> - /// <para>Represents the following attribute in the schema: history</para> + /// <para>Disallow Arrowhead Changes</para> + /// <para>Represents the following attribute in the schema: noChangeArrowheads</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(0, "history")] + [SchemaAttr(0, "noChangeArrowheads")] #pragma warning restore CS0618 // Type or member is obsolete - public BooleanValue? History + public BooleanValue? NoChangeArrowheads { get => GetAttribute<BooleanValue>(); set => SetAttribute(value); } /// <summary> - /// <para>Highlight Click</para> - /// <para>Represents the following attribute in the schema: highlightClick</para> + /// <para>Disallow Shape Type Change</para> + /// <para>Represents the following attribute in the schema: noChangeShapeType</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(0, "highlightClick")] + [SchemaAttr(0, "noChangeShapeType")] #pragma warning restore CS0618 // Type or member is obsolete - public BooleanValue? HighlightClick + public BooleanValue? NoChangeShapeType { get => GetAttribute<BooleanValue>(); set => SetAttribute(value); } /// <summary> - /// <para>End Sounds</para> - /// <para>Represents the following attribute in the schema: endSnd</para> + /// <para>Disallow Crop Changes</para> + /// <para>Represents the following attribute in the schema: noCrop</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(0, "endSnd")] + [SchemaAttr(0, "noCrop")] #pragma warning restore CS0618 // Type or member is obsolete - public BooleanValue? EndSound + public BooleanValue? NoCrop { get => GetAttribute<BooleanValue>(); set => SetAttribute(value); @@ -33180,30 +33063,24 @@ public BooleanValue? EndSound internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.AddChild<HyperlinkSound>(); + builder.SetSchema(10, "picLocks"); builder.AddChild<ExtensionList>(); - builder.AddElement<HyperlinkType>() -.AddAttribute(19, "id", a => a.Id) -.AddAttribute(0, "invalidUrl", a => a.InvalidUrl) -.AddAttribute(0, "action", a => a.Action) -.AddAttribute(0, "tgtFrame", a => a.TargetFrame) -.AddAttribute(0, "tooltip", a => a.Tooltip) -.AddAttribute(0, "history", a => a.History) -.AddAttribute(0, "highlightClick", a => a.HighlightClick) -.AddAttribute(0, "endSnd", a => a.EndSound); - } - - /// <summary> - /// <para>Hyperlink Sound.</para> - /// <para>Represents the following element tag in the schema: a:snd.</para> - /// </summary> - /// <remark> - /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main - /// </remark> - public HyperlinkSound? HyperlinkSound - { - get => GetElement<HyperlinkSound>(); - set => SetElement(value); + builder.AddElement<PictureLocks>() +.AddAttribute(0, "noGrp", a => a.NoGrouping) +.AddAttribute(0, "noSelect", a => a.NoSelection) +.AddAttribute(0, "noRot", a => a.NoRotation) +.AddAttribute(0, "noChangeAspect", a => a.NoChangeAspect) +.AddAttribute(0, "noMove", a => a.NoMove) +.AddAttribute(0, "noResize", a => a.NoResize) +.AddAttribute(0, "noEditPoints", a => a.NoEditPoints) +.AddAttribute(0, "noAdjustHandles", a => a.NoAdjustHandles) +.AddAttribute(0, "noChangeArrowheads", a => a.NoChangeArrowheads) +.AddAttribute(0, "noChangeShapeType", a => a.NoChangeShapeType) +.AddAttribute(0, "noCrop", a => a.NoCrop); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.ExtensionList), 0, 1) + }; } /// <summary> @@ -33218,52 +33095,55 @@ public ExtensionList? ExtensionList get => GetElement<ExtensionList>(); set => SetElement(value); } + + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<PictureLocks>(deep); } /// <summary> - /// <para>Defines the NonVisualDrawingPropertiesExtensionList Class.</para> + /// <para>Defines the NonVisualPicturePropertiesExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is a:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>NonVisualDrawingPropertiesExtension <a:ext></description></item> + /// <item><description>NonVisualPicturePropertiesExtension <a:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(10, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class NonVisualDrawingPropertiesExtensionList : OpenXmlCompositeElement + public partial class NonVisualPicturePropertiesExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the NonVisualDrawingPropertiesExtensionList class. + /// Initializes a new instance of the NonVisualPicturePropertiesExtensionList class. /// </summary> - public NonVisualDrawingPropertiesExtensionList() : base() + public NonVisualPicturePropertiesExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the NonVisualDrawingPropertiesExtensionList class with the specified child elements. + /// Initializes a new instance of the NonVisualPicturePropertiesExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public NonVisualDrawingPropertiesExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public NonVisualPicturePropertiesExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the NonVisualDrawingPropertiesExtensionList class with the specified child elements. + /// Initializes a new instance of the NonVisualPicturePropertiesExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public NonVisualDrawingPropertiesExtensionList(params OpenXmlElement[] childElements) : base(childElements) + public NonVisualPicturePropertiesExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the NonVisualDrawingPropertiesExtensionList class from outer XML. + /// Initializes a new instance of the NonVisualPicturePropertiesExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public NonVisualDrawingPropertiesExtensionList(string outerXml) : base(outerXml) + public NonVisualPicturePropertiesExtensionList(string outerXml) : base(outerXml) { } @@ -33271,62 +33151,63 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(10, "extLst"); - builder.AddChild<NonVisualDrawingPropertiesExtension>(); + builder.AddChild<NonVisualPicturePropertiesExtension>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.NonVisualDrawingPropertiesExtension), 0, 0) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.NonVisualPicturePropertiesExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<NonVisualDrawingPropertiesExtensionList>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<NonVisualPicturePropertiesExtensionList>(deep); } /// <summary> - /// <para>Defines the NonVisualDrawingPropertiesExtension Class.</para> + /// <para>Defines the NonVisualPicturePropertiesExtension Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is a:ext.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2010.Drawing.CompatExtension <a14:compatExt></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.BackgroundProperties <a15:backgroundPr></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2010.Drawing.CameraTool <a14:cameraTool></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.SignatureLine <a15:signatureLine></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.ObjectProperties <a15:objectPr></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(10, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class NonVisualDrawingPropertiesExtension : OpenXmlCompositeElement + public partial class NonVisualPicturePropertiesExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the NonVisualDrawingPropertiesExtension class. + /// Initializes a new instance of the NonVisualPicturePropertiesExtension class. /// </summary> - public NonVisualDrawingPropertiesExtension() : base() + public NonVisualPicturePropertiesExtension() : base() { } /// <summary> - /// Initializes a new instance of the NonVisualDrawingPropertiesExtension class with the specified child elements. + /// Initializes a new instance of the NonVisualPicturePropertiesExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public NonVisualDrawingPropertiesExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public NonVisualPicturePropertiesExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the NonVisualDrawingPropertiesExtension class with the specified child elements. + /// Initializes a new instance of the NonVisualPicturePropertiesExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public NonVisualDrawingPropertiesExtension(params OpenXmlElement[] childElements) : base(childElements) + public NonVisualPicturePropertiesExtension(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the NonVisualDrawingPropertiesExtension class from outer XML. + /// Initializes a new instance of the NonVisualPicturePropertiesExtension class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public NonVisualDrawingPropertiesExtension(string outerXml) : base(outerXml) + public NonVisualPicturePropertiesExtension(string outerXml) : base(outerXml) { } @@ -33350,9 +33231,10 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(10, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2010.Drawing.CompatExtension>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.BackgroundProperties>(); - builder.AddElement<NonVisualDrawingPropertiesExtension>() + builder.AddChild<DocumentFormat.OpenXml.Office2010.Drawing.CameraTool>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.SignatureLine>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.ObjectProperties>(); + builder.AddElement<NonVisualPicturePropertiesExtension>() .AddAttribute(0, "uri", a => a.Uri, aBuilder => { aBuilder.AddValidator(RequiredValidator.Instance); @@ -33360,20 +33242,21 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) }); builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.Drawing.CompatExtension), 1, 1, version: FileFormatVersions.Office2010), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.BackgroundProperties), 1, 1, version: FileFormatVersions.Office2010), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.Drawing.CameraTool), 1, 1, version: FileFormatVersions.Office2010), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.SignatureLine), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.ObjectProperties), 1, 1, version: FileFormatVersions.Office2013), new AnyParticle(0, 1) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<NonVisualDrawingPropertiesExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<NonVisualPicturePropertiesExtension>(deep); } /// <summary> - /// <para>Defines the PictureLocks Class.</para> + /// <para>Defines the GroupShapeLocks Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is a:picLocks.</para> + /// <para>When the object is serialized out as xml, it's qualified name is a:grpSpLocks.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> @@ -33382,38 +33265,38 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(10, "picLocks")] + [SchemaAttr(10, "grpSpLocks")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class PictureLocks : OpenXmlCompositeElement + public partial class GroupShapeLocks : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the PictureLocks class. + /// Initializes a new instance of the GroupShapeLocks class. /// </summary> - public PictureLocks() : base() + public GroupShapeLocks() : base() { } /// <summary> - /// Initializes a new instance of the PictureLocks class with the specified child elements. + /// Initializes a new instance of the GroupShapeLocks class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public PictureLocks(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public GroupShapeLocks(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the PictureLocks class with the specified child elements. + /// Initializes a new instance of the GroupShapeLocks class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public PictureLocks(params OpenXmlElement[] childElements) : base(childElements) + public GroupShapeLocks(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the PictureLocks class from outer XML. + /// Initializes a new instance of the GroupShapeLocks class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public PictureLocks(string outerXml) : base(outerXml) + public GroupShapeLocks(string outerXml) : base(outerXml) { } @@ -33433,6 +33316,22 @@ public BooleanValue? NoGrouping set => SetAttribute(value); } + /// <summary> + /// <para>Disallow Shape Ungrouping</para> + /// <para>Represents the following attribute in the schema: noUngrp</para> + /// </summary> + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "noUngrp")] +#pragma warning restore CS0618 // Type or member is obsolete + + public BooleanValue? NoUngrouping + { + get => GetAttribute<BooleanValue>(); + set => SetAttribute(value); + } + /// <summary> /// <para>Disallow Shape Selection</para> /// <para>Represents the following attribute in the schema: noSelect</para> @@ -33482,7 +33381,7 @@ public BooleanValue? NoChangeAspect } /// <summary> - /// <para>Disallow Shape Movement</para> + /// <para>Disallow Moving Shape</para> /// <para>Represents the following attribute in the schema: noMove</para> /// </summary> @@ -33498,7 +33397,7 @@ public BooleanValue? NoMove } /// <summary> - /// <para>Disallow Shape Resize</para> + /// <para>Disallow Shape Resizing</para> /// <para>Represents the following attribute in the schema: noResize</para> /// </summary> @@ -33513,109 +33412,210 @@ public BooleanValue? NoResize set => SetAttribute(value); } + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(10, "grpSpLocks"); + builder.AddChild<ExtensionList>(); + builder.AddElement<GroupShapeLocks>() +.AddAttribute(0, "noGrp", a => a.NoGrouping) +.AddAttribute(0, "noUngrp", a => a.NoUngrouping) +.AddAttribute(0, "noSelect", a => a.NoSelection) +.AddAttribute(0, "noRot", a => a.NoRotation) +.AddAttribute(0, "noChangeAspect", a => a.NoChangeAspect) +.AddAttribute(0, "noMove", a => a.NoMove) +.AddAttribute(0, "noResize", a => a.NoResize); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.ExtensionList), 0, 1) + }; + } + /// <summary> - /// <para>Disallow Shape Point Editing</para> - /// <para>Represents the following attribute in the schema: noEditPoints</para> + /// <para>ExtensionList.</para> + /// <para>Represents the following element tag in the schema: a:extLst.</para> /// </summary> + /// <remark> + /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main + /// </remark> + public ExtensionList? ExtensionList + { + get => GetElement<ExtensionList>(); + set => SetElement(value); + } -#pragma warning disable CS0618 // Type or member is obsolete + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<GroupShapeLocks>(deep); + } - [SchemaAttr(0, "noEditPoints")] + /// <summary> + /// <para>Defines the NonVisualGroupDrawingShapePropsExtensionList Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is a:extLst.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>NonVisualGroupDrawingShapePropsExtension <a:ext></description></item> + /// </list> + /// </remark> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(10, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - - public BooleanValue? NoEditPoints + public partial class NonVisualGroupDrawingShapePropsExtensionList : OpenXmlCompositeElement + { + /// <summary> + /// Initializes a new instance of the NonVisualGroupDrawingShapePropsExtensionList class. + /// </summary> + public NonVisualGroupDrawingShapePropsExtensionList() : base() { - get => GetAttribute<BooleanValue>(); - set => SetAttribute(value); } /// <summary> - /// <para>Disallow Showing Adjust Handles</para> - /// <para>Represents the following attribute in the schema: noAdjustHandles</para> + /// Initializes a new instance of the NonVisualGroupDrawingShapePropsExtensionList class with the specified child elements. /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "noAdjustHandles")] -#pragma warning restore CS0618 // Type or member is obsolete - - public BooleanValue? NoAdjustHandles + /// <param name="childElements">Specifies the child elements.</param> + public NonVisualGroupDrawingShapePropsExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { - get => GetAttribute<BooleanValue>(); - set => SetAttribute(value); } /// <summary> - /// <para>Disallow Arrowhead Changes</para> - /// <para>Represents the following attribute in the schema: noChangeArrowheads</para> + /// Initializes a new instance of the NonVisualGroupDrawingShapePropsExtensionList class with the specified child elements. /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "noChangeArrowheads")] -#pragma warning restore CS0618 // Type or member is obsolete - - public BooleanValue? NoChangeArrowheads + /// <param name="childElements">Specifies the child elements.</param> + public NonVisualGroupDrawingShapePropsExtensionList(params OpenXmlElement[] childElements) : base(childElements) { - get => GetAttribute<BooleanValue>(); - set => SetAttribute(value); } /// <summary> - /// <para>Disallow Shape Type Change</para> - /// <para>Represents the following attribute in the schema: noChangeShapeType</para> + /// Initializes a new instance of the NonVisualGroupDrawingShapePropsExtensionList class from outer XML. /// </summary> + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public NonVisualGroupDrawingShapePropsExtensionList(string outerXml) : base(outerXml) + { + } -#pragma warning disable CS0618 // Type or member is obsolete + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(10, "extLst"); + builder.AddChild<NonVisualGroupDrawingShapePropsExtension>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.NonVisualGroupDrawingShapePropsExtension), 0, 0) + }; + } - [SchemaAttr(0, "noChangeShapeType")] -#pragma warning restore CS0618 // Type or member is obsolete + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<NonVisualGroupDrawingShapePropsExtensionList>(deep); + } - public BooleanValue? NoChangeShapeType + /// <summary> + /// <para>Defines the ObjectDefaults Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is a:objectDefaults.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>ShapeDefault <a:spDef></description></item> + /// <item><description>LineDefault <a:lnDef></description></item> + /// <item><description>TextDefault <a:txDef></description></item> + /// <item><description>ExtensionList <a:extLst></description></item> + /// </list> + /// </remark> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(10, "objectDefaults")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class ObjectDefaults : OpenXmlCompositeElement + { + /// <summary> + /// Initializes a new instance of the ObjectDefaults class. + /// </summary> + public ObjectDefaults() : base() { - get => GetAttribute<BooleanValue>(); - set => SetAttribute(value); } /// <summary> - /// <para>Disallow Crop Changes</para> - /// <para>Represents the following attribute in the schema: noCrop</para> + /// Initializes a new instance of the ObjectDefaults class with the specified child elements. /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public ObjectDefaults(IEnumerable<OpenXmlElement> childElements) : base(childElements) + { + } -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "noCrop")] -#pragma warning restore CS0618 // Type or member is obsolete + /// <summary> + /// Initializes a new instance of the ObjectDefaults class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public ObjectDefaults(params OpenXmlElement[] childElements) : base(childElements) + { + } - public BooleanValue? NoCrop + /// <summary> + /// Initializes a new instance of the ObjectDefaults class from outer XML. + /// </summary> + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public ObjectDefaults(string outerXml) : base(outerXml) { - get => GetAttribute<BooleanValue>(); - set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(10, "picLocks"); + builder.SetSchema(10, "objectDefaults"); + builder.AddChild<ShapeDefault>(); + builder.AddChild<LineDefault>(); + builder.AddChild<TextDefault>(); builder.AddChild<ExtensionList>(); - builder.AddElement<PictureLocks>() -.AddAttribute(0, "noGrp", a => a.NoGrouping) -.AddAttribute(0, "noSelect", a => a.NoSelection) -.AddAttribute(0, "noRot", a => a.NoRotation) -.AddAttribute(0, "noChangeAspect", a => a.NoChangeAspect) -.AddAttribute(0, "noMove", a => a.NoMove) -.AddAttribute(0, "noResize", a => a.NoResize) -.AddAttribute(0, "noEditPoints", a => a.NoEditPoints) -.AddAttribute(0, "noAdjustHandles", a => a.NoAdjustHandles) -.AddAttribute(0, "noChangeArrowheads", a => a.NoChangeArrowheads) -.AddAttribute(0, "noChangeShapeType", a => a.NoChangeShapeType) -.AddAttribute(0, "noCrop", a => a.NoCrop); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.ShapeDefault), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.LineDefault), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.TextDefault), 0, 1), new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.ExtensionList), 0, 1) }; } + /// <summary> + /// <para>Shape Default.</para> + /// <para>Represents the following element tag in the schema: a:spDef.</para> + /// </summary> + /// <remark> + /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main + /// </remark> + public ShapeDefault? ShapeDefault + { + get => GetElement<ShapeDefault>(); + set => SetElement(value); + } + + /// <summary> + /// <para>Line Default.</para> + /// <para>Represents the following element tag in the schema: a:lnDef.</para> + /// </summary> + /// <remark> + /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main + /// </remark> + public LineDefault? LineDefault + { + get => GetElement<LineDefault>(); + set => SetElement(value); + } + + /// <summary> + /// <para>Text Default.</para> + /// <para>Represents the following element tag in the schema: a:txDef.</para> + /// </summary> + /// <remark> + /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main + /// </remark> + public TextDefault? TextDefault + { + get => GetElement<TextDefault>(); + set => SetElement(value); + } + /// <summary> /// <para>ExtensionList.</para> /// <para>Represents the following element tag in the schema: a:extLst.</para> @@ -33630,53 +33630,177 @@ public ExtensionList? ExtensionList } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<PictureLocks>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<ObjectDefaults>(deep); } /// <summary> - /// <para>Defines the NonVisualPicturePropertiesExtensionList Class.</para> + /// <para>Defines the ExtraColorSchemeList Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is a:extraClrSchemeLst.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>ExtraColorScheme <a:extraClrScheme></description></item> + /// </list> + /// </remark> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(10, "extraClrSchemeLst")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class ExtraColorSchemeList : OpenXmlCompositeElement + { + /// <summary> + /// Initializes a new instance of the ExtraColorSchemeList class. + /// </summary> + public ExtraColorSchemeList() : base() + { + } + + /// <summary> + /// Initializes a new instance of the ExtraColorSchemeList class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public ExtraColorSchemeList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + { + } + + /// <summary> + /// Initializes a new instance of the ExtraColorSchemeList class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public ExtraColorSchemeList(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// <summary> + /// Initializes a new instance of the ExtraColorSchemeList class from outer XML. + /// </summary> + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public ExtraColorSchemeList(string outerXml) : base(outerXml) + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(10, "extraClrSchemeLst"); + builder.AddChild<ExtraColorScheme>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.ExtraColorScheme), 0, 0) + }; + } + + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<ExtraColorSchemeList>(deep); + } + + /// <summary> + /// <para>Defines the CustomColorList Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is a:custClrLst.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>CustomColor <a:custClr></description></item> + /// </list> + /// </remark> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(10, "custClrLst")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class CustomColorList : OpenXmlCompositeElement + { + /// <summary> + /// Initializes a new instance of the CustomColorList class. + /// </summary> + public CustomColorList() : base() + { + } + + /// <summary> + /// Initializes a new instance of the CustomColorList class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public CustomColorList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + { + } + + /// <summary> + /// Initializes a new instance of the CustomColorList class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public CustomColorList(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// <summary> + /// Initializes a new instance of the CustomColorList class from outer XML. + /// </summary> + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public CustomColorList(string outerXml) : base(outerXml) + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(10, "custClrLst"); + builder.AddChild<CustomColor>(); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.CustomColor), 0, 0) + }; + } + + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<CustomColorList>(deep); + } + + /// <summary> + /// <para>Defines the OfficeStyleSheetExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is a:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>NonVisualPicturePropertiesExtension <a:ext></description></item> + /// <item><description>OfficeStyleSheetExtension <a:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(10, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class NonVisualPicturePropertiesExtensionList : OpenXmlCompositeElement + public partial class OfficeStyleSheetExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the NonVisualPicturePropertiesExtensionList class. + /// Initializes a new instance of the OfficeStyleSheetExtensionList class. /// </summary> - public NonVisualPicturePropertiesExtensionList() : base() + public OfficeStyleSheetExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the NonVisualPicturePropertiesExtensionList class with the specified child elements. + /// Initializes a new instance of the OfficeStyleSheetExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public NonVisualPicturePropertiesExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public OfficeStyleSheetExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the NonVisualPicturePropertiesExtensionList class with the specified child elements. + /// Initializes a new instance of the OfficeStyleSheetExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public NonVisualPicturePropertiesExtensionList(params OpenXmlElement[] childElements) : base(childElements) + public OfficeStyleSheetExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the NonVisualPicturePropertiesExtensionList class from outer XML. + /// Initializes a new instance of the OfficeStyleSheetExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public NonVisualPicturePropertiesExtensionList(string outerXml) : base(outerXml) + public OfficeStyleSheetExtensionList(string outerXml) : base(outerXml) { } @@ -33684,262 +33808,382 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(10, "extLst"); - builder.AddChild<NonVisualPicturePropertiesExtension>(); + builder.AddChild<OfficeStyleSheetExtension>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.NonVisualPicturePropertiesExtension), 0, 0) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.OfficeStyleSheetExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<NonVisualPicturePropertiesExtensionList>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<OfficeStyleSheetExtensionList>(deep); } /// <summary> - /// <para>Defines the NonVisualPicturePropertiesExtension Class.</para> + /// <para>Defines the HyperlinkOnClick Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is a:ext.</para> + /// <para>When the object is serialized out as xml, it's qualified name is a:hlinkClick.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2010.Drawing.CameraTool <a14:cameraTool></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.SignatureLine <a15:signatureLine></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.ObjectProperties <a15:objectPr></description></item> + /// <item><description>HyperlinkSound <a:snd></description></item> + /// <item><description>HyperlinkExtensionList <a:extLst></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(10, "ext")] + [SchemaAttr(10, "hlinkClick")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class NonVisualPicturePropertiesExtension : OpenXmlCompositeElement + public partial class HyperlinkOnClick : HyperlinkType { /// <summary> - /// Initializes a new instance of the NonVisualPicturePropertiesExtension class. + /// Initializes a new instance of the HyperlinkOnClick class. /// </summary> - public NonVisualPicturePropertiesExtension() : base() + public HyperlinkOnClick() : base() { } /// <summary> - /// Initializes a new instance of the NonVisualPicturePropertiesExtension class with the specified child elements. + /// Initializes a new instance of the HyperlinkOnClick class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public NonVisualPicturePropertiesExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public HyperlinkOnClick(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the NonVisualPicturePropertiesExtension class with the specified child elements. + /// Initializes a new instance of the HyperlinkOnClick class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public NonVisualPicturePropertiesExtension(params OpenXmlElement[] childElements) : base(childElements) + public HyperlinkOnClick(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the NonVisualPicturePropertiesExtension class from outer XML. + /// Initializes a new instance of the HyperlinkOnClick class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public NonVisualPicturePropertiesExtension(string outerXml) : base(outerXml) + public HyperlinkOnClick(string outerXml) : base(outerXml) { } + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(10, "hlinkClick"); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.HyperlinkSound), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.HyperlinkExtensionList), 0, 1) + }; + builder.AddConstraint(new AttributeCannotOmitConstraint(0 /*r:id*/)); + builder.AddConstraint(new RelationshipExistConstraint(0 /*r:id*/)); + } + + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<HyperlinkOnClick>(deep); + } + + /// <summary> + /// <para>Defines the HyperlinkOnMouseOver Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is a:hlinkMouseOver.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>HyperlinkSound <a:snd></description></item> + /// <item><description>HyperlinkExtensionList <a:extLst></description></item> + /// </list> + /// </remark> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(10, "hlinkMouseOver")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class HyperlinkOnMouseOver : HyperlinkType + { /// <summary> - /// <para>URI</para> - /// <para>Represents the following attribute in the schema: uri</para> + /// Initializes a new instance of the HyperlinkOnMouseOver class. /// </summary> + public HyperlinkOnMouseOver() : base() + { + } -#pragma warning disable CS0618 // Type or member is obsolete + /// <summary> + /// Initializes a new instance of the HyperlinkOnMouseOver class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public HyperlinkOnMouseOver(IEnumerable<OpenXmlElement> childElements) : base(childElements) + { + } - [SchemaAttr(0, "uri")] -#pragma warning restore CS0618 // Type or member is obsolete + /// <summary> + /// Initializes a new instance of the HyperlinkOnMouseOver class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + public HyperlinkOnMouseOver(params OpenXmlElement[] childElements) : base(childElements) + { + } - public StringValue? Uri + /// <summary> + /// Initializes a new instance of the HyperlinkOnMouseOver class from outer XML. + /// </summary> + /// <param name="outerXml">Specifies the outer XML of the element.</param> + public HyperlinkOnMouseOver(string outerXml) : base(outerXml) { - get => GetAttribute<StringValue>(); - set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(10, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2010.Drawing.CameraTool>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.SignatureLine>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.ObjectProperties>(); - builder.AddElement<NonVisualPicturePropertiesExtension>() -.AddAttribute(0, "uri", a => a.Uri, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}); - builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + builder.SetSchema(10, "hlinkMouseOver"); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.Drawing.CameraTool), 1, 1, version: FileFormatVersions.Office2010), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.SignatureLine), 1, 1, version: FileFormatVersions.Office2013), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.ObjectProperties), 1, 1, version: FileFormatVersions.Office2013), - new AnyParticle(0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.HyperlinkSound), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.HyperlinkExtensionList), 0, 1) }; + builder.AddConstraint(new AttributeCannotOmitConstraint(0 /*r:id*/)); + builder.AddConstraint(new RelationshipExistConstraint(0 /*r:id*/)); } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<NonVisualPicturePropertiesExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<HyperlinkOnMouseOver>(deep); } /// <summary> - /// <para>Defines the GroupShapeLocks Class.</para> + /// <para>Defines the HyperlinkOnHover Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is a:grpSpLocks.</para> + /// <para>When the object is serialized out as xml, it's qualified name is a:hlinkHover.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>ExtensionList <a:extLst></description></item> + /// <item><description>HyperlinkSound <a:snd></description></item> + /// <item><description>HyperlinkExtensionList <a:extLst></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(10, "grpSpLocks")] + [SchemaAttr(10, "hlinkHover")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class GroupShapeLocks : OpenXmlCompositeElement + public partial class HyperlinkOnHover : HyperlinkType { /// <summary> - /// Initializes a new instance of the GroupShapeLocks class. + /// Initializes a new instance of the HyperlinkOnHover class. /// </summary> - public GroupShapeLocks() : base() + public HyperlinkOnHover() : base() { } /// <summary> - /// Initializes a new instance of the GroupShapeLocks class with the specified child elements. + /// Initializes a new instance of the HyperlinkOnHover class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public GroupShapeLocks(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public HyperlinkOnHover(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the GroupShapeLocks class with the specified child elements. + /// Initializes a new instance of the HyperlinkOnHover class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public GroupShapeLocks(params OpenXmlElement[] childElements) : base(childElements) + public HyperlinkOnHover(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the GroupShapeLocks class from outer XML. + /// Initializes a new instance of the HyperlinkOnHover class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public GroupShapeLocks(string outerXml) : base(outerXml) + public HyperlinkOnHover(string outerXml) : base(outerXml) + { + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(10, "hlinkHover"); + builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.HyperlinkSound), 0, 1), + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.HyperlinkExtensionList), 0, 1) + }; + builder.AddConstraint(new AttributeCannotOmitConstraint(0 /*r:id*/)); + } + + /// <inheritdoc/> + public override OpenXmlElement CloneNode(bool deep) => CloneImp<HyperlinkOnHover>(deep); + } + + /// <summary> + /// <para>Defines the HyperlinkType Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is :.</para> + /// </summary> + /// <remark> + /// <para>The following table lists the possible child types:</para> + /// <list type="bullet"> + /// <item><description>HyperlinkSound <a:snd></description></item> + /// <item><description>HyperlinkExtensionList <a:extLst></description></item> + /// </list> + /// </remark> + public abstract partial class HyperlinkType : OpenXmlCompositeElement + { + /// <summary> + /// Initializes a new instance of the HyperlinkType class. + /// </summary> + protected HyperlinkType() : base() { } /// <summary> - /// <para>Disallow Shape Grouping</para> - /// <para>Represents the following attribute in the schema: noGrp</para> + /// Initializes a new instance of the HyperlinkType class with the specified child elements. /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + protected HyperlinkType(IEnumerable<OpenXmlElement> childElements) : base(childElements) + { + } + + /// <summary> + /// Initializes a new instance of the HyperlinkType class with the specified child elements. + /// </summary> + /// <param name="childElements">Specifies the child elements.</param> + protected HyperlinkType(params OpenXmlElement[] childElements) : base(childElements) + { + } + + /// <summary> + /// Initializes a new instance of the HyperlinkType class from outer XML. + /// </summary> + /// <param name="outerXml">Specifies the outer XML of the element.</param> + protected HyperlinkType(string outerXml) : base(outerXml) + { + } + + /// <summary> + /// <para>relationship identifier to find target URI</para> + /// <para>Represents the following attribute in the schema: r:id</para> + /// </summary> + /// <remark> + /// xmlns:r=http://schemas.openxmlformats.org/officeDocument/2006/relationships + /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(0, "noGrp")] + [SchemaAttr(19, "id")] #pragma warning restore CS0618 // Type or member is obsolete - public BooleanValue? NoGrouping + public StringValue? Id { - get => GetAttribute<BooleanValue>(); + get => GetAttribute<StringValue>(); set => SetAttribute(value); } /// <summary> - /// <para>Disallow Shape Ungrouping</para> - /// <para>Represents the following attribute in the schema: noUngrp</para> + /// <para>In case the url is invalid so we can't create a relationship, we'll save it here, r:id will point to a NULL one</para> + /// <para>Represents the following attribute in the schema: invalidUrl</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(0, "noUngrp")] + [SchemaAttr(0, "invalidUrl")] #pragma warning restore CS0618 // Type or member is obsolete - public BooleanValue? NoUngrouping + public StringValue? InvalidUrl { - get => GetAttribute<BooleanValue>(); + get => GetAttribute<StringValue>(); set => SetAttribute(value); } /// <summary> - /// <para>Disallow Shape Selection</para> - /// <para>Represents the following attribute in the schema: noSelect</para> + /// <para>Action to take, it may still need r:id to specify an action target</para> + /// <para>Represents the following attribute in the schema: action</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(0, "noSelect")] + [SchemaAttr(0, "action")] #pragma warning restore CS0618 // Type or member is obsolete - public BooleanValue? NoSelection + public StringValue? Action { - get => GetAttribute<BooleanValue>(); + get => GetAttribute<StringValue>(); set => SetAttribute(value); } /// <summary> - /// <para>Disallow Shape Rotation</para> - /// <para>Represents the following attribute in the schema: noRot</para> + /// <para>target frame for navigating to the URI</para> + /// <para>Represents the following attribute in the schema: tgtFrame</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(0, "noRot")] + [SchemaAttr(0, "tgtFrame")] #pragma warning restore CS0618 // Type or member is obsolete - public BooleanValue? NoRotation + public StringValue? TargetFrame { - get => GetAttribute<BooleanValue>(); + get => GetAttribute<StringValue>(); set => SetAttribute(value); } /// <summary> - /// <para>Disallow Aspect Ratio Change</para> - /// <para>Represents the following attribute in the schema: noChangeAspect</para> + /// <para>tooltip for display</para> + /// <para>Represents the following attribute in the schema: tooltip</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(0, "noChangeAspect")] + [SchemaAttr(0, "tooltip")] #pragma warning restore CS0618 // Type or member is obsolete - public BooleanValue? NoChangeAspect + public StringValue? Tooltip + { + get => GetAttribute<StringValue>(); + set => SetAttribute(value); + } + + /// <summary> + /// <para>whether to add this URI to the history when navigating to it</para> + /// <para>Represents the following attribute in the schema: history</para> + /// </summary> + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "history")] +#pragma warning restore CS0618 // Type or member is obsolete + + public BooleanValue? History { get => GetAttribute<BooleanValue>(); set => SetAttribute(value); } /// <summary> - /// <para>Disallow Moving Shape</para> - /// <para>Represents the following attribute in the schema: noMove</para> + /// <para>Whether to highlight it when click on a shape</para> + /// <para>Represents the following attribute in the schema: highlightClick</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(0, "noMove")] + [SchemaAttr(0, "highlightClick")] #pragma warning restore CS0618 // Type or member is obsolete - public BooleanValue? NoMove + public BooleanValue? HighlightClick { get => GetAttribute<BooleanValue>(); set => SetAttribute(value); } /// <summary> - /// <para>Disallow Shape Resizing</para> - /// <para>Represents the following attribute in the schema: noResize</para> + /// <para>Whether to stop previous sound when click on it</para> + /// <para>Represents the following attribute in the schema: endSnd</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(0, "noResize")] + [SchemaAttr(0, "endSnd")] #pragma warning restore CS0618 // Type or member is obsolete - public BooleanValue? NoResize + public BooleanValue? EndSound { get => GetAttribute<BooleanValue>(); set => SetAttribute(value); @@ -33948,83 +34192,135 @@ public BooleanValue? NoResize internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(10, "grpSpLocks"); - builder.AddChild<ExtensionList>(); - builder.AddElement<GroupShapeLocks>() -.AddAttribute(0, "noGrp", a => a.NoGrouping) -.AddAttribute(0, "noUngrp", a => a.NoUngrouping) -.AddAttribute(0, "noSelect", a => a.NoSelection) -.AddAttribute(0, "noRot", a => a.NoRotation) -.AddAttribute(0, "noChangeAspect", a => a.NoChangeAspect) -.AddAttribute(0, "noMove", a => a.NoMove) -.AddAttribute(0, "noResize", a => a.NoResize); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.ExtensionList), 0, 1) - }; + builder.AddChild<HyperlinkSound>(); + builder.AddChild<HyperlinkExtensionList>(); + builder.AddElement<HyperlinkType>() +.AddAttribute(19, "id", a => a.Id) +.AddAttribute(0, "invalidUrl", a => a.InvalidUrl) +.AddAttribute(0, "action", a => a.Action) +.AddAttribute(0, "tgtFrame", a => a.TargetFrame) +.AddAttribute(0, "tooltip", a => a.Tooltip) +.AddAttribute(0, "history", a => a.History) +.AddAttribute(0, "highlightClick", a => a.HighlightClick) +.AddAttribute(0, "endSnd", a => a.EndSound); } /// <summary> - /// <para>ExtensionList.</para> + /// <para>Sound to play..</para> + /// <para>Represents the following element tag in the schema: a:snd.</para> + /// </summary> + /// <remark> + /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main + /// </remark> + public HyperlinkSound? HyperlinkSound + { + get => GetElement<HyperlinkSound>(); + set => SetElement(value); + } + + /// <summary> + /// <para>Future extensions..</para> /// <para>Represents the following element tag in the schema: a:extLst.</para> /// </summary> /// <remark> /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main /// </remark> - public ExtensionList? ExtensionList + public HyperlinkExtensionList? HyperlinkExtensionList { - get => GetElement<ExtensionList>(); + get => GetElement<HyperlinkExtensionList>(); set => SetElement(value); } + } + + /// <summary> + /// <para>Defines the RightToLeft Class.</para> + /// <para>This class is available in Office 2007 and above.</para> + /// <para>When the object is serialized out as xml, it's qualified name is a:rtl.</para> + /// </summary> +#pragma warning disable CS0618 // Type or member is obsolete + [SchemaAttr(10, "rtl")] +#pragma warning restore CS0618 // Type or member is obsolete + public partial class RightToLeft : OpenXmlLeafElement + { + /// <summary> + /// Initializes a new instance of the RightToLeft class. + /// </summary> + public RightToLeft() : base() + { + } + + /// <summary> + /// <para>val</para> + /// <para>Represents the following attribute in the schema: val</para> + /// </summary> + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "val")] +#pragma warning restore CS0618 // Type or member is obsolete + + public BooleanValue? Val + { + get => GetAttribute<BooleanValue>(); + set => SetAttribute(value); + } + + internal override void ConfigureMetadata(ElementMetadata.Builder builder) + { + base.ConfigureMetadata(builder); + builder.SetSchema(10, "rtl"); + builder.AddElement<RightToLeft>() +.AddAttribute(0, "val", a => a.Val); + } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<GroupShapeLocks>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<RightToLeft>(deep); } /// <summary> - /// <para>Defines the NonVisualGroupDrawingShapePropsExtensionList Class.</para> + /// <para>Defines the NonVisualDrawingPropertiesExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is a:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>NonVisualGroupDrawingShapePropsExtension <a:ext></description></item> + /// <item><description>NonVisualDrawingPropertiesExtension <a:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(10, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class NonVisualGroupDrawingShapePropsExtensionList : OpenXmlCompositeElement + public partial class NonVisualDrawingPropertiesExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the NonVisualGroupDrawingShapePropsExtensionList class. + /// Initializes a new instance of the NonVisualDrawingPropertiesExtensionList class. /// </summary> - public NonVisualGroupDrawingShapePropsExtensionList() : base() + public NonVisualDrawingPropertiesExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the NonVisualGroupDrawingShapePropsExtensionList class with the specified child elements. + /// Initializes a new instance of the NonVisualDrawingPropertiesExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public NonVisualGroupDrawingShapePropsExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public NonVisualDrawingPropertiesExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the NonVisualGroupDrawingShapePropsExtensionList class with the specified child elements. + /// Initializes a new instance of the NonVisualDrawingPropertiesExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public NonVisualGroupDrawingShapePropsExtensionList(params OpenXmlElement[] childElements) : base(childElements) + public NonVisualDrawingPropertiesExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the NonVisualGroupDrawingShapePropsExtensionList class from outer XML. + /// Initializes a new instance of the NonVisualDrawingPropertiesExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public NonVisualGroupDrawingShapePropsExtensionList(string outerXml) : base(outerXml) + public NonVisualDrawingPropertiesExtensionList(string outerXml) : base(outerXml) { } @@ -34032,61 +34328,61 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(10, "extLst"); - builder.AddChild<NonVisualGroupDrawingShapePropsExtension>(); + builder.AddChild<NonVisualDrawingPropertiesExtension>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.NonVisualGroupDrawingShapePropsExtension), 0, 0) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.NonVisualDrawingPropertiesExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<NonVisualGroupDrawingShapePropsExtensionList>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<NonVisualDrawingPropertiesExtensionList>(deep); } /// <summary> - /// <para>Defines the BlipExtensionList Class.</para> + /// <para>Defines the ConnectorLockingExtensionList Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is a:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>BlipExtension <a:ext></description></item> + /// <item><description>ConnectorLockingExtension <a:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(10, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class BlipExtensionList : OpenXmlCompositeElement + public partial class ConnectorLockingExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the BlipExtensionList class. + /// Initializes a new instance of the ConnectorLockingExtensionList class. /// </summary> - public BlipExtensionList() : base() + public ConnectorLockingExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the BlipExtensionList class with the specified child elements. + /// Initializes a new instance of the ConnectorLockingExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public BlipExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public ConnectorLockingExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the BlipExtensionList class with the specified child elements. + /// Initializes a new instance of the ConnectorLockingExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public BlipExtensionList(params OpenXmlElement[] childElements) : base(childElements) + public ConnectorLockingExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the BlipExtensionList class from outer XML. + /// Initializes a new instance of the ConnectorLockingExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public BlipExtensionList(string outerXml) : base(outerXml) + public ConnectorLockingExtensionList(string outerXml) : base(outerXml) { } @@ -34094,63 +34390,62 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(10, "extLst"); - builder.AddChild<BlipExtension>(); + builder.AddChild<ConnectorLockingExtension>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.BlipExtension), 0, 0) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.ConnectorLockingExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<BlipExtensionList>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<ConnectorLockingExtensionList>(deep); } /// <summary> - /// <para>Defines the BlipExtension Class.</para> + /// <para>Defines the DataModelExtension Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is a:ext.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2010.Drawing.ImageProperties <a14:imgProps></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2010.Drawing.UseLocalDpi <a14:useLocalDpi></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2013.Word.Drawing.WebVideoProperty <wp15:webVideoPr></description></item> + /// <item><description>DocumentFormat.OpenXml.Office.Drawing.DataModelExtensionBlock <dsp:dataModelExt></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2010.Drawing.Diagram.RecolorImages <dgm14:recolorImg></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(10, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class BlipExtension : OpenXmlCompositeElement + public partial class DataModelExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the BlipExtension class. + /// Initializes a new instance of the DataModelExtension class. /// </summary> - public BlipExtension() : base() + public DataModelExtension() : base() { } /// <summary> - /// Initializes a new instance of the BlipExtension class with the specified child elements. + /// Initializes a new instance of the DataModelExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public BlipExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public DataModelExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the BlipExtension class with the specified child elements. + /// Initializes a new instance of the DataModelExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public BlipExtension(params OpenXmlElement[] childElements) : base(childElements) + public DataModelExtension(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the BlipExtension class from outer XML. + /// Initializes a new instance of the DataModelExtension class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public BlipExtension(string outerXml) : base(outerXml) + public DataModelExtension(string outerXml) : base(outerXml) { } @@ -34174,10 +34469,9 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(10, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2010.Drawing.ImageProperties>(); - builder.AddChild<DocumentFormat.OpenXml.Office2010.Drawing.UseLocalDpi>(); - builder.AddChild<DocumentFormat.OpenXml.Office2013.Word.Drawing.WebVideoProperty>(); - builder.AddElement<BlipExtension>() + builder.AddChild<DocumentFormat.OpenXml.Office.Drawing.DataModelExtensionBlock>(); + builder.AddChild<DocumentFormat.OpenXml.Office2010.Drawing.Diagram.RecolorImages>(); + builder.AddElement<DataModelExtension>() .AddAttribute(0, "uri", a => a.Uri, aBuilder => { aBuilder.AddValidator(RequiredValidator.Instance); @@ -34185,415 +34479,389 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) }); builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.Drawing.ImageProperties), 1, 1, version: FileFormatVersions.Office2010), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.Drawing.UseLocalDpi), 1, 1, version: FileFormatVersions.Office2010), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Word.Drawing.WebVideoProperty), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office.Drawing.DataModelExtensionBlock), 1, 1, version: FileFormatVersions.Office2010), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.Drawing.Diagram.RecolorImages), 1, 1, version: FileFormatVersions.Office2010), new AnyParticle(0, 1) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<BlipExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<DataModelExtension>(deep); } /// <summary> - /// <para>Defines the ObjectDefaults Class.</para> + /// <para>Defines the PtExtension Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is a:objectDefaults.</para> + /// <para>When the object is serialized out as xml, it's qualified name is a:ext.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>ShapeDefault <a:spDef></description></item> - /// <item><description>LineDefault <a:lnDef></description></item> - /// <item><description>TextDefault <a:txDef></description></item> - /// <item><description>ExtensionList <a:extLst></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2010.Drawing.Diagram.NonVisualDrawingProperties <dgm14:cNvPr></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(10, "objectDefaults")] + [SchemaAttr(10, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class ObjectDefaults : OpenXmlCompositeElement + public partial class PtExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the ObjectDefaults class. + /// Initializes a new instance of the PtExtension class. /// </summary> - public ObjectDefaults() : base() + public PtExtension() : base() { } /// <summary> - /// Initializes a new instance of the ObjectDefaults class with the specified child elements. + /// Initializes a new instance of the PtExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public ObjectDefaults(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public PtExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the ObjectDefaults class with the specified child elements. + /// Initializes a new instance of the PtExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public ObjectDefaults(params OpenXmlElement[] childElements) : base(childElements) + public PtExtension(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the ObjectDefaults class from outer XML. + /// Initializes a new instance of the PtExtension class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public ObjectDefaults(string outerXml) : base(outerXml) - { - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) + public PtExtension(string outerXml) : base(outerXml) { - base.ConfigureMetadata(builder); - builder.SetSchema(10, "objectDefaults"); - builder.AddChild<ShapeDefault>(); - builder.AddChild<LineDefault>(); - builder.AddChild<TextDefault>(); - builder.AddChild<ExtensionList>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.ShapeDefault), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.LineDefault), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.TextDefault), 0, 1), - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.ExtensionList), 0, 1) - }; } /// <summary> - /// <para>Shape Default.</para> - /// <para>Represents the following element tag in the schema: a:spDef.</para> + /// <para>URI</para> + /// <para>Represents the following attribute in the schema: uri</para> /// </summary> - /// <remark> - /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main - /// </remark> - public ShapeDefault? ShapeDefault - { - get => GetElement<ShapeDefault>(); - set => SetElement(value); - } - /// <summary> - /// <para>Line Default.</para> - /// <para>Represents the following element tag in the schema: a:lnDef.</para> - /// </summary> - /// <remark> - /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main - /// </remark> - public LineDefault? LineDefault - { - get => GetElement<LineDefault>(); - set => SetElement(value); - } +#pragma warning disable CS0618 // Type or member is obsolete - /// <summary> - /// <para>Text Default.</para> - /// <para>Represents the following element tag in the schema: a:txDef.</para> - /// </summary> - /// <remark> - /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main - /// </remark> - public TextDefault? TextDefault + [SchemaAttr(0, "uri")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Uri { - get => GetElement<TextDefault>(); - set => SetElement(value); + get => GetAttribute<StringValue>(); + set => SetAttribute(value); } - /// <summary> - /// <para>ExtensionList.</para> - /// <para>Represents the following element tag in the schema: a:extLst.</para> - /// </summary> - /// <remark> - /// xmlns:a = http://schemas.openxmlformats.org/drawingml/2006/main - /// </remark> - public ExtensionList? ExtensionList + internal override void ConfigureMetadata(ElementMetadata.Builder builder) { - get => GetElement<ExtensionList>(); - set => SetElement(value); + base.ConfigureMetadata(builder); + builder.SetSchema(10, "ext"); + builder.AddChild<DocumentFormat.OpenXml.Office2010.Drawing.Diagram.NonVisualDrawingProperties>(); + builder.AddElement<PtExtension>() +.AddAttribute(0, "uri", a => a.Uri, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.Drawing.Diagram.NonVisualDrawingProperties), 1, 1, version: FileFormatVersions.Office2010), + new AnyParticle(0, 1) + }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<ObjectDefaults>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<PtExtension>(deep); } /// <summary> - /// <para>Defines the ExtraColorSchemeList Class.</para> + /// <para>Defines the HyperlinkExtension Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is a:extraClrSchemeLst.</para> + /// <para>When the object is serialized out as xml, it's qualified name is a:ext.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>ExtraColorScheme <a:extraClrScheme></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2019.Drawing.HyperLinkColor.HyperlinkColor <ahyp:hlinkClr></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(10, "extraClrSchemeLst")] + [SchemaAttr(10, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class ExtraColorSchemeList : OpenXmlCompositeElement + public partial class HyperlinkExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the ExtraColorSchemeList class. + /// Initializes a new instance of the HyperlinkExtension class. /// </summary> - public ExtraColorSchemeList() : base() + public HyperlinkExtension() : base() { } /// <summary> - /// Initializes a new instance of the ExtraColorSchemeList class with the specified child elements. + /// Initializes a new instance of the HyperlinkExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public ExtraColorSchemeList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public HyperlinkExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the ExtraColorSchemeList class with the specified child elements. + /// Initializes a new instance of the HyperlinkExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public ExtraColorSchemeList(params OpenXmlElement[] childElements) : base(childElements) + public HyperlinkExtension(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the ExtraColorSchemeList class from outer XML. + /// Initializes a new instance of the HyperlinkExtension class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public ExtraColorSchemeList(string outerXml) : base(outerXml) + public HyperlinkExtension(string outerXml) : base(outerXml) + { + } + + /// <summary> + /// <para>URI</para> + /// <para>Represents the following attribute in the schema: uri</para> + /// </summary> + +#pragma warning disable CS0618 // Type or member is obsolete + + [SchemaAttr(0, "uri")] +#pragma warning restore CS0618 // Type or member is obsolete + + public StringValue? Uri { + get => GetAttribute<StringValue>(); + set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(10, "extraClrSchemeLst"); - builder.AddChild<ExtraColorScheme>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) + builder.SetSchema(10, "ext"); + builder.AddChild<DocumentFormat.OpenXml.Office2019.Drawing.HyperLinkColor.HyperlinkColor>(); + builder.AddElement<HyperlinkExtension>() +.AddAttribute(0, "uri", a => a.Uri, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.ExtraColorScheme), 0, 0) + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.HyperLinkColor.HyperlinkColor), 1, 1, version: FileFormatVersions.Office2019), + new AnyParticle(0, 1) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<ExtraColorSchemeList>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<HyperlinkExtension>(deep); } /// <summary> - /// <para>Defines the CustomColorList Class.</para> + /// <para>Future extensions..</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is a:custClrLst.</para> + /// <para>When the object is serialized out as xml, it's qualified name is a:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>CustomColor <a:custClr></description></item> + /// <item><description>HyperlinkExtension <a:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(10, "custClrLst")] + [SchemaAttr(10, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class CustomColorList : OpenXmlCompositeElement + public partial class HyperlinkExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the CustomColorList class. + /// Initializes a new instance of the HyperlinkExtensionList class. /// </summary> - public CustomColorList() : base() + public HyperlinkExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the CustomColorList class with the specified child elements. + /// Initializes a new instance of the HyperlinkExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public CustomColorList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public HyperlinkExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the CustomColorList class with the specified child elements. + /// Initializes a new instance of the HyperlinkExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public CustomColorList(params OpenXmlElement[] childElements) : base(childElements) + public HyperlinkExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the CustomColorList class from outer XML. + /// Initializes a new instance of the HyperlinkExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public CustomColorList(string outerXml) : base(outerXml) + public HyperlinkExtensionList(string outerXml) : base(outerXml) { } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(10, "custClrLst"); - builder.AddChild<CustomColor>(); + builder.SetSchema(10, "extLst"); + builder.AddChild<HyperlinkExtension>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.CustomColor), 0, 0) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.HyperlinkExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<CustomColorList>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<HyperlinkExtensionList>(deep); } /// <summary> - /// <para>Defines the OfficeStyleSheetExtensionList Class.</para> + /// <para>Defines the NonVisualDrawingPropertiesExtension Class.</para> /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is a:extLst.</para> + /// <para>When the object is serialized out as xml, it's qualified name is a:ext.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>OfficeStyleSheetExtension <a:ext></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2010.Drawing.CompatExtension <a14:compatExt></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Drawing.BackgroundProperties <a15:backgroundPr></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2016.Drawing.CreationId <a16:creationId></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2016.Drawing.PredecessorDrawingElementReference <a16:predDERef></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2019.Drawing.Decorative <adec:decorative></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(10, "extLst")] + [SchemaAttr(10, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class OfficeStyleSheetExtensionList : OpenXmlCompositeElement + public partial class NonVisualDrawingPropertiesExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the OfficeStyleSheetExtensionList class. + /// Initializes a new instance of the NonVisualDrawingPropertiesExtension class. /// </summary> - public OfficeStyleSheetExtensionList() : base() + public NonVisualDrawingPropertiesExtension() : base() { } /// <summary> - /// Initializes a new instance of the OfficeStyleSheetExtensionList class with the specified child elements. + /// Initializes a new instance of the NonVisualDrawingPropertiesExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public OfficeStyleSheetExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public NonVisualDrawingPropertiesExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the OfficeStyleSheetExtensionList class with the specified child elements. + /// Initializes a new instance of the NonVisualDrawingPropertiesExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public OfficeStyleSheetExtensionList(params OpenXmlElement[] childElements) : base(childElements) + public NonVisualDrawingPropertiesExtension(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the OfficeStyleSheetExtensionList class from outer XML. + /// Initializes a new instance of the NonVisualDrawingPropertiesExtension class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public OfficeStyleSheetExtensionList(string outerXml) : base(outerXml) - { - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.SetSchema(10, "extLst"); - builder.AddChild<OfficeStyleSheetExtension>(); - builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.OfficeStyleSheetExtension), 0, 0) - }; - } - - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<OfficeStyleSheetExtensionList>(deep); - } - - /// <summary> - /// <para>Defines the RightToLeft Class.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is a:rtl.</para> - /// </summary> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(10, "rtl")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class RightToLeft : OpenXmlLeafElement - { - /// <summary> - /// Initializes a new instance of the RightToLeft class. - /// </summary> - public RightToLeft() : base() + public NonVisualDrawingPropertiesExtension(string outerXml) : base(outerXml) { } /// <summary> - /// <para>val</para> - /// <para>Represents the following attribute in the schema: val</para> + /// <para>URI</para> + /// <para>Represents the following attribute in the schema: uri</para> /// </summary> #pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(0, "val")] + [SchemaAttr(0, "uri")] #pragma warning restore CS0618 // Type or member is obsolete - public BooleanValue? Val + public StringValue? Uri { - get => GetAttribute<BooleanValue>(); + get => GetAttribute<StringValue>(); set => SetAttribute(value); } internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); - builder.SetSchema(10, "rtl"); - builder.AddElement<RightToLeft>() -.AddAttribute(0, "val", a => a.Val); + builder.SetSchema(10, "ext"); + builder.AddChild<DocumentFormat.OpenXml.Office2010.Drawing.CompatExtension>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Drawing.BackgroundProperties>(); + builder.AddChild<DocumentFormat.OpenXml.Office2016.Drawing.CreationId>(); + builder.AddChild<DocumentFormat.OpenXml.Office2016.Drawing.PredecessorDrawingElementReference>(); + builder.AddChild<DocumentFormat.OpenXml.Office2019.Drawing.Decorative>(); + builder.AddElement<NonVisualDrawingPropertiesExtension>() +.AddAttribute(0, "uri", a => a.Uri, aBuilder => +{ +aBuilder.AddValidator(RequiredValidator.Instance); +aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); +}); + builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) + { + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.Drawing.CompatExtension), 1, 1, version: FileFormatVersions.Office2010), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Drawing.BackgroundProperties), 1, 1, version: FileFormatVersions.Office2013), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2016.Drawing.CreationId), 1, 1, version: FileFormatVersions.Office2016), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2016.Drawing.PredecessorDrawingElementReference), 1, 1, version: FileFormatVersions.Office2016), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.Decorative), 1, 1, version: FileFormatVersions.Office2019), + new AnyParticle(0, 1) + }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<RightToLeft>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<NonVisualDrawingPropertiesExtension>(deep); } /// <summary> - /// <para>Defines the ConnectorLockingExtensionList Class.</para> + /// <para>Future extensions..</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is a:extLst.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>ConnectorLockingExtension <a:ext></description></item> + /// <item><description>BlipExtension <a:ext></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(10, "extLst")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class ConnectorLockingExtensionList : OpenXmlCompositeElement + public partial class BlipExtensionList : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the ConnectorLockingExtensionList class. + /// Initializes a new instance of the BlipExtensionList class. /// </summary> - public ConnectorLockingExtensionList() : base() + public BlipExtensionList() : base() { } /// <summary> - /// Initializes a new instance of the ConnectorLockingExtensionList class with the specified child elements. + /// Initializes a new instance of the BlipExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public ConnectorLockingExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public BlipExtensionList(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the ConnectorLockingExtensionList class with the specified child elements. + /// Initializes a new instance of the BlipExtensionList class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public ConnectorLockingExtensionList(params OpenXmlElement[] childElements) : base(childElements) + public BlipExtensionList(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the ConnectorLockingExtensionList class from outer XML. + /// Initializes a new instance of the BlipExtensionList class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public ConnectorLockingExtensionList(string outerXml) : base(outerXml) + public BlipExtensionList(string outerXml) : base(outerXml) { } @@ -34601,149 +34869,65 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(10, "extLst"); - builder.AddChild<ConnectorLockingExtension>(); + builder.AddChild<BlipExtension>(); builder.Particle = new CompositeParticle.Builder(ParticleType.Sequence, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.ConnectorLockingExtension), 0, 0) - }; - } - - /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<ConnectorLockingExtensionList>(deep); - } - - /// <summary> - /// <para>Defines the DataModelExtension Class.</para> - /// <para>This class is available in Office 2007 and above.</para> - /// <para>When the object is serialized out as xml, it's qualified name is a:ext.</para> - /// </summary> - /// <remark> - /// <para>The following table lists the possible child types:</para> - /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office.Drawing.DataModelExtensionBlock <dsp:dataModelExt></description></item> - /// <item><description>DocumentFormat.OpenXml.Office2010.Drawing.Diagram.RecolorImages <dgm14:recolorImg></description></item> - /// </list> - /// </remark> -#pragma warning disable CS0618 // Type or member is obsolete - [SchemaAttr(10, "ext")] -#pragma warning restore CS0618 // Type or member is obsolete - public partial class DataModelExtension : OpenXmlCompositeElement - { - /// <summary> - /// Initializes a new instance of the DataModelExtension class. - /// </summary> - public DataModelExtension() : base() - { - } - - /// <summary> - /// Initializes a new instance of the DataModelExtension class with the specified child elements. - /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public DataModelExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) - { - } - - /// <summary> - /// Initializes a new instance of the DataModelExtension class with the specified child elements. - /// </summary> - /// <param name="childElements">Specifies the child elements.</param> - public DataModelExtension(params OpenXmlElement[] childElements) : base(childElements) - { - } - - /// <summary> - /// Initializes a new instance of the DataModelExtension class from outer XML. - /// </summary> - /// <param name="outerXml">Specifies the outer XML of the element.</param> - public DataModelExtension(string outerXml) : base(outerXml) - { - } - - /// <summary> - /// <para>URI</para> - /// <para>Represents the following attribute in the schema: uri</para> - /// </summary> - -#pragma warning disable CS0618 // Type or member is obsolete - - [SchemaAttr(0, "uri")] -#pragma warning restore CS0618 // Type or member is obsolete - - public StringValue? Uri - { - get => GetAttribute<StringValue>(); - set => SetAttribute(value); - } - - internal override void ConfigureMetadata(ElementMetadata.Builder builder) - { - base.ConfigureMetadata(builder); - builder.SetSchema(10, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office.Drawing.DataModelExtensionBlock>(); - builder.AddChild<DocumentFormat.OpenXml.Office2010.Drawing.Diagram.RecolorImages>(); - builder.AddElement<DataModelExtension>() -.AddAttribute(0, "uri", a => a.Uri, aBuilder => -{ -aBuilder.AddValidator(RequiredValidator.Instance); -aBuilder.AddValidator(new StringValidator() { IsToken = (true) }); -}); - builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) - { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office.Drawing.DataModelExtensionBlock), 1, 1, version: FileFormatVersions.Office2010), - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.Drawing.Diagram.RecolorImages), 1, 1, version: FileFormatVersions.Office2010), - new AnyParticle(0, 1) + new ElementParticle(typeof(DocumentFormat.OpenXml.Drawing.BlipExtension), 0, 0) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<DataModelExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<BlipExtensionList>(deep); } /// <summary> - /// <para>Defines the PtExtension Class.</para> + /// <para>Defines the BlipExtension Class.</para> /// <para>This class is available in Office 2007 and above.</para> /// <para>When the object is serialized out as xml, it's qualified name is a:ext.</para> /// </summary> /// <remark> /// <para>The following table lists the possible child types:</para> /// <list type="bullet"> - /// <item><description>DocumentFormat.OpenXml.Office2010.Drawing.Diagram.NonVisualDrawingProperties <dgm14:cNvPr></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2010.Drawing.ImageProperties <a14:imgProps></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2010.Drawing.UseLocalDpi <a14:useLocalDpi></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2013.Word.Drawing.WebVideoProperty <wp15:webVideoPr></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2019.Drawing.SVG.SVGBlip <asvg:svgBlip></description></item> + /// <item><description>DocumentFormat.OpenXml.Office2019.Drawing.PictureAttributionSourceURL <a1611:picAttrSrcUrl></description></item> /// </list> /// </remark> #pragma warning disable CS0618 // Type or member is obsolete [SchemaAttr(10, "ext")] #pragma warning restore CS0618 // Type or member is obsolete - public partial class PtExtension : OpenXmlCompositeElement + public partial class BlipExtension : OpenXmlCompositeElement { /// <summary> - /// Initializes a new instance of the PtExtension class. + /// Initializes a new instance of the BlipExtension class. /// </summary> - public PtExtension() : base() + public BlipExtension() : base() { } /// <summary> - /// Initializes a new instance of the PtExtension class with the specified child elements. + /// Initializes a new instance of the BlipExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public PtExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) + public BlipExtension(IEnumerable<OpenXmlElement> childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the PtExtension class with the specified child elements. + /// Initializes a new instance of the BlipExtension class with the specified child elements. /// </summary> /// <param name="childElements">Specifies the child elements.</param> - public PtExtension(params OpenXmlElement[] childElements) : base(childElements) + public BlipExtension(params OpenXmlElement[] childElements) : base(childElements) { } /// <summary> - /// Initializes a new instance of the PtExtension class from outer XML. + /// Initializes a new instance of the BlipExtension class from outer XML. /// </summary> /// <param name="outerXml">Specifies the outer XML of the element.</param> - public PtExtension(string outerXml) : base(outerXml) + public BlipExtension(string outerXml) : base(outerXml) { } @@ -34767,8 +34951,12 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) { base.ConfigureMetadata(builder); builder.SetSchema(10, "ext"); - builder.AddChild<DocumentFormat.OpenXml.Office2010.Drawing.Diagram.NonVisualDrawingProperties>(); - builder.AddElement<PtExtension>() + builder.AddChild<DocumentFormat.OpenXml.Office2010.Drawing.ImageProperties>(); + builder.AddChild<DocumentFormat.OpenXml.Office2010.Drawing.UseLocalDpi>(); + builder.AddChild<DocumentFormat.OpenXml.Office2013.Word.Drawing.WebVideoProperty>(); + builder.AddChild<DocumentFormat.OpenXml.Office2019.Drawing.SVG.SVGBlip>(); + builder.AddChild<DocumentFormat.OpenXml.Office2019.Drawing.PictureAttributionSourceURL>(); + builder.AddElement<BlipExtension>() .AddAttribute(0, "uri", a => a.Uri, aBuilder => { aBuilder.AddValidator(RequiredValidator.Instance); @@ -34776,13 +34964,17 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) }); builder.Particle = new CompositeParticle.Builder(ParticleType.Choice, 1, 1) { - new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.Drawing.Diagram.NonVisualDrawingProperties), 1, 1, version: FileFormatVersions.Office2010), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.Drawing.ImageProperties), 1, 1, version: FileFormatVersions.Office2010), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.Drawing.UseLocalDpi), 1, 1, version: FileFormatVersions.Office2010), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2013.Word.Drawing.WebVideoProperty), 1, 1, version: FileFormatVersions.Office2010), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.SVG.SVGBlip), 1, 1, version: FileFormatVersions.Office2019), + new ElementParticle(typeof(DocumentFormat.OpenXml.Office2019.Drawing.PictureAttributionSourceURL), 1, 1, version: FileFormatVersions.Office2016), new AnyParticle(0, 1) }; } /// <inheritdoc/> - public override OpenXmlElement CloneNode(bool deep) => CloneImp<PtExtension>(deep); + public override OpenXmlElement CloneNode(bool deep) => CloneImp<BlipExtension>(deep); } /// <summary> diff --git a/test/DocumentFormat.OpenXml.Framework.Tests/ElementChildren.json b/test/DocumentFormat.OpenXml.Framework.Tests/ElementChildren.json index 565a25a0b..bc60de8b3 100644 --- a/test/DocumentFormat.OpenXml.Framework.Tests/ElementChildren.json +++ b/test/DocumentFormat.OpenXml.Framework.Tests/ElementChildren.json @@ -1453,6 +1453,14 @@ "Name": "useLocalDpi", "Namespace": "http://schemas.microsoft.com/office/drawing/2010/main" }, + { + "Name": "picAttrSrcUrl", + "Namespace": "http://schemas.microsoft.com/office/drawing/2016/11/main" + }, + { + "Name": "svgBlip", + "Namespace": "http://schemas.microsoft.com/office/drawing/2016/SVG/main" + }, { "Name": "webVideoPr", "Namespace": "http://schemas.microsoft.com/office/word/2012/wordprocessingDrawing" @@ -3208,6 +3216,15 @@ } ] }, + { + "Element": "DocumentFormat.OpenXml.Drawing.Charts.ChartExtensionList", + "Children": [ + { + "Name": "ext", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/chart" + } + ] + }, { "Element": "DocumentFormat.OpenXml.Drawing.Charts.ChartObject", "Children": [] @@ -3503,6 +3520,15 @@ "Element": "DocumentFormat.OpenXml.Drawing.Charts.Data", "Children": [] }, + { + "Element": "DocumentFormat.OpenXml.Drawing.Charts.DataDisplayOptions16", + "Children": [ + { + "Name": "dispNaAsBlank", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/03/chart" + } + ] + }, { "Element": "DocumentFormat.OpenXml.Drawing.Charts.DataLabel", "Children": [ @@ -7686,6 +7712,28 @@ } ] }, + { + "Element": "DocumentFormat.OpenXml.Drawing.Diagrams.DiagramDefinitionExtension", + "Children": [ + { + "Name": "autoBuNodeInfoLst", + "Namespace": "http://schemas.microsoft.com/office/drawing/2016/11/diagram" + }, + { + "Name": "lstStyle", + "Namespace": "http://schemas.microsoft.com/office/drawing/2016/12/diagram" + } + ] + }, + { + "Element": "DocumentFormat.OpenXml.Drawing.Diagrams.DiagramDefinitionExtensionList", + "Children": [ + { + "Name": "ext", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/diagram" + } + ] + }, { "Element": "DocumentFormat.OpenXml.Drawing.Diagrams.Direction", "Children": [] @@ -9781,6 +9829,58 @@ "Name": "timeslicer", "Namespace": "http://schemas.microsoft.com/office/drawing/2012/timeslicer" }, + { + "Name": "colId", + "Namespace": "http://schemas.microsoft.com/office/drawing/2014/main" + }, + { + "Name": "creationId", + "Namespace": "http://schemas.microsoft.com/office/drawing/2014/main" + }, + { + "Name": "cxnDERefs", + "Namespace": "http://schemas.microsoft.com/office/drawing/2014/main" + }, + { + "Name": "predDERef", + "Namespace": "http://schemas.microsoft.com/office/drawing/2014/main" + }, + { + "Name": "rowId", + "Namespace": "http://schemas.microsoft.com/office/drawing/2014/main" + }, + { + "Name": "autoBuNodeInfoLst", + "Namespace": "http://schemas.microsoft.com/office/drawing/2016/11/diagram" + }, + { + "Name": "picAttrSrcUrl", + "Namespace": "http://schemas.microsoft.com/office/drawing/2016/11/main" + }, + { + "Name": "lstStyle", + "Namespace": "http://schemas.microsoft.com/office/drawing/2016/12/diagram" + }, + { + "Name": "spPr", + "Namespace": "http://schemas.microsoft.com/office/drawing/2016/12/diagram" + }, + { + "Name": "svgBlip", + "Namespace": "http://schemas.microsoft.com/office/drawing/2016/SVG/main" + }, + { + "Name": "dataDisplayOptions16", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/03/chart" + }, + { + "Name": "decorative", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/decorative" + }, + { + "Name": "hlinkClr", + "Namespace": "http://schemas.microsoft.com/office/drawing/2018/hyperlinkcolor" + }, { "Name": "contentPart", "Namespace": "http://schemas.microsoft.com/office/excel/2010/spreadsheetDrawing" @@ -10853,6 +10953,24 @@ } ] }, + { + "Element": "DocumentFormat.OpenXml.Drawing.HyperlinkExtension", + "Children": [ + { + "Name": "hlinkClr", + "Namespace": "http://schemas.microsoft.com/office/drawing/2018/hyperlinkcolor" + } + ] + }, + { + "Element": "DocumentFormat.OpenXml.Drawing.HyperlinkExtensionList", + "Children": [ + { + "Name": "ext", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" + } + ] + }, { "Element": "DocumentFormat.OpenXml.Drawing.HyperlinkOnClick", "Children": [ @@ -12118,6 +12236,18 @@ { "Name": "backgroundPr", "Namespace": "http://schemas.microsoft.com/office/drawing/2012/main" + }, + { + "Name": "creationId", + "Namespace": "http://schemas.microsoft.com/office/drawing/2014/main" + }, + { + "Name": "predDERef", + "Namespace": "http://schemas.microsoft.com/office/drawing/2014/main" + }, + { + "Name": "decorative", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/decorative" } ] }, @@ -33152,6 +33282,59 @@ "Element": "DocumentFormat.OpenXml.Office2016.Word.Symex.SymEx", "Children": [] }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Animation.AnimationProperties", + "Children": [ + { + "Name": "extLst", + "Namespace": "http://schemas.microsoft.com/office/drawing/2018/animation" + } + ] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Animation.Model3D.AnimationProperties", + "Children": [ + { + "Name": "extLst", + "Namespace": "http://schemas.microsoft.com/office/drawing/2018/animation" + } + ] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Animation.Model3D.EmbeddedAnimation", + "Children": [ + { + "Name": "animPr", + "Namespace": "http://schemas.microsoft.com/office/drawing/2018/animation/model3d" + }, + { + "Name": "extLst", + "Namespace": "http://schemas.microsoft.com/office/drawing/2018/animation/model3d" + } + ] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Animation.Model3D.OfficeArtExtensionList", + "Children": [ + { + "Name": "ext", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" + } + ] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Animation.Model3D.PosterFrame", + "Children": [] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Animation.OfficeArtExtensionList", + "Children": [ + { + "Name": "ext", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" + } + ] + }, { "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Chart.BooleanFalse", "Children": [] @@ -33165,6 +33348,10 @@ } ] }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Decorative", + "Children": [] + }, { "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Diagram11.DiagramAutoBullet", "Children": [ @@ -33323,341 +33510,579 @@ "Children": [] }, { - "Element": "DocumentFormat.OpenXml.Office2019.Drawing.SVG.SVGBlip", - "Children": [] - }, - { - "Element": "DocumentFormat.OpenXml.Office2019.Excel.CalcFeatures.CalcFeature", - "Children": [] - }, - { - "Element": "DocumentFormat.OpenXml.Office2019.Excel.CalcFeatures.CalcFeatures", + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.AmbientLight", "Children": [ { - "Name": "feature", - "Namespace": "http://schemas.microsoft.com/office/spreadsheetml/2018/calcfeatures" - } - ] - }, - { - "Element": "DocumentFormat.OpenXml.Office2019.Excel.DynamicArray.DynamicArrayProperties", - "Children": [ + "Name": "clr", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" + }, { "Name": "extLst", - "Namespace": "http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray" - } - ] - }, - { - "Element": "DocumentFormat.OpenXml.Office2019.Excel.DynamicArray.ExtensionList", - "Children": [ + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" + }, { - "Name": "ext", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "illuminance", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" } ] }, { - "Element": "DocumentFormat.OpenXml.Office2019.Excel.PivotDefaultLayout.PivotTableDefinition16", - "Children": [] - }, - { - "Element": "DocumentFormat.OpenXml.Office2019.Excel.Revision5.ColumnBodyDxfDxf", + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Blip", "Children": [ { - "Name": "alignment", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "alphaBiLevel", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" }, { - "Name": "border", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "alphaCeiling", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" }, { - "Name": "extLst", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "alphaFloor", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" }, { - "Name": "fill", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "alphaInv", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" }, { - "Name": "font", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "alphaMod", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" }, { - "Name": "numFmt", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "alphaModFix", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" }, { - "Name": "protection", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" - } - ] - }, - { - "Element": "DocumentFormat.OpenXml.Office2019.Excel.Revision5.ColumnHeaderDxfDxf", - "Children": [ + "Name": "alphaRepl", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" + }, { - "Name": "alignment", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "biLevel", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" }, { - "Name": "border", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "blur", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" + }, + { + "Name": "clrChange", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" + }, + { + "Name": "clrRepl", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" + }, + { + "Name": "duotone", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" }, { "Name": "extLst", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" }, { - "Name": "fill", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "fillOverlay", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" }, { - "Name": "font", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "grayscl", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" }, { - "Name": "numFmt", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "hsl", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" }, { - "Name": "protection", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "lum", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" + }, + { + "Name": "tint", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" } ] }, { - "Element": "DocumentFormat.OpenXml.Office2019.Excel.Revision5.ColumnTotalsDxfDxf", + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.ColorType", "Children": [ { - "Name": "alignment", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "hslClr", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" }, { - "Name": "border", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "prstClr", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" }, { - "Name": "extLst", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "schemeClr", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" }, { - "Name": "fill", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "scrgbClr", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" }, { - "Name": "font", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "srgbClr", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" }, { - "Name": "numFmt", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "sysClr", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" + } + ] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.DirectionalLight", + "Children": [ + { + "Name": "clr", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" }, { - "Name": "protection", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "extLst", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" + }, + { + "Name": "illuminance", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" + }, + { + "Name": "lookAt", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" + }, + { + "Name": "pos", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" } ] }, { - "Element": "DocumentFormat.OpenXml.Office2019.Excel.Revision5.DataDxfDxf", + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.IlluminancePositiveRatio", + "Children": [] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.IntensityPositiveRatio", + "Children": [] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.LookAtPoint3D", + "Children": [] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.MeterPerModelUnitPositiveRatio", + "Children": [] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Model3D", "Children": [ { - "Name": "alignment", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "ambientLight", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" }, { - "Name": "border", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "attrSrcUrl", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" + }, + { + "Name": "camera", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" + }, + { + "Name": "dirLight", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" }, { "Name": "extLst", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" }, { - "Name": "fill", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "objViewport", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" }, { - "Name": "font", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "ptLight", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" }, { - "Name": "numFmt", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "raster", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" }, { - "Name": "protection", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "spPr", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" + }, + { + "Name": "spotLight", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" + }, + { + "Name": "trans", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" + }, + { + "Name": "unkLight", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" + }, + { + "Name": "winViewport", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" } ] }, { - "Element": "DocumentFormat.OpenXml.Office2019.Excel.Revision5.HeaderRowBorderDxfDxf", + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Model3DCamera", "Children": [ { - "Name": "alignment", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "extLst", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" }, { - "Name": "border", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "lookAt", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" }, { - "Name": "extLst", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "orthographic", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" }, { - "Name": "fill", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "perspective", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" }, { - "Name": "font", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "pos", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" }, { - "Name": "numFmt", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "up", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" + } + ] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Model3DExtension", + "Children": [ + { + "Name": "embedAnim", + "Namespace": "http://schemas.microsoft.com/office/drawing/2018/animation/model3d" }, { - "Name": "protection", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "posterFrame", + "Namespace": "http://schemas.microsoft.com/office/drawing/2018/animation/model3d" } ] }, { - "Element": "DocumentFormat.OpenXml.Office2019.Excel.Revision5.HeaderRowDxfDxf", + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Model3DExtensionList", "Children": [ { - "Name": "alignment", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" - }, + "Name": "ext", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" + } + ] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Model3DRaster", + "Children": [ { - "Name": "border", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" - }, + "Name": "blip", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" + } + ] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Model3DTransform", + "Children": [ { "Name": "extLst", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" }, { - "Name": "fill", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "meterPerModelUnit", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" }, { - "Name": "font", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "postTrans", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" }, { - "Name": "numFmt", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "preTrans", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" }, { - "Name": "protection", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "rot", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" + }, + { + "Name": "scale", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" } ] }, { - "Element": "DocumentFormat.OpenXml.Office2019.Excel.Revision5.TableBorderDxfDxf", + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.ObjectViewport", "Children": [ { - "Name": "alignment", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "extLst", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" + } + ] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.OfficeArtExtensionList", + "Children": [ + { + "Name": "ext", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" + } + ] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.OrthographicProjection", + "Children": [ + { + "Name": "extLst", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" }, { - "Name": "border", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "sz", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" + } + ] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.PerspectiveProjection", + "Children": [ + { + "Name": "extLst", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" + } + ] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.PictureAttributionSourceURL", + "Children": [] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.PointLight", + "Children": [ + { + "Name": "clr", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" }, { "Name": "extLst", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" }, { - "Name": "fill", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "intensity", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" }, { - "Name": "font", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "pos", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" + } + ] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.PosPoint3D", + "Children": [] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.PostTransVector3D", + "Children": [] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.PreTransVector3D", + "Children": [] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Rotate3D", + "Children": [] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Scale3D", + "Children": [ + { + "Name": "sx", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" }, { - "Name": "numFmt", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "sy", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" }, { - "Name": "protection", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "sz", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" } ] }, { - "Element": "DocumentFormat.OpenXml.Office2019.Excel.Revision5.TotalsRowBorderDxfDxf", + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.ShapeProperties", "Children": [ { - "Name": "alignment", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "blipFill", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" }, { - "Name": "border", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "custGeom", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" + }, + { + "Name": "effectDag", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" + }, + { + "Name": "effectLst", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" }, { "Name": "extLst", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" }, { - "Name": "fill", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "gradFill", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" }, { - "Name": "font", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "grpFill", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" }, { - "Name": "numFmt", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "ln", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" }, { - "Name": "protection", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "noFill", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" + }, + { + "Name": "pattFill", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" + }, + { + "Name": "prstGeom", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" + }, + { + "Name": "scene3d", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" + }, + { + "Name": "solidFill", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" + }, + { + "Name": "sp3d", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" + }, + { + "Name": "xfrm", + "Namespace": "http://schemas.openxmlformats.org/drawingml/2006/main" } ] }, { - "Element": "DocumentFormat.OpenXml.Office2019.Excel.Revision5.TotalsRowDxfDxf", + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.SpotLight", "Children": [ { - "Name": "alignment", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" - }, - { - "Name": "border", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "clr", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" }, { "Name": "extLst", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" }, { - "Name": "fill", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "intensity", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" }, { - "Name": "font", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + "Name": "lookAt", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" }, { - "Name": "numFmt", - "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" - }, + "Name": "pos", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" + } + ] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.SxRatio", + "Children": [] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.SyRatio", + "Children": [] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.SzPositiveRatio", + "Children": [] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.SzRatio", + "Children": [] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.UnknownLight", + "Children": [] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.UpVector3D", + "Children": [] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.WindowViewport", + "Children": [ { - "Name": "protection", + "Name": "extLst", + "Namespace": "http://schemas.microsoft.com/office/drawing/2017/model3d" + } + ] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.PictureAttributionSourceURL", + "Children": [] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Drawing.SVG.SVGBlip", + "Children": [] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Excel.CalcFeatures.CalcFeature", + "Children": [] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Excel.CalcFeatures.CalcFeatures", + "Children": [ + { + "Name": "feature", + "Namespace": "http://schemas.microsoft.com/office/spreadsheetml/2018/calcfeatures" + } + ] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Excel.DynamicArray.DynamicArrayProperties", + "Children": [ + { + "Name": "extLst", + "Namespace": "http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray" + } + ] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Excel.DynamicArray.ExtensionList", + "Children": [ + { + "Name": "ext", "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" } ] }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Excel.PivotDefaultLayout.PivotTableDefinition16", + "Children": [] + }, { "Element": "DocumentFormat.OpenXml.Office2019.Excel.RichData.ExtensionList", "Children": [ @@ -33800,15 +34225,6 @@ "Element": "DocumentFormat.OpenXml.Office2019.Excel.RichData2.RichDateGroupItem", "Children": [] }, - { - "Element": "DocumentFormat.OpenXml.Office2019.Excel.RichData2.RichExtensionList", - "Children": [ - { - "Name": "extLst", - "Namespace": "http://schemas.microsoft.com/office/spreadsheetml/2017/richdata2" - } - ] - }, { "Element": "DocumentFormat.OpenXml.Office2019.Excel.RichData2.RichFilter", "Children": [] @@ -34084,6 +34500,92 @@ } ] }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.ExtensionList", + "Children": [ + { + "Name": "ext", + "Namespace": "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + } + ] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.Mention", + "Children": [] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.Person", + "Children": [ + { + "Name": "extLst", + "Namespace": "http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments" + } + ] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.PersonList", + "Children": [ + { + "Name": "extLst", + "Namespace": "http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments" + }, + { + "Name": "person", + "Namespace": "http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments" + } + ] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.ThreadedComment", + "Children": [ + { + "Name": "extLst", + "Namespace": "http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments" + }, + { + "Name": "mentions", + "Namespace": "http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments" + }, + { + "Name": "text", + "Namespace": "http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments" + } + ] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.ThreadedCommentMentions", + "Children": [ + { + "Name": "mention", + "Namespace": "http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments" + } + ] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.ThreadedCommentText", + "Children": [] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.ThreadedComments", + "Children": [ + { + "Name": "extLst", + "Namespace": "http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments" + }, + { + "Name": "threadedComment", + "Namespace": "http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments" + } + ] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Presentation.ClassificationOutcome", + "Children": [] + }, + { + "Element": "DocumentFormat.OpenXml.Office2019.Presentation.ReadonlyRecommended", + "Children": [] + }, { "Element": "DocumentFormat.OpenXml.Office2019.Presentation.Track", "Children": [] diff --git a/test/DocumentFormat.OpenXml.Framework.Tests/OpenXmlNamespaceTests.cs b/test/DocumentFormat.OpenXml.Framework.Tests/OpenXmlNamespaceTests.cs index aff34c18e..279d3c887 100644 --- a/test/DocumentFormat.OpenXml.Framework.Tests/OpenXmlNamespaceTests.cs +++ b/test/DocumentFormat.OpenXml.Framework.Tests/OpenXmlNamespaceTests.cs @@ -10,7 +10,7 @@ public class OpenXmlNamespaceTests [Fact] public void NamespaceCount() { - Assert.Equal(109, OpenXmlNamespace.Count); + Assert.Equal(116, OpenXmlNamespace.Count); } [InlineData("", "", FileFormatVersions.None, 0)] diff --git a/test/DocumentFormat.OpenXml.Packaging.Tests/data/Particles.json b/test/DocumentFormat.OpenXml.Packaging.Tests/data/Particles.json index fddc78bf1..85582c9a9 100644 --- a/test/DocumentFormat.OpenXml.Packaging.Tests/data/Particles.json +++ b/test/DocumentFormat.OpenXml.Packaging.Tests/data/Particles.json @@ -1410,7 +1410,7 @@ "Key": "DocumentFormat.OpenXml.Drawing.BlipExtension", "Value": [ { - "Key": "Office2013, Office2016, Office2019", + "Key": "Office2010, Office2013", "Value": { "ChildrenParticles": [ { @@ -1443,7 +1443,31 @@ } }, { - "Key": "Office2010", + "Key": "Office2016", + "Value": { + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Office2010.Drawing.ImageProperties" + }, + { + "ElementType": "DocumentFormat.OpenXml.Office2010.Drawing.UseLocalDpi" + }, + { + "ElementType": "DocumentFormat.OpenXml.Office2013.Word.Drawing.WebVideoProperty" + }, + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.PictureAttributionSourceURL" + }, + { + "MinOccurs": 0, + "ParticleType": "Any" + } + ], + "ParticleType": "Choice" + } + }, + { + "Key": "Office2019", "Value": { "ChildrenParticles": [ { @@ -1452,6 +1476,15 @@ { "ElementType": "DocumentFormat.OpenXml.Office2010.Drawing.UseLocalDpi" }, + { + "ElementType": "DocumentFormat.OpenXml.Office2013.Word.Drawing.WebVideoProperty" + }, + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.SVG.SVGBlip" + }, + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.PictureAttributionSourceURL" + }, { "MinOccurs": 0, "ParticleType": "Any" @@ -4113,7 +4146,31 @@ "MinOccurs": 0 }, { - "ElementType": "DocumentFormat.OpenXml.Drawing.Charts.ExtensionList", + "ElementType": "DocumentFormat.OpenXml.Drawing.Charts.ChartExtensionList", + "MinOccurs": 0 + } + ], + "ParticleType": "Sequence" + } + } + ] + }, + { + "Key": "DocumentFormat.OpenXml.Drawing.Charts.ChartExtensionList", + "Value": [ + { + "Key": "Office2007, Office2010, Office2013, Office2016", + "Value": { + "ParticleType": "Sequence" + } + }, + { + "Key": "Office2019", + "Value": { + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Drawing.Charts.DataDisplayOptions16", + "MaxOccurs": 0, "MinOccurs": 0 } ], @@ -4620,6 +4677,23 @@ } ] }, + { + "Key": "DocumentFormat.OpenXml.Drawing.Charts.DataDisplayOptions16", + "Value": [ + { + "Key": "Office2019", + "Value": { + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Chart.BooleanFalse", + "MinOccurs": 0 + } + ], + "ParticleType": "Sequence" + } + } + ] + }, { "Key": "DocumentFormat.OpenXml.Drawing.Charts.DataLabel", "Value": [ @@ -10282,6 +10356,59 @@ } ] }, + { + "Key": "DocumentFormat.OpenXml.Drawing.Diagrams.DiagramDefinitionExtension", + "Value": [ + { + "Key": "Office2007, Office2010, Office2013, Office2016", + "Value": { + "ChildrenParticles": [ + { + "MinOccurs": 0, + "ParticleType": "Any" + } + ], + "ParticleType": "Choice" + } + }, + { + "Key": "Office2019", + "Value": { + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Diagram11.NumberDiagramInfoList" + }, + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Diagram12.TextListStyleType" + }, + { + "MinOccurs": 0, + "ParticleType": "Any" + } + ], + "ParticleType": "Choice" + } + } + ] + }, + { + "Key": "DocumentFormat.OpenXml.Drawing.Diagrams.DiagramDefinitionExtensionList", + "Value": [ + { + "Key": "Office2007, Office2010, Office2013, Office2016, Office2019", + "Value": { + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Drawing.Diagrams.DiagramDefinitionExtension", + "MaxOccurs": 0, + "MinOccurs": 0 + } + ], + "ParticleType": "Sequence" + } + } + ] + }, { "Key": "DocumentFormat.OpenXml.Drawing.Diagrams.EffectColorList", "Value": [ @@ -10481,7 +10608,7 @@ "ElementType": "DocumentFormat.OpenXml.Drawing.Diagrams.LayoutNode" }, { - "ElementType": "DocumentFormat.OpenXml.Drawing.Diagrams.ExtensionList", + "ElementType": "DocumentFormat.OpenXml.Drawing.Diagrams.DiagramDefinitionExtensionList", "MinOccurs": 0 } ], @@ -13188,6 +13315,56 @@ } ] }, + { + "Key": "DocumentFormat.OpenXml.Drawing.HyperlinkExtension", + "Value": [ + { + "Key": "Office2007, Office2010, Office2013, Office2016", + "Value": { + "ChildrenParticles": [ + { + "MinOccurs": 0, + "ParticleType": "Any" + } + ], + "ParticleType": "Choice" + } + }, + { + "Key": "Office2019", + "Value": { + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.HyperLinkColor.HyperlinkColor" + }, + { + "MinOccurs": 0, + "ParticleType": "Any" + } + ], + "ParticleType": "Choice" + } + } + ] + }, + { + "Key": "DocumentFormat.OpenXml.Drawing.HyperlinkExtensionList", + "Value": [ + { + "Key": "Office2007, Office2010, Office2013, Office2016, Office2019", + "Value": { + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Drawing.HyperlinkExtension", + "MaxOccurs": 0, + "MinOccurs": 0 + } + ], + "ParticleType": "Sequence" + } + } + ] + }, { "Key": "DocumentFormat.OpenXml.Drawing.HyperlinkOnClick", "Value": [ @@ -13200,7 +13377,7 @@ "MinOccurs": 0 }, { - "ElementType": "DocumentFormat.OpenXml.Drawing.ExtensionList", + "ElementType": "DocumentFormat.OpenXml.Drawing.HyperlinkExtensionList", "MinOccurs": 0 } ], @@ -13221,7 +13398,7 @@ "MinOccurs": 0 }, { - "ElementType": "DocumentFormat.OpenXml.Drawing.ExtensionList", + "ElementType": "DocumentFormat.OpenXml.Drawing.HyperlinkExtensionList", "MinOccurs": 0 } ], @@ -13242,7 +13419,7 @@ "MinOccurs": 0 }, { - "ElementType": "DocumentFormat.OpenXml.Drawing.ExtensionList", + "ElementType": "DocumentFormat.OpenXml.Drawing.HyperlinkExtensionList", "MinOccurs": 0 } ], @@ -15006,7 +15183,34 @@ "Key": "DocumentFormat.OpenXml.Drawing.NonVisualDrawingPropertiesExtension", "Value": [ { - "Key": "Office2010, Office2013, Office2016, Office2019", + "Key": "Office2007", + "Value": { + "ChildrenParticles": [ + { + "MinOccurs": 0, + "ParticleType": "Any" + } + ], + "ParticleType": "Choice" + } + }, + { + "Key": "Office2010", + "Value": { + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Office2010.Drawing.CompatExtension" + }, + { + "MinOccurs": 0, + "ParticleType": "Any" + } + ], + "ParticleType": "Choice" + } + }, + { + "Key": "Office2013", "Value": { "ChildrenParticles": [ { @@ -15024,9 +15228,48 @@ } }, { - "Key": "Office2007", + "Key": "Office2016", "Value": { "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Office2010.Drawing.CompatExtension" + }, + { + "ElementType": "DocumentFormat.OpenXml.Office2013.Drawing.BackgroundProperties" + }, + { + "ElementType": "DocumentFormat.OpenXml.Office2016.Drawing.CreationId" + }, + { + "ElementType": "DocumentFormat.OpenXml.Office2016.Drawing.PredecessorDrawingElementReference" + }, + { + "MinOccurs": 0, + "ParticleType": "Any" + } + ], + "ParticleType": "Choice" + } + }, + { + "Key": "Office2019", + "Value": { + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Office2010.Drawing.CompatExtension" + }, + { + "ElementType": "DocumentFormat.OpenXml.Office2013.Drawing.BackgroundProperties" + }, + { + "ElementType": "DocumentFormat.OpenXml.Office2016.Drawing.CreationId" + }, + { + "ElementType": "DocumentFormat.OpenXml.Office2016.Drawing.PredecessorDrawingElementReference" + }, + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Decorative" + }, { "MinOccurs": 0, "ParticleType": "Any" @@ -47673,6 +47916,116 @@ } ] }, + { + "Key": "DocumentFormat.OpenXml.Office2019.Drawing.Animation.AnimationProperties", + "Value": [ + { + "Key": "Office2019", + "Value": { + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Animation.OfficeArtExtensionList", + "MinOccurs": 0 + } + ], + "ParticleType": "Sequence" + } + } + ] + }, + { + "Key": "DocumentFormat.OpenXml.Office2019.Drawing.Animation.Model3D.AnimationProperties", + "Value": [ + { + "Key": "Office2019", + "Value": { + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Animation.OfficeArtExtensionList", + "MinOccurs": 0 + } + ], + "ParticleType": "Sequence" + } + } + ] + }, + { + "Key": "DocumentFormat.OpenXml.Office2019.Drawing.Animation.Model3D.EmbeddedAnimation", + "Value": [ + { + "Key": "Office2019", + "Value": { + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Animation.Model3D.AnimationProperties" + }, + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Animation.Model3D.OfficeArtExtensionList", + "MinOccurs": 0 + } + ], + "ParticleType": "Sequence" + } + } + ] + }, + { + "Key": "DocumentFormat.OpenXml.Office2019.Drawing.Animation.Model3D.OfficeArtExtensionList", + "Value": [ + { + "Key": "Office2019", + "Value": { + "ChildrenParticles": [ + { + "ChildrenParticles": [ + { + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Drawing.Extension", + "MaxOccurs": 0, + "MinOccurs": 0 + } + ], + "ParticleType": "Sequence" + } + ], + "ParticleType": "Group" + } + ], + "ParticleType": "Sequence" + } + } + ] + }, + { + "Key": "DocumentFormat.OpenXml.Office2019.Drawing.Animation.OfficeArtExtensionList", + "Value": [ + { + "Key": "Office2019", + "Value": { + "ChildrenParticles": [ + { + "ChildrenParticles": [ + { + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Drawing.Extension", + "MaxOccurs": 0, + "MinOccurs": 0 + } + ], + "ParticleType": "Sequence" + } + ], + "ParticleType": "Group" + } + ], + "ParticleType": "Sequence" + } + } + ] + }, { "Key": "DocumentFormat.OpenXml.Office2019.Drawing.Chart.DataDisplayOptions16", "Value": [ @@ -47908,15 +48261,21 @@ ] }, { - "Key": "DocumentFormat.OpenXml.Office2019.Excel.CalcFeatures.CalcFeatures", + "Key": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.AmbientLight", "Value": [ { "Key": "Office2019", "Value": { "ChildrenParticles": [ { - "ElementType": "DocumentFormat.OpenXml.Office2019.Excel.CalcFeatures.CalcFeature", - "MaxOccurs": 0 + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.ColorType" + }, + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.IlluminancePositiveRatio" + }, + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.OfficeArtExtensionList", + "MinOccurs": 0 } ], "ParticleType": "Sequence" @@ -47925,14 +48284,72 @@ ] }, { - "Key": "DocumentFormat.OpenXml.Office2019.Excel.DynamicArray.DynamicArrayProperties", + "Key": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Blip", "Value": [ { "Key": "Office2019", "Value": { "ChildrenParticles": [ { - "ElementType": "DocumentFormat.OpenXml.Office2019.Excel.DynamicArray.ExtensionList", + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Drawing.AlphaBiLevel" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.AlphaCeiling" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.AlphaFloor" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.AlphaInverse" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.AlphaModulationEffect" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.AlphaModulationFixed" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.AlphaReplace" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.BiLevel" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.Blur" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.ColorChange" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.ColorReplacement" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.Duotone" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.FillOverlay" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.Grayscale" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.Hsl" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.LuminanceEffect" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.TintEffect" + } + ], + "MaxOccurs": 0, + "MinOccurs": 0, + "ParticleType": "Choice" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.BlipExtensionList", "MinOccurs": 0 } ], @@ -47942,7 +48359,7 @@ ] }, { - "Key": "DocumentFormat.OpenXml.Office2019.Excel.DynamicArray.ExtensionList", + "Key": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.ColorType", "Value": [ { "Key": "Office2019", @@ -47953,15 +48370,27 @@ { "ChildrenParticles": [ { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Extension", - "MaxOccurs": 0, - "MinOccurs": 0 + "ElementType": "DocumentFormat.OpenXml.Drawing.RgbColorModelPercentage" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.RgbColorModelHex" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.HslColor" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.SystemColor" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.SchemeColor" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.PresetColor" } ], - "ParticleType": "Sequence" + "ParticleType": "Choice" } ], - "MinOccurs": 0, "ParticleType": "Group" } ], @@ -47971,38 +48400,26 @@ ] }, { - "Key": "DocumentFormat.OpenXml.Office2019.Excel.Revision5.ColumnBodyDxfDxf", + "Key": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.DirectionalLight", "Value": [ { "Key": "Office2019", "Value": { "ChildrenParticles": [ { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Font", - "MinOccurs": 0 + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.ColorType" }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.NumberingFormat", - "MinOccurs": 0 + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.IlluminancePositiveRatio" }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Fill", - "MinOccurs": 0 - }, - { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Alignment", - "MinOccurs": 0 + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.PosPoint3D" }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Border", - "MinOccurs": 0 + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.LookAtPoint3D" }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Protection", - "MinOccurs": 0 - }, - { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.ExtensionList", + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.OfficeArtExtensionList", "MinOccurs": 0 } ], @@ -48012,39 +48429,66 @@ ] }, { - "Key": "DocumentFormat.OpenXml.Office2019.Excel.Revision5.ColumnHeaderDxfDxf", + "Key": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Model3D", "Value": [ { "Key": "Office2019", "Value": { "ChildrenParticles": [ { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Font", - "MinOccurs": 0 + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.ShapeProperties" }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.NumberingFormat", - "MinOccurs": 0 + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Model3DCamera" }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Fill", - "MinOccurs": 0 + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Model3DTransform" }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Alignment", + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.PictureAttributionSourceURL", "MinOccurs": 0 }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Border", + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Model3DRaster", "MinOccurs": 0 }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Protection", + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Model3DExtensionList", "MinOccurs": 0 }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.ExtensionList", + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.ObjectViewport" + }, + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.WindowViewport" + } + ], + "ParticleType": "Choice" + }, + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.AmbientLight", "MinOccurs": 0 + }, + { + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.PointLight" + }, + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.SpotLight" + }, + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.DirectionalLight" + }, + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.UnknownLight" + } + ], + "MaxOccurs": 0, + "MinOccurs": 0, + "ParticleType": "Choice" } ], "ParticleType": "Sequence" @@ -48053,38 +48497,34 @@ ] }, { - "Key": "DocumentFormat.OpenXml.Office2019.Excel.Revision5.ColumnTotalsDxfDxf", + "Key": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Model3DCamera", "Value": [ { "Key": "Office2019", "Value": { "ChildrenParticles": [ { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Font", - "MinOccurs": 0 + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.PosPoint3D" }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.NumberingFormat", - "MinOccurs": 0 + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.UpVector3D" }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Fill", - "MinOccurs": 0 + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.LookAtPoint3D" }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Alignment", - "MinOccurs": 0 - }, - { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Border", - "MinOccurs": 0 - }, - { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Protection", - "MinOccurs": 0 + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.OrthographicProjection" + }, + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.PerspectiveProjection" + } + ], + "ParticleType": "Choice" }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.ExtensionList", + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.OfficeArtExtensionList", "MinOccurs": 0 } ], @@ -48094,38 +48534,38 @@ ] }, { - "Key": "DocumentFormat.OpenXml.Office2019.Excel.Revision5.DataDxfDxf", + "Key": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Model3DExtension", "Value": [ { "Key": "Office2019", "Value": { "ChildrenParticles": [ { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Font", - "MinOccurs": 0 + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Animation.Model3D.EmbeddedAnimation" }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.NumberingFormat", - "MinOccurs": 0 + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Animation.Model3D.PosterFrame" }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Fill", - "MinOccurs": 0 - }, - { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Alignment", - "MinOccurs": 0 - }, - { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Border", - "MinOccurs": 0 - }, - { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Protection", - "MinOccurs": 0 - }, + "MinOccurs": 0, + "ParticleType": "Any" + } + ], + "ParticleType": "Choice" + } + } + ] + }, + { + "Key": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Model3DExtensionList", + "Value": [ + { + "Key": "Office2019", + "Value": { + "ChildrenParticles": [ { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.ExtensionList", + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Model3DExtension", + "MaxOccurs": 0, "MinOccurs": 0 } ], @@ -48135,38 +48575,51 @@ ] }, { - "Key": "DocumentFormat.OpenXml.Office2019.Excel.Revision5.HeaderRowBorderDxfDxf", + "Key": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Model3DRaster", "Value": [ { "Key": "Office2019", "Value": { "ChildrenParticles": [ { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Font", + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Blip", "MinOccurs": 0 - }, + } + ], + "ParticleType": "Sequence" + } + } + ] + }, + { + "Key": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Model3DTransform", + "Value": [ + { + "Key": "Office2019", + "Value": { + "ChildrenParticles": [ { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.NumberingFormat", + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.MeterPerModelUnitPositiveRatio", "MinOccurs": 0 }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Fill", + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.PreTransVector3D", "MinOccurs": 0 }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Alignment", + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Scale3D", "MinOccurs": 0 }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Border", + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Rotate3D", "MinOccurs": 0 }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Protection", + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.PostTransVector3D", "MinOccurs": 0 }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.ExtensionList", + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.OfficeArtExtensionList", "MinOccurs": 0 } ], @@ -48176,38 +48629,79 @@ ] }, { - "Key": "DocumentFormat.OpenXml.Office2019.Excel.Revision5.HeaderRowDxfDxf", + "Key": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.ObjectViewport", "Value": [ { "Key": "Office2019", "Value": { "ChildrenParticles": [ { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Font", + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.OfficeArtExtensionList", "MinOccurs": 0 - }, - { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.NumberingFormat", - "MinOccurs": 0 - }, - { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Fill", - "MinOccurs": 0 - }, + } + ], + "ParticleType": "Sequence" + } + } + ] + }, + { + "Key": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.OfficeArtExtensionList", + "Value": [ + { + "Key": "Office2019", + "Value": { + "ChildrenParticles": [ { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Alignment", - "MinOccurs": 0 - }, + "ChildrenParticles": [ + { + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Drawing.Extension", + "MaxOccurs": 0, + "MinOccurs": 0 + } + ], + "ParticleType": "Sequence" + } + ], + "ParticleType": "Group" + } + ], + "ParticleType": "Sequence" + } + } + ] + }, + { + "Key": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.OrthographicProjection", + "Value": [ + { + "Key": "Office2019", + "Value": { + "ChildrenParticles": [ { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Border", - "MinOccurs": 0 + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.SzPositiveRatio" }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Protection", + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.OfficeArtExtensionList", "MinOccurs": 0 - }, + } + ], + "ParticleType": "Sequence" + } + } + ] + }, + { + "Key": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.PerspectiveProjection", + "Value": [ + { + "Key": "Office2019", + "Value": { + "ChildrenParticles": [ { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.ExtensionList", + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.OfficeArtExtensionList", "MinOccurs": 0 } ], @@ -48217,39 +48711,46 @@ ] }, { - "Key": "DocumentFormat.OpenXml.Office2019.Excel.Revision5.TableBorderDxfDxf", + "Key": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.PointLight", "Value": [ { "Key": "Office2019", "Value": { "ChildrenParticles": [ { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Font", - "MinOccurs": 0 + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.ColorType" }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.NumberingFormat", - "MinOccurs": 0 + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.IntensityPositiveRatio" }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Fill", - "MinOccurs": 0 + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.PosPoint3D" }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Alignment", + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.OfficeArtExtensionList", "MinOccurs": 0 - }, + } + ], + "ParticleType": "Sequence" + } + } + ] + }, + { + "Key": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.Scale3D", + "Value": [ + { + "Key": "Office2019", + "Value": { + "ChildrenParticles": [ { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Border", - "MinOccurs": 0 + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.SxRatio" }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Protection", - "MinOccurs": 0 + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.SyRatio" }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.ExtensionList", - "MinOccurs": 0 + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.SzRatio" } ], "ParticleType": "Sequence" @@ -48258,38 +48759,93 @@ ] }, { - "Key": "DocumentFormat.OpenXml.Office2019.Excel.Revision5.TotalsRowBorderDxfDxf", + "Key": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.ShapeProperties", "Value": [ { "Key": "Office2019", "Value": { "ChildrenParticles": [ { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Font", + "ElementType": "DocumentFormat.OpenXml.Drawing.Transform2D", "MinOccurs": 0 }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.NumberingFormat", - "MinOccurs": 0 + "ChildrenParticles": [ + { + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Drawing.CustomGeometry" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.PresetGeometry" + } + ], + "ParticleType": "Choice" + } + ], + "MinOccurs": 0, + "ParticleType": "Group" }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Fill", - "MinOccurs": 0 + "ChildrenParticles": [ + { + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Drawing.NoFill" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.SolidFill" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.GradientFill" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.BlipFill" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.PatternFill" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.GroupFill" + } + ], + "ParticleType": "Choice" + } + ], + "MinOccurs": 0, + "ParticleType": "Group" }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Alignment", + "ElementType": "DocumentFormat.OpenXml.Drawing.Outline", "MinOccurs": 0 }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Border", + "ChildrenParticles": [ + { + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Drawing.EffectList" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.EffectDag" + } + ], + "ParticleType": "Choice" + } + ], + "MinOccurs": 0, + "ParticleType": "Group" + }, + { + "ElementType": "DocumentFormat.OpenXml.Drawing.Scene3DType", "MinOccurs": 0 }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Protection", + "ElementType": "DocumentFormat.OpenXml.Drawing.Shape3DType", "MinOccurs": 0 }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.ExtensionList", + "ElementType": "DocumentFormat.OpenXml.Drawing.ShapePropertiesExtensionList", "MinOccurs": 0 } ], @@ -48299,38 +48855,77 @@ ] }, { - "Key": "DocumentFormat.OpenXml.Office2019.Excel.Revision5.TotalsRowDxfDxf", + "Key": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.SpotLight", "Value": [ { "Key": "Office2019", "Value": { "ChildrenParticles": [ { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Font", - "MinOccurs": 0 + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.ColorType" }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.NumberingFormat", - "MinOccurs": 0 + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.IntensityPositiveRatio" }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Fill", - "MinOccurs": 0 + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.PosPoint3D" }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Alignment", - "MinOccurs": 0 + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.LookAtPoint3D" }, { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Border", + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.OfficeArtExtensionList", "MinOccurs": 0 - }, + } + ], + "ParticleType": "Sequence" + } + } + ] + }, + { + "Key": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.WindowViewport", + "Value": [ + { + "Key": "Office2019", + "Value": { + "ChildrenParticles": [ { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Protection", + "ElementType": "DocumentFormat.OpenXml.Office2019.Drawing.Model3D.OfficeArtExtensionList", "MinOccurs": 0 - }, + } + ], + "ParticleType": "Sequence" + } + } + ] + }, + { + "Key": "DocumentFormat.OpenXml.Office2019.Excel.CalcFeatures.CalcFeatures", + "Value": [ + { + "Key": "Office2019", + "Value": { + "ChildrenParticles": [ { - "ElementType": "DocumentFormat.OpenXml.Spreadsheet.ExtensionList", + "ElementType": "DocumentFormat.OpenXml.Office2019.Excel.CalcFeatures.CalcFeature", + "MaxOccurs": 0 + } + ], + "ParticleType": "Sequence" + } + } + ] + }, + { + "Key": "DocumentFormat.OpenXml.Office2019.Excel.DynamicArray.DynamicArrayProperties", + "Value": [ + { + "Key": "Office2019", + "Value": { + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Excel.DynamicArray.ExtensionList", "MinOccurs": 0 } ], @@ -48339,6 +48934,35 @@ } ] }, + { + "Key": "DocumentFormat.OpenXml.Office2019.Excel.DynamicArray.ExtensionList", + "Value": [ + { + "Key": "Office2019", + "Value": { + "ChildrenParticles": [ + { + "ChildrenParticles": [ + { + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Extension", + "MaxOccurs": 0, + "MinOccurs": 0 + } + ], + "ParticleType": "Sequence" + } + ], + "MinOccurs": 0, + "ParticleType": "Group" + } + ], + "ParticleType": "Sequence" + } + } + ] + }, { "Key": "DocumentFormat.OpenXml.Office2019.Excel.RichData.ExtensionList", "Value": [ @@ -48563,22 +49187,6 @@ } ] }, - { - "Key": "DocumentFormat.OpenXml.Office2019.Excel.RichData2.RichExtensionList", - "Value": [ - { - "Key": "Office2019", - "Value": { - "ChildrenParticles": [ - { - "ElementType": "DocumentFormat.OpenXml.Office2019.Excel.RichData2.ExtensionList" - } - ], - "ParticleType": "Sequence" - } - } - ] - }, { "Key": "DocumentFormat.OpenXml.Office2019.Excel.RichData2.RichFilterColumn", "Value": [ @@ -48972,6 +49580,139 @@ } ] }, + { + "Key": "DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.ExtensionList", + "Value": [ + { + "Key": "Office2019", + "Value": { + "ChildrenParticles": [ + { + "ChildrenParticles": [ + { + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Spreadsheet.Extension", + "MaxOccurs": 0, + "MinOccurs": 0 + } + ], + "ParticleType": "Sequence" + } + ], + "MinOccurs": 0, + "ParticleType": "Group" + } + ], + "ParticleType": "Sequence" + } + } + ] + }, + { + "Key": "DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.Person", + "Value": [ + { + "Key": "Office2019", + "Value": { + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.ExtensionList", + "MinOccurs": 0 + } + ], + "ParticleType": "Sequence" + } + } + ] + }, + { + "Key": "DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.PersonList", + "Value": [ + { + "Key": "Office2019", + "Value": { + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.Person", + "MaxOccurs": 0, + "MinOccurs": 0 + }, + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.ExtensionList", + "MinOccurs": 0 + } + ], + "ParticleType": "Sequence" + } + } + ] + }, + { + "Key": "DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.ThreadedComment", + "Value": [ + { + "Key": "Office2019", + "Value": { + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.ThreadedCommentText", + "MinOccurs": 0 + }, + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.ThreadedCommentMentions", + "MinOccurs": 0 + }, + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.ExtensionList", + "MinOccurs": 0 + } + ], + "ParticleType": "Sequence" + } + } + ] + }, + { + "Key": "DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.ThreadedCommentMentions", + "Value": [ + { + "Key": "Office2019", + "Value": { + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.Mention", + "MaxOccurs": 0, + "MinOccurs": 0 + } + ], + "ParticleType": "Sequence" + } + } + ] + }, + { + "Key": "DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.ThreadedComments", + "Value": [ + { + "Key": "Office2019", + "Value": { + "ChildrenParticles": [ + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.ThreadedComment", + "MaxOccurs": 0, + "MinOccurs": 0 + }, + { + "ElementType": "DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.ExtensionList", + "MinOccurs": 0 + } + ], + "ParticleType": "Sequence" + } + } + ] + }, { "Key": "DocumentFormat.OpenXml.Office2019.Presentation.TrackList", "Value": [