diff --git a/gen/DocumentFormat.OpenXml.Generator.Models/Generators/Linq/FieldInfo.cs b/gen/DocumentFormat.OpenXml.Generator.Models/Generators/Linq/FieldInfo.cs new file mode 100644 index 000000000..ad97c1bdc --- /dev/null +++ b/gen/DocumentFormat.OpenXml.Generator.Models/Generators/Linq/FieldInfo.cs @@ -0,0 +1,189 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using DocumentFormat.OpenXml.Generator.Models; + +namespace DocumentFormat.OpenXml.Generator; + +/// +/// Represents an XName field. +/// +internal class FieldInfo : IComparable, IEquatable +{ + private const string EmptyNamespace = "NoNamespace"; + + private readonly OpenXmlGeneratorServices _services; + + private readonly HashSet _elementMetadata = new(); + private readonly HashSet _parentMetadata = new(); + private readonly HashSet _childMetadata = new(); + + private readonly HashSet _attributeContainerMetadata = new(); + private readonly HashSet _attributeMetadata = new(); + + private readonly SortedSet _attributePropertyNames = new(); + + /// + /// Initializes a new instance with the given . + /// + /// The . + public FieldInfo(QName qName, OpenXmlGeneratorServices services) + { + QName = qName; + FieldName = qName.Name; + _services = services; + } + + /// + /// Gets the . + /// + public QName QName { get; } + + /// + /// Gets or sets the field name, e.g., "document". + /// + public string FieldName { get; set; } + + /// + /// Gets the qualified field name, e.g., "W.document". + /// + public string QualifiedFieldName => + Prefix != string.Empty + ? Prefix.ToUpperInvariant() + "." + FieldName + : EmptyNamespace + "." + FieldName; + + /// + /// Gets the XML prefix, e.g., "w". + /// + public string Prefix => QName.Prefix; + + /// + /// Gets the XML namespace name, e.g., "http://schemas.openxmlformats.org/wordprocessingml/2006/main". + /// + public string NamespaceName => _services.GetNamespaceInfo(QName.Prefix).Uri; + + /// + /// Gets the XML local name, e.g., "document". + /// + public string LocalName => QName.Name; + + /// + /// Gets the XML qualified name, e.g., "w:document". + /// + public string QualifiedName => string.IsNullOrEmpty(Prefix) ? LocalName : Prefix + ":" + LocalName; + + public IEnumerable ParentQualifiedNames => + _parentMetadata + .OrderBy(GetQualifiedName) + .Select(em => em.Name.QName) + .Distinct(); + + public IEnumerable ChildQualifiedNames => + _childMetadata + .OrderBy(GetQualifiedName) + .Select(em => em.Name.QName) + .Distinct(); + + public IEnumerable AttributeContainerQualifiedNames => + _attributeContainerMetadata + .OrderBy(GetQualifiedName) + .Select(em => em.Name.QName) + .Distinct(); + + public IEnumerable ElementAttributeQualifiedNames => + _elementMetadata + .SelectMany(em => em.Attributes) + .OrderBy(GetQualifiedName) + .Select(am => am.QName) + .Distinct(); + + public IEnumerable ElementClassNames => + _elementMetadata + .Select(e => _services.FindClassName(e.Name, fullyQualified: false)) + .Distinct() + .OrderBy(name => name); + + public IEnumerable AttributePropertyNames => _attributePropertyNames; + + private static string GetQualifiedName(SchemaType metadata) + { + return GetQualifiedName(metadata.Name.QName); + } + + private static string GetQualifiedName(SchemaAttribute metadata) + { + return GetQualifiedName(metadata.QName); + } + + private static string GetQualifiedName(QName qName) + => qName.ToString(); + + public void AddElementMetadata(SchemaType element) + { + _elementMetadata.Add(element); + } + + public void AddParentElementMetadata(SchemaType? parent) + { + if (parent is not null) + { + _parentMetadata.Add(parent); + } + } + + public void AddChildElementMetadata(SchemaType child) + { + _childMetadata.Add(child); + } + + public void AddAttributeMetadata(SchemaType element, SchemaAttribute attribute) + { + _attributeContainerMetadata.Add(element); + _attributeMetadata.Add(attribute); + + var className = _services.FindClassName(element.Name, fullyQualified: false); + _attributePropertyNames.Add(className + "." + attribute.PropertyName); + } + + /// + public int CompareTo(FieldInfo? other) + { + return other is null ? 1 : QName.CompareTo(other.QName); + } + + /// + public bool Equals(FieldInfo? other) + => other is not null && QName.Equals(other.QName); + + /// + public override bool Equals(object? obj) + { + if (obj is null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + return obj.GetType() == GetType() && Equals((FieldInfo)obj); + } + + /// + public override int GetHashCode() + { + return QName.GetHashCode(); + } + + public static bool operator ==(FieldInfo? left, FieldInfo? right) + { + return Equals(left, right); + } + + public static bool operator !=(FieldInfo? left, FieldInfo? right) + { + return !Equals(left, right); + } +} diff --git a/gen/DocumentFormat.OpenXml.Generator.Models/Generators/Linq/LinqGeneratorExtensions.cs b/gen/DocumentFormat.OpenXml.Generator.Models/Generators/Linq/LinqGeneratorExtensions.cs index f39014d00..c97c834f2 100644 --- a/gen/DocumentFormat.OpenXml.Generator.Models/Generators/Linq/LinqGeneratorExtensions.cs +++ b/gen/DocumentFormat.OpenXml.Generator.Models/Generators/Linq/LinqGeneratorExtensions.cs @@ -14,24 +14,23 @@ public static class LinqGeneratorExtensions public static IEnumerable<(string ClassName, string Contents)> GenerateLinqFiles(this OpenXmlGeneratorServices services) { - var fieldInfos = new Dictionary(); - var elementMetadataCollection = AssembleElementMetadata(fieldInfos, services); - AssembleAttributeMetadata(elementMetadataCollection, fieldInfos, services); + var visitor = new LinqVisitor(services); + var fieldInfos = visitor.Visit(); IEnumerable> fieldInfoGroupings = fieldInfos.Values .GroupBy(fi => fi.Prefix) .OrderBy(g => g.Key) .ToList(); - foreach (IGrouping fieldInfoGrouping in fieldInfoGroupings) + foreach (var fieldInfoGrouping in fieldInfoGroupings) { - string prefix = fieldInfoGrouping.Key; + var prefix = fieldInfoGrouping.Key; var fieldNames = new HashSet(StringComparer.OrdinalIgnoreCase); - foreach (FieldInfo info in fieldInfoGrouping.OrderBy(fi => fi.LocalName)) + foreach (var info in fieldInfoGrouping.OrderBy(fi => fi.LocalName)) { // Some names contain dashes, which we need to replace. - string fieldName = info.LocalName + var fieldName = info.LocalName .Replace('-', '_'); // Ensure the field name is not equal to the prefix, which we use for the XNamespace field. @@ -53,7 +52,7 @@ public static class LinqGeneratorExtensions } } - foreach (IGrouping fieldInfoGrouping in fieldInfoGroupings) + foreach (var fieldInfoGrouping in fieldInfoGroupings) { var prefix = fieldInfoGrouping.Key; var namespaceName = fieldInfoGrouping.First().NamespaceName; @@ -99,24 +98,24 @@ private static void GenerateClass( string prefix, string namespaceName, IEnumerable classFieldInfos, - IDictionary fieldInfos) + IReadOnlyDictionary fieldInfos) { // Determine the namespace identifier for the class comment: // - 'empty', // - 'xmlns="namespaceName"', or // - 'xmlns:prefix="namespaceName"'. - string xmlnsAttribute = string.IsNullOrEmpty(prefix) + var xmlnsAttribute = string.IsNullOrEmpty(prefix) ? string.IsNullOrEmpty(namespaceName) ? "empty" : $"xmlns=\"{namespaceName}\"" : $"xmlns:{prefix}=\"{namespaceName}\""; // Determine what we are declaring in the namespace-related class: // - "XNamespace and XName fields" or // - "XName fields". - string theSubjectMatter = xmlnsAttribute != "empty" ? "XNamespace and XName fields" : "XName fields"; + var theSubjectMatter = xmlnsAttribute != "empty" ? "XNamespace and XName fields" : "XName fields"; // Derive the class name from the prefix. If the prefix is empty, use // "NoNamespace" for compatibility with the Open XML PowerTools. - string className = GetClassName(prefix); + var className = GetClassName(prefix); // Emit the class comment. output.WriteLine(@" /// "); @@ -152,33 +151,33 @@ private static void GenerateClass( fieldRhsPrefix = string.Empty; } - foreach (FieldInfo info in classFieldInfos) + foreach (var info in classFieldInfos) { - string qualifiedName = string.IsNullOrEmpty(info.Prefix) ? info.LocalName : info.Prefix + ":" + info.LocalName; + var qualifiedName = string.IsNullOrEmpty(info.Prefix) ? info.LocalName : info.Prefix + ":" + info.LocalName; - List parentQualifiedNames = info.ParentQualifiedNames.ToList(); - List childQualifiedNames = info.ChildQualifiedNames.ToList(); - List elementAttributeQualifiedNames = info.ElementAttributeQualifiedNames.ToList(); + var parentQualifiedNames = info.ParentQualifiedNames.ToList(); + var childQualifiedNames = info.ChildQualifiedNames.ToList(); + var elementAttributeQualifiedNames = info.ElementAttributeQualifiedNames.ToList(); - List attributeContainerQualifiedNames = info.AttributeContainerQualifiedNames.ToList(); + var attributeContainerQualifiedNames = info.AttributeContainerQualifiedNames.ToList(); - List elementClassNames = info.ElementClassNames.ToList(); - string elements = elementClassNames.Count switch + var elementClassNames = info.ElementClassNames.ToList(); + var elements = elementClassNames.Count switch { 0 => string.Empty, 1 => "element", _ => "elements", }; - List attributePropertyNames = info.AttributePropertyNames.ToList(); - string attributes = attributePropertyNames.Count switch + var attributePropertyNames = info.AttributePropertyNames.ToList(); + var attributes = attributePropertyNames.Count switch { 0 => string.Empty, 1 => "attribute", _ => "attributes", }; - string elementsAndOrAttributes = elements != string.Empty && attributes != string.Empty + var elementsAndOrAttributes = elements != string.Empty && attributes != string.Empty ? elements + " and " + attributes : elements + attributes; @@ -191,7 +190,7 @@ string See(QName qName) { if (fieldInfos.TryGetValue(qName, out var fieldInfo)) { - string reference = fieldInfo.Prefix == prefix + var reference = fieldInfo.Prefix == prefix ? fieldInfo.FieldName : fieldInfo.QualifiedFieldName; @@ -207,7 +206,7 @@ string See(QName qName) } } - bool hasRemarks = elements != string.Empty || attributes != string.Empty; + var hasRemarks = elements != string.Empty || attributes != string.Empty; if (hasRemarks) { output.WriteLine(@" /// "); @@ -220,25 +219,25 @@ string See(QName qName) if (parentQualifiedNames.Any()) { - string csv = string.Join(", ", parentQualifiedNames.Select(See)); + var csv = string.Join(", ", parentQualifiedNames.Select(See)); output.WriteLine($" /// has the following parent XML elements: {csv}."); } if (childQualifiedNames.Any()) { - string csv = string.Join(", ", childQualifiedNames.Select(See)); + var csv = string.Join(", ", childQualifiedNames.Select(See)); output.WriteLine($" /// has the following child XML elements: {csv}."); } if (elementAttributeQualifiedNames.Any()) { - string csv = string.Join(", ", elementAttributeQualifiedNames.Select(See)); + var csv = string.Join(", ", elementAttributeQualifiedNames.Select(See)); output.WriteLine($" /// has the following XML attributes: {csv}."); } if (elementClassNames.Any()) { - string csv = string.Join(", ", elementClassNames); + var csv = string.Join(", ", elementClassNames); output.WriteLine($" /// corresponds to the following strongly-typed classes: {csv}."); } @@ -252,13 +251,13 @@ string See(QName qName) if (attributeContainerQualifiedNames.Any()) { - string csv = string.Join(", ", attributeContainerQualifiedNames.Select(See)); + var csv = string.Join(", ", attributeContainerQualifiedNames.Select(See)); output.WriteLine($" /// is contained in the following XML elements: {csv}."); } if (attributePropertyNames.Any()) { - string csv = string.Join(", ", attributePropertyNames); + var csv = string.Join(", ", attributePropertyNames); output.WriteLine($" /// corresponds to the following strongly-typed properties: {csv}."); } @@ -277,263 +276,4 @@ string See(QName qName) // End class declaration. output.WriteLine(@" }"); } - - private static IEnumerable AssembleElementMetadata(IDictionary fieldInfos, OpenXmlGeneratorServices services) - { - var visitedElementTypes = new HashSet(); - var elementMetadataCollection = new List(); - - foreach (var model in services.DataSource.Namespaces) - { - foreach (var type in model.Types) - { - if (type.IsRootElement) - { - AssembleElementMetatata(null, type, services, visitedElementTypes, elementMetadataCollection, fieldInfos); - } - } - } - - return elementMetadataCollection; - } - - private static SchemaType AssembleElementMetatata( - SchemaType? parentMetadata, - SchemaType type, - OpenXmlGeneratorServices services, - HashSet visitedTypes, - ICollection elementMetadataCollection, - IDictionary fieldInfos) - { - elementMetadataCollection.Add(type); - - if (!fieldInfos.TryGetValue(type.Name.QName, out FieldInfo? fieldInfo)) - { - fieldInfo = new FieldInfo(type.Name.QName, services); - fieldInfos[type.Name.QName] = fieldInfo; - } - - fieldInfo.AddParentElementMetadata(parentMetadata); - fieldInfo.AddElementMetadata(type); - - if (visitedTypes.Add(type)) - { - foreach (var child in type.Children) - { - fieldInfo.AddChildElementMetadata( - AssembleElementMetatata(type, services.FindType(child.Name), services, visitedTypes, elementMetadataCollection, fieldInfos)); - } - } - - return type; - } - - private static void AssembleAttributeMetadata( - IEnumerable elementMetadataCollection, - IDictionary fieldInfos, - OpenXmlGeneratorServices services) - { - foreach (var elementMetadata in elementMetadataCollection) - { - AssembleAttributeMetadata(elementMetadata, fieldInfos, services); - } - } - - private static void AssembleAttributeMetadata( - SchemaType elementMetadata, - IDictionary fieldInfos, - OpenXmlGeneratorServices services) - { - foreach (var attributeMetadata in elementMetadata.Attributes) - { - if (!fieldInfos.TryGetValue(attributeMetadata.QName, out FieldInfo? fieldInfo)) - { - fieldInfo = new FieldInfo(attributeMetadata.QName, services); - fieldInfos[attributeMetadata.QName] = fieldInfo; - } - - fieldInfo.AddAttributeMetadata(elementMetadata, attributeMetadata); - } - } - - /// - /// Represents an XName field. - /// - internal class FieldInfo : IComparable, IEquatable - { - private readonly OpenXmlGeneratorServices _services; - - private readonly HashSet _elementMetadata = new(); - private readonly HashSet _parentMetadata = new(); - private readonly HashSet _childMetadata = new(); - - private readonly HashSet _attributeContainerMetadata = new(); - private readonly HashSet _attributeMetadata = new(); - - private readonly SortedSet _attributePropertyNames = new(); - - /// - /// Initializes a new instance with the given . - /// - /// The . - public FieldInfo(QName qName, OpenXmlGeneratorServices services) - { - QName = qName; - FieldName = qName.Name; - _services = services; - } - - /// - /// Gets the . - /// - public QName QName { get; } - - /// - /// Gets or sets the field name, e.g., "document". - /// - public string FieldName { get; set; } - - /// - /// Gets the qualified field name, e.g., "W.document". - /// - public string QualifiedFieldName => - Prefix != string.Empty - ? Prefix.ToUpperInvariant() + "." + FieldName - : EmptyNamespace + "." + FieldName; - - /// - /// Gets the XML prefix, e.g., "w". - /// - public string Prefix => QName.Prefix; - - /// - /// Gets the XML namespace name, e.g., "http://schemas.openxmlformats.org/wordprocessingml/2006/main". - /// - public string NamespaceName => _services.GetNamespaceInfo(QName.Prefix).Uri; - - /// - /// Gets the XML local name, e.g., "document". - /// - public string LocalName => QName.Name; - - /// - /// Gets the XML qualified name, e.g., "w:document". - /// - public string QualifiedName => string.IsNullOrEmpty(Prefix) ? LocalName : Prefix + ":" + LocalName; - - public IEnumerable ParentQualifiedNames => - _parentMetadata - .OrderBy(GetQualifiedName) - .Select(em => em.Name.QName) - .Distinct(); - - public IEnumerable ChildQualifiedNames => - _childMetadata - .OrderBy(GetQualifiedName) - .Select(em => em.Name.QName) - .Distinct(); - - public IEnumerable AttributeContainerQualifiedNames => - _attributeContainerMetadata - .OrderBy(GetQualifiedName) - .Select(em => em.Name.QName) - .Distinct(); - - public IEnumerable ElementAttributeQualifiedNames => - _elementMetadata - .SelectMany(em => em.Attributes) - .OrderBy(GetQualifiedName) - .Select(am => am.QName) - .Distinct(); - - public IEnumerable ElementClassNames => - _elementMetadata - .Select(e => _services.FindClassName(e.Name, fullyQualified: false)) - .Distinct() - .OrderBy(name => name); - - public IEnumerable AttributePropertyNames => _attributePropertyNames; - - private static string GetQualifiedName(SchemaType metadata) - { - return GetQualifiedName(metadata.Name.QName); - } - - private static string GetQualifiedName(SchemaAttribute metadata) - { - return GetQualifiedName(metadata.QName); - } - - private static string GetQualifiedName(QName qName) - => qName.ToString(); - - public void AddElementMetadata(SchemaType element) - { - _elementMetadata.Add(element); - } - - public void AddParentElementMetadata(SchemaType? parent) - { - if (parent is not null) - { - _parentMetadata.Add(parent); - } - } - - public void AddChildElementMetadata(SchemaType child) - { - _childMetadata.Add(child); - } - - public void AddAttributeMetadata(SchemaType element, SchemaAttribute attribute) - { - _attributeContainerMetadata.Add(element); - _attributeMetadata.Add(attribute); - - var className = _services.FindClassName(element.Name, fullyQualified: false); - _attributePropertyNames.Add(className + "." + attribute.PropertyName); - } - - /// - public int CompareTo(FieldInfo? other) - { - return other is null ? 1 : QName.CompareTo(other.QName); - } - - /// - public bool Equals(FieldInfo? other) - => other is not null && QName.Equals(other.QName); - - /// - public override bool Equals(object? obj) - { - if (obj is null) - { - return false; - } - - if (ReferenceEquals(this, obj)) - { - return true; - } - - return obj.GetType() == GetType() && Equals((FieldInfo)obj); - } - - /// - public override int GetHashCode() - { - return QName.GetHashCode(); - } - - public static bool operator ==(FieldInfo? left, FieldInfo? right) - { - return Equals(left, right); - } - - public static bool operator !=(FieldInfo? left, FieldInfo? right) - { - return !Equals(left, right); - } - } } diff --git a/gen/DocumentFormat.OpenXml.Generator.Models/Generators/Linq/LinqVisitor.cs b/gen/DocumentFormat.OpenXml.Generator.Models/Generators/Linq/LinqVisitor.cs new file mode 100644 index 000000000..251e17219 --- /dev/null +++ b/gen/DocumentFormat.OpenXml.Generator.Models/Generators/Linq/LinqVisitor.cs @@ -0,0 +1,124 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using DocumentFormat.OpenXml.Generator.Models; + +namespace DocumentFormat.OpenXml.Generator; + +internal class LinqVisitor(OpenXmlGeneratorServices services) +{ + private readonly Dictionary _fields = []; + private readonly HashSet _visitedTypes = []; + private readonly HashSet _classNames = []; + + public IReadOnlyDictionary Visit() + { + foreach (var ns in services.DataSource.Namespaces) + { + VisitNamespace(ns); + } + + return _fields; + } + + public void VisitNamespace(SchemaNamespace ns) + { + foreach (var type in ns.Types) + { + if (type.IsRootElement) + { + VisitType(null, type); + } + } + } + + private FieldInfo GetInfo(QName qname) + { + if (!_fields.TryGetValue(qname, out var fieldInfo)) + { + fieldInfo = new FieldInfo(qname, services); + _fields.Add(qname, fieldInfo); + } + + return fieldInfo; + } + + public void VisitType(SchemaType? parent, SchemaType type) + { + var typeField = GetInfo(type.Name.QName); + typeField.AddElementMetadata(type); + typeField.AddParentElementMetadata(parent); + + if (_visitedTypes.Add(type)) + { + foreach (var attribute in type.Attributes) + { + var field = VisitAttribute(attribute); + + field.AddAttributeMetadata(type, attribute); + } + + foreach (var child in type.Children) + { + var childType = services.FindType(child.Name); + VisitType(type, childType); + + typeField.AddChildElementMetadata(childType); + } + + var @base = type.BaseClass; + + while (!string.IsNullOrEmpty(@base)) + { + if (_classNames.Add(@base!)) + { + if (FindBaseClass(@base) is { } foundElements) + { + foreach (var found in foundElements) + { + VisitType(parent, found); + @base = found.BaseClass; + } + + continue; + } + } + + @base = null; + } + } + } + + private IEnumerable FindBaseClass(string? className) + { + if (className is { }) + { + // Fallback to known types implemented in the SDK + if (_knownBaseClasses.TryGetValue(className, out var known)) + { + foreach (var typeName in known) + { + if (services.TryFindType(typeName, out var type)) + { + yield return type; + } + } + } + else if (services.DataSource.TypedClasses.FirstOrDefault(t => t.ClassName == className) is { } @class && services.TryFindType(@class.Name, out var found)) + { + yield return found; + } + } + } + + // This is for custom base classes the SDK adds that are not fully in the dataset so that the LINQ generation can pick them up and include them in the output + private static readonly Dictionary> _knownBaseClasses = new() + { + { "SdtElement", ["w:CT_SdtPr/w:sdtPr", "w:CT_SdtPr/w:sdtEndPr"] }, + }; + + public FieldInfo VisitAttribute(SchemaAttribute attribute) + { + return GetInfo(attribute.QName); + } +} diff --git a/gen/DocumentFormat.OpenXml.Generator.Models/Models/QName.cs b/gen/DocumentFormat.OpenXml.Generator.Models/Models/QName.cs index 08eb7b3d2..bd14a5377 100644 --- a/gen/DocumentFormat.OpenXml.Generator.Models/Models/QName.cs +++ b/gen/DocumentFormat.OpenXml.Generator.Models/Models/QName.cs @@ -69,4 +69,6 @@ public int CompareTo(QName other) } public static implicit operator string(QName qname) => qname.ToString(); + + public static implicit operator QName(string qname) => Parse(qname); } diff --git a/gen/DocumentFormat.OpenXml.Generator.Models/Models/TypedQName.cs b/gen/DocumentFormat.OpenXml.Generator.Models/Models/TypedQName.cs index ec349b714..61c2fc14f 100644 --- a/gen/DocumentFormat.OpenXml.Generator.Models/Models/TypedQName.cs +++ b/gen/DocumentFormat.OpenXml.Generator.Models/Models/TypedQName.cs @@ -27,5 +27,19 @@ public int CompareTo(TypedQName other) return QName.CompareTo(other.QName); } + public static TypedQName Parse(string input) + { + var split = input.Split('/'); + + if (split.Length == 2) + { + return new(split[0], split[1]); + } + + throw new FormatException("Invalid TypedQName"); + } + public override string ToString() => $"{Type}/{QName}"; + + public static implicit operator TypedQName(string typed) => Parse(typed); } diff --git a/gen/DocumentFormat.OpenXml.Generator.Models/OpenXmlGeneratorServices.cs b/gen/DocumentFormat.OpenXml.Generator.Models/OpenXmlGeneratorServices.cs index f68ae88de..a44365322 100644 --- a/gen/DocumentFormat.OpenXml.Generator.Models/OpenXmlGeneratorServices.cs +++ b/gen/DocumentFormat.OpenXml.Generator.Models/OpenXmlGeneratorServices.cs @@ -4,6 +4,7 @@ using DocumentFormat.OpenXml.Generator.Models; using DocumentFormat.OpenXml.Generator.Schematron; using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Generator; @@ -13,7 +14,6 @@ public class OpenXmlGeneratorServices private readonly Dictionary _namespacesByUri; private readonly Dictionary _prefixToApi; private readonly Dictionary _lookup; - private readonly ILookup<(string ClassName, string Prefix), StronglyTypedElement> _classNameLookup; private readonly Dictionary<(QName Type, string), StronglyTypedElement> _partLookup; private readonly Dictionary _enums; private readonly Dictionary _parts; @@ -25,7 +25,6 @@ public OpenXmlGeneratorServices(OpenXmlGeneratorDataSource context) _namespacesByPrefix = context.KnownNamespaces.ToDictionary(i => i.Prefix); _namespacesByUri = context.KnownNamespaces.ToDictionary(i => i.Uri); _lookup = context.TypedClasses.ToDictionary(t => t.Name); - _classNameLookup = context.TypedClasses.ToLookup(t => (t.ClassName, t.Name.Type.Prefix)); _types = context.Namespaces .SelectMany(t => t.Types) @@ -75,6 +74,8 @@ public IEnumerable GetSchematrons(QName qname) public SchemaType FindType(TypedQName type) => _types[type]; + public bool TryFindType(TypedQName type, [MaybeNullWhen(false)] out SchemaType schemaType) => _types.TryGetValue(type, out schemaType) && schemaType is { }; + public bool TryGetPartClassName(QName? type, string name, out (string Namespace, string Class) apiName) { if (type is not null && _partLookup.TryGetValue((type, name), out var result) && _prefixToApi.TryGetValue(result.Name.QName.Prefix, out var ns)) diff --git a/gen/DocumentFormat.OpenXml.Generator/Properties/launchSettings.json b/gen/DocumentFormat.OpenXml.Generator/Properties/launchSettings.json index 0ccc6f551..bb173f194 100644 --- a/gen/DocumentFormat.OpenXml.Generator/Properties/launchSettings.json +++ b/gen/DocumentFormat.OpenXml.Generator/Properties/launchSettings.json @@ -1,8 +1,12 @@ { "profiles": { - "Generator": { + "SDK Generator": { "commandName": "DebugRoslynComponent", "targetProject": "..\\..\\src\\DocumentFormat.OpenXml\\DocumentFormat.OpenXml.csproj" + }, + "LINQ Code Generator": { + "commandName": "DebugRoslynComponent", + "targetProject": "..\\..\\src\\DocumentFormat.OpenXml.Linq\\DocumentFormat.OpenXml.Linq.csproj" } } } \ No newline at end of file diff --git a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.A.g.cs b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.A.g.cs index 75b171fc6..ee852f5fd 100644 --- a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.A.g.cs +++ b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.A.g.cs @@ -398,7 +398,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , . /// corresponds to the following strongly-typed classes: Bevel, LineJoinBevel. /// /// @@ -630,7 +630,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , , . /// has the following XML attributes: , . /// corresponds to the following strongly-typed classes: AutoNumberedBullet. /// @@ -643,7 +643,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , , . /// has the following child XML elements: . /// corresponds to the following strongly-typed classes: PictureBullet. /// @@ -656,7 +656,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , , . /// has the following XML attributes: . /// corresponds to the following strongly-typed classes: CharacterBullet. /// @@ -669,7 +669,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , . /// has the following child XML elements: , , , , , . /// corresponds to the following strongly-typed classes: BulletColor. /// @@ -682,7 +682,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , . /// corresponds to the following strongly-typed classes: BulletColorText. /// /// @@ -694,7 +694,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , . /// corresponds to the following strongly-typed classes: BulletFont. /// /// @@ -706,7 +706,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , . /// corresponds to the following strongly-typed classes: BulletFontText. /// /// @@ -718,7 +718,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , , . /// corresponds to the following strongly-typed classes: NoBullet. /// /// @@ -730,7 +730,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , . /// has the following XML attributes: . /// corresponds to the following strongly-typed classes: BulletSizePercentage. /// @@ -743,7 +743,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , . /// has the following XML attributes: . /// corresponds to the following strongly-typed classes: BulletSizePoints. /// @@ -756,7 +756,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , . /// corresponds to the following strongly-typed classes: BulletSizeText. /// /// @@ -1096,7 +1096,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , . /// has the following child XML elements: . /// corresponds to the following strongly-typed classes: CustomDash. /// @@ -1189,7 +1189,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , . /// has the following child XML elements: , , , , , , , , , , , , , , , , , , , , , . /// corresponds to the following strongly-typed classes: DefaultRunProperties. /// @@ -1409,7 +1409,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . /// has the following child XML elements: . /// corresponds to the following strongly-typed classes: BlipExtensionList, ConnectorLockingExtensionList, ExtensionList, GvmlGroupShapeExtensionList, HyperlinkExtensionList, LinePropertiesExtensionList, NonVisualDrawingPropertiesExtensionList, NonVisualGroupDrawingShapePropsExtensionList, NonVisualPicturePropertiesExtensionList, OfficeStyleSheetExtensionList, ShapePropertiesExtensionList. /// @@ -1725,7 +1725,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . /// has the following child XML elements: , , , . /// has the following XML attributes: , . /// corresponds to the following strongly-typed classes: GradientFill. @@ -1947,7 +1947,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , . /// corresponds to the following strongly-typed classes: HeadEnd. /// /// @@ -2037,7 +2037,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . /// has the following child XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , . /// has the following XML attributes: , , . /// corresponds to the following strongly-typed classes: HslColor. @@ -2322,7 +2322,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , . /// has the following child XML elements: , . /// corresponds to the following strongly-typed classes: LineSpacing. /// @@ -2618,7 +2618,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , . /// has the following XML attributes: . /// corresponds to the following strongly-typed classes: Miter. /// @@ -2669,7 +2669,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . /// corresponds to the following strongly-typed classes: NoFill. /// /// @@ -2876,7 +2876,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . /// has the following child XML elements: , . /// has the following XML attributes: . /// corresponds to the following strongly-typed classes: PatternFill. @@ -2942,7 +2942,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . /// has the following child XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , . /// has the following XML attributes: . /// corresponds to the following strongly-typed classes: PresetColor. @@ -2956,7 +2956,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , . /// has the following XML attributes: . /// corresponds to the following strongly-typed classes: PresetDash. /// @@ -3164,7 +3164,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , . /// corresponds to the following strongly-typed classes: Round. /// /// @@ -3251,7 +3251,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . /// has the following child XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , . /// has the following XML attributes: . /// corresponds to the following strongly-typed classes: SchemeColor. @@ -3265,7 +3265,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . /// has the following child XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , . /// has the following XML attributes: , , . /// corresponds to the following strongly-typed classes: RgbColorModelPercentage. @@ -3329,7 +3329,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . /// has the following child XML elements: , , , , , . /// corresponds to the following strongly-typed classes: SolidFill. /// @@ -3381,7 +3381,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , . /// has the following child XML elements: , . /// corresponds to the following strongly-typed classes: SpaceAfter. /// @@ -3394,7 +3394,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , . /// has the following child XML elements: , . /// corresponds to the following strongly-typed classes: SpaceBefore. /// @@ -3486,7 +3486,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . /// has the following child XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , . /// has the following XML attributes: , . /// corresponds to the following strongly-typed classes: RgbColorModelHex. @@ -3599,7 +3599,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . /// has the following child XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , . /// has the following XML attributes: , . /// corresponds to the following strongly-typed classes: SystemColor. @@ -3663,7 +3663,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , . /// has the following child XML elements: . /// corresponds to the following strongly-typed classes: TabStopList. /// @@ -3676,7 +3676,7 @@ public static partial class A /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , . /// corresponds to the following strongly-typed classes: TailEnd. /// /// diff --git a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.AM3D.g.cs b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.AM3D.g.cs new file mode 100644 index 000000000..b42a9201d --- /dev/null +++ b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.AM3D.g.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System.Xml.Linq; + +namespace DocumentFormat.OpenXml.Linq +{ + /// + /// Declares XNamespace and XName fields for the xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" namespace. + /// + public static partial class AM3D + { + /// + /// Defines the XML namespace associated with the am3d prefix. + /// + public static readonly XNamespace am3d = "http://schemas.microsoft.com/office/drawing/2017/model3d"; + + /// + /// Represents the am3d:clr XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// has the following child XML elements: , , , , , . + /// corresponds to the following strongly-typed classes: ColorType. + /// + /// + public static readonly XName clr = am3d + "clr"; + } +} diff --git a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.C.g.cs b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.C.g.cs index 6d6c569ac..33b49ff02 100644 --- a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.C.g.cs +++ b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.C.g.cs @@ -808,7 +808,7 @@ public static partial class C /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . /// has the following child XML elements: . /// corresponds to the following strongly-typed classes: Area3DChartExtensionList, AreaChartExtensionList, AreaSerExtensionList, Bar3DChartExtensionList, BarChartExtensionList, BarSerExtensionList, BubbleChartExtensionList, BubbleSerExtensionList, CatAxExtensionList, ChartExtensionList, ChartSpaceExtensionList, DateAxExtensionList, DLblExtensionList, DLblsExtensionList, ExtensionList, Line3DChartExtensionList, LineChartExtensionList, LineSerExtensionList, MultiLvlStrRefExtensionList, NumRefExtensionList, Pie3DChartExtensionList, PieChartExtensionList, PieSerExtensionList, RadarChartExtensionList, RadarSerExtensionList, ScatterChartExtensionList, ScatterSerExtensionList, SerAxExtensionList, StockChartExtensionList, StrDataExtensionList, StrRefExtensionList, Surface3DChartExtensionList, SurfaceChartExtensionList, SurfaceSerExtensionList, ValAxExtensionList. /// @@ -895,7 +895,7 @@ public static partial class C /// /// As an XML element, it: /// - /// has the following parent XML elements: , . + /// has the following parent XML elements: , , . /// corresponds to the following strongly-typed classes: FormatCode. /// /// @@ -1858,7 +1858,7 @@ public static partial class C /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , . + /// has the following parent XML elements: , , , , , , , , . /// has the following child XML elements: . /// has the following XML attributes: , . /// corresponds to the following strongly-typed classes: NumericPoint, StringPoint. @@ -1872,7 +1872,7 @@ public static partial class C /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , . + /// has the following parent XML elements: , , , , , , , , . /// corresponds to the following strongly-typed classes: PointCount. /// /// diff --git a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.C15.g.cs b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.C15.g.cs index 5c4a195ff..730c3343e 100644 --- a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.C15.g.cs +++ b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.C15.g.cs @@ -45,7 +45,7 @@ public static partial class C15 /// /// As an XML element, it: /// - /// has the following parent XML elements: . + /// has the following parent XML elements: , . /// has the following child XML elements: , , , , . /// corresponds to the following strongly-typed classes: AxisDataSourceType. /// diff --git a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.C16.g.cs b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.C16.g.cs index cd376a6f6..17801095a 100644 --- a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.C16.g.cs +++ b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.C16.g.cs @@ -85,7 +85,7 @@ public static partial class C16 /// /// As an XML element, it: /// - /// has the following parent XML elements: , . + /// has the following parent XML elements: , , . /// has the following XML attributes: . /// corresponds to the following strongly-typed classes: UnsignedIntegerType. /// @@ -117,6 +117,19 @@ public static partial class C16 /// public static readonly XName marker = c16 + "marker"; + /// + /// Represents the c16:numCache XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// has the following child XML elements: , , , . + /// corresponds to the following strongly-typed classes: NumberDataType. + /// + /// + public static readonly XName numCache = c16 + "numCache"; + /// /// Represents the c16:pivotOptions16 XML element. /// @@ -182,6 +195,19 @@ public static partial class C16 /// public static readonly XName spPr = c16 + "spPr"; + /// + /// Represents the c16:strCache XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// has the following child XML elements: , , . + /// corresponds to the following strongly-typed classes: StringDataType. + /// + /// + public static readonly XName strCache = c16 + "strCache"; + /// /// Represents the c16:uniqueId XML element. /// diff --git a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.CS.g.cs b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.CS.g.cs index 9b8e78c2e..7687c951c 100644 --- a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.CS.g.cs +++ b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.CS.g.cs @@ -219,7 +219,7 @@ public static partial class CS /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . /// has the following child XML elements: , , , , , , , , , , , , , , , , , , , , , . /// has the following XML attributes: , , , , , , , , , , , , , , , , , , . /// corresponds to the following strongly-typed classes: TextCharacterPropertiesType. diff --git a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.CX.g.cs b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.CX.g.cs index f2cc0bd20..b0c505c03 100644 --- a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.CX.g.cs +++ b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.CX.g.cs @@ -198,7 +198,7 @@ public static partial class CX /// /// As an XML element, it: /// - /// has the following parent XML elements: . + /// has the following parent XML elements: , . /// has the following child XML elements: . /// has the following XML attributes: , , , , , , , , , , , . /// corresponds to the following strongly-typed classes: ColorMappingType. diff --git a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.DGM1612.g.cs b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.DGM1612.g.cs index 7b37c1e97..e1802a307 100644 --- a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.DGM1612.g.cs +++ b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.DGM1612.g.cs @@ -21,7 +21,7 @@ public static partial class DGM1612 /// /// As an XML element, it: /// - /// has the following parent XML elements: , . + /// has the following parent XML elements: , , . /// has the following child XML elements: , , , , , , , , , , . /// corresponds to the following strongly-typed classes: TextListStyleType. /// diff --git a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.NoNamespace.g.cs b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.NoNamespace.g.cs index efab1a928..debe151e3 100644 --- a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.NoNamespace.g.cs +++ b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.NoNamespace.g.cs @@ -509,8 +509,8 @@ public static partial class NoNamespace /// /// As an XML attribute, it: /// - /// is contained in the following XML elements: , , , , . - /// corresponds to the following strongly-typed properties: HiddenLineProperties.Alignment, OuterShadow.Alignment, Reflection.Alignment, TabStop.Alignment, Tile.Alignment. + /// is contained in the following XML elements: , , , , , , . + /// corresponds to the following strongly-typed properties: HiddenLineProperties.Alignment, LinePropertiesType.Alignment, OuterShadow.Alignment, Reflection.Alignment, TabStop.Alignment, TextParagraphPropertiesType.Alignment, Tile.Alignment. /// /// public static readonly XName algn = "algn"; @@ -2525,8 +2525,8 @@ public static partial class NoNamespace /// /// As an XML attribute, it: /// - /// is contained in the following XML elements: , , . - /// corresponds to the following strongly-typed properties: HiddenLineProperties.CapType, PageField.Caption, TextCharacterPropertiesType.Capital. + /// is contained in the following XML elements: , , , . + /// corresponds to the following strongly-typed properties: HiddenLineProperties.CapType, LinePropertiesType.CapType, PageField.Caption, TextCharacterPropertiesType.Capital. /// /// public static readonly XName cap = "cap"; @@ -3084,13 +3084,13 @@ public static partial class NoNamespace public static readonly XName cmd = "cmd"; /// - /// Represents the cmpd XML attribute. + /// Represents the cmpd XML attributes. /// /// /// As an XML attribute, it: /// - /// is contained in the following XML elements: . - /// corresponds to the following strongly-typed properties: HiddenLineProperties.CompoundLineType. + /// is contained in the following XML elements: , . + /// corresponds to the following strongly-typed properties: HiddenLineProperties.CompoundLineType, LinePropertiesType.CompoundLineType. /// /// public static readonly XName cmpd = "cmpd"; @@ -5171,6 +5171,18 @@ public static partial class NoNamespace /// public static readonly XName defStyle = "defStyle"; + /// + /// Represents the defTabSz XML attribute. + /// + /// + /// As an XML attribute, it: + /// + /// is contained in the following XML elements: . + /// corresponds to the following strongly-typed properties: TextParagraphPropertiesType.DefaultTabSize. + /// + /// + public static readonly XName defTabSz = "defTabSz"; + /// /// Represents the degree XML attribute. /// @@ -6239,6 +6251,18 @@ public static partial class NoNamespace /// public static readonly XName e = "e"; + /// + /// Represents the eaLnBrk XML attribute. + /// + /// + /// As an XML attribute, it: + /// + /// is contained in the following XML elements: . + /// corresponds to the following strongly-typed properties: TextParagraphPropertiesType.EastAsianLineBreak. + /// + /// + public static readonly XName eaLnBrk = "eaLnBrk"; + /// /// Represents the east XML attribute. /// @@ -7811,6 +7835,18 @@ public static partial class NoNamespace /// public static readonly XName followColorScheme = "followColorScheme"; + /// + /// Represents the fontAlgn XML attribute. + /// + /// + /// As an XML attribute, it: + /// + /// is contained in the following XML elements: . + /// corresponds to the following strongly-typed properties: TextParagraphPropertiesType.FontAlignment. + /// + /// + public static readonly XName fontAlgn = "fontAlgn"; + /// /// Represents the fontId XML attributes. /// @@ -8963,6 +8999,18 @@ public static partial class NoNamespace /// public static readonly XName h = "h"; + /// + /// Represents the hangingPunct XML attribute. + /// + /// + /// As an XML attribute, it: + /// + /// is contained in the following XML elements: . + /// corresponds to the following strongly-typed properties: TextParagraphPropertiesType.Height. + /// + /// + public static readonly XName hangingPunct = "hangingPunct"; + /// /// Represents the hasBounce XML attribute. /// @@ -10037,8 +10085,8 @@ public static partial class NoNamespace /// /// As an XML attribute, it: /// - /// is contained in the following XML elements: , . - /// corresponds to the following strongly-typed properties: Alignment.Indent, PivotTableDefinition.Indent. + /// is contained in the following XML elements: , , . + /// corresponds to the following strongly-typed properties: Alignment.Indent, PivotTableDefinition.Indent, TextParagraphPropertiesType.Indent. /// /// public static readonly XName indent = "indent"; @@ -11039,6 +11087,18 @@ public static partial class NoNamespace /// public static readonly XName latestEventMarker = "latestEventMarker"; + /// + /// Represents the latinLnBrk XML attribute. + /// + /// + /// As an XML attribute, it: + /// + /// is contained in the following XML elements: . + /// corresponds to the following strongly-typed properties: TextParagraphPropertiesType.LatinLineBreak. + /// + /// + public static readonly XName latinLnBrk = "latinLnBrk"; + /// /// Represents the latitude XML attributes. /// @@ -11801,8 +11861,8 @@ public static partial class NoNamespace /// /// As an XML attribute, it: /// - /// is contained in the following XML elements: , , . - /// corresponds to the following strongly-typed properties: NumberDiagramInfo.Lvl, OleChartElement.Level, Template.Level. + /// is contained in the following XML elements: , , , . + /// corresponds to the following strongly-typed properties: NumberDiagramInfo.Lvl, OleChartElement.Level, Template.Level, TextParagraphPropertiesType.Level. /// /// public static readonly XName lvl = "lvl"; @@ -11964,25 +12024,25 @@ public static partial class NoNamespace public static readonly XName markers = "markers"; /// - /// Represents the marL XML attribute. + /// Represents the marL XML attributes. /// /// /// As an XML attribute, it: /// - /// is contained in the following XML elements: . - /// corresponds to the following strongly-typed properties: TableCellProperties.LeftMargin. + /// is contained in the following XML elements: , . + /// corresponds to the following strongly-typed properties: TableCellProperties.LeftMargin, TextParagraphPropertiesType.LeftMargin. /// /// public static readonly XName marL = "marL"; /// - /// Represents the marR XML attribute. + /// Represents the marR XML attributes. /// /// /// As an XML attribute, it: /// - /// is contained in the following XML elements: . - /// corresponds to the following strongly-typed properties: TableCellProperties.RightMargin. + /// is contained in the following XML elements: , . + /// corresponds to the following strongly-typed properties: TableCellProperties.RightMargin, TextParagraphPropertiesType.RightMargin. /// /// public static readonly XName marR = "marR"; @@ -17045,8 +17105,8 @@ public static partial class NoNamespace /// /// As an XML attribute, it: /// - /// is contained in the following XML elements: , . - /// corresponds to the following strongly-typed properties: Presentation.RightToLeft, TableProperties.RightToLeft. + /// is contained in the following XML elements: , , . + /// corresponds to the following strongly-typed properties: Presentation.RightToLeft, TableProperties.RightToLeft, TextParagraphPropertiesType.RightToLeft. /// /// public static readonly XName rtl = "rtl"; @@ -22445,8 +22505,8 @@ public static partial class NoNamespace /// /// As an XML attribute, it: /// - /// is contained in the following XML elements: , , , . - /// corresponds to the following strongly-typed properties: GridColumn.Width, HiddenLineProperties.Width, Path.Width, WebVideoProperty.Width. + /// is contained in the following XML elements: , , , , . + /// corresponds to the following strongly-typed properties: GridColumn.Width, HiddenLineProperties.Width, LinePropertiesType.Width, Path.Width, WebVideoProperty.Width. /// /// public static readonly XName w = "w"; @@ -22685,7 +22745,7 @@ public static partial class NoNamespace /// /// As an XML attribute, it: /// - /// is contained in the following XML elements: , , , , , , , , . + /// is contained in the following XML elements: , , , , , , , , , . /// corresponds to the following strongly-typed properties: Anchor.X, Field.Index, FieldUsage.Index, Item.Index, NameIndex.Index, Point2DType.X, Position.X, TabularSlicerCacheItem.Atom, TracePoint.XCoordinate. /// /// @@ -22877,7 +22937,7 @@ public static partial class NoNamespace /// /// As an XML attribute, it: /// - /// is contained in the following XML elements: , , , . + /// is contained in the following XML elements: , , , , . /// corresponds to the following strongly-typed properties: Anchor.Y, Point2DType.Y, Position.Y, TracePoint.YCoordinate. /// /// diff --git a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.OAC.g.cs b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.OAC.g.cs index 33bbce1cf..8bf4d2767 100644 --- a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.OAC.g.cs +++ b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.OAC.g.cs @@ -303,6 +303,20 @@ public static partial class OAC /// public static readonly XName inkMkLst = oac + "inkMkLst"; + /// + /// Represents the oac:lineProps XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// has the following child XML elements: , , , , , , , , , , , . + /// has the following XML attributes: , , , . + /// corresponds to the following strongly-typed classes: LinePropertiesType. + /// + /// + public static readonly XName lineProps = oac + "lineProps"; + /// /// Represents the oac:model3DMkLst XML element. /// @@ -315,6 +329,19 @@ public static partial class OAC /// public static readonly XName model3DMkLst = oac + "model3DMkLst"; + /// + /// Represents the oac:off XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// has the following XML attributes: , . + /// corresponds to the following strongly-typed classes: Point2DType. + /// + /// + public static readonly XName off = oac + "off"; + /// /// Represents the oac:origImgData XML element. /// @@ -352,6 +379,20 @@ public static partial class OAC /// public static readonly XName picMkLst = oac + "picMkLst"; + /// + /// Represents the oac:pPr XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// has the following child XML elements: , , , , , , , , , , , , , , , , . + /// has the following XML attributes: , , , , , , , , , , . + /// corresponds to the following strongly-typed classes: TextParagraphPropertiesType. + /// + /// + public static readonly XName pPr = oac + "pPr"; + /// /// Represents the oac:spMk XML element. /// diff --git a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.P188.g.cs b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.P188.g.cs index db91f472d..4d85ad5a8 100644 --- a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.P188.g.cs +++ b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.P188.g.cs @@ -141,7 +141,7 @@ public static partial class P188 /// /// As an XML element, it: /// - /// has the following parent XML elements: , . + /// has the following parent XML elements: , , . /// has the following child XML elements: , , . /// corresponds to the following strongly-typed classes: TextBodyType. /// diff --git a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.W.g.cs b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.W.g.cs index 6c2c88d4b..4cdf9249e 100644 --- a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.W.g.cs +++ b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.W.g.cs @@ -275,6 +275,18 @@ public static partial class W /// public static readonly XName algorithmName = w + "algorithmName"; + /// + /// Represents the w:alias XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// corresponds to the following strongly-typed classes: SdtAlias. + /// + /// + public static readonly XName alias = w + "alias"; + /// /// Represents the w:aliases XML element. /// @@ -874,6 +886,18 @@ public static partial class W /// public static readonly XName bg2 = w + "bg2"; + /// + /// Represents the w:bibliography XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// corresponds to the following strongly-typed classes: SdtContentBibliography. + /// + /// + public static readonly XName bibliography = w + "bibliography"; + /// /// Represents the w:bidi XML element. /// @@ -1086,6 +1110,19 @@ public static partial class W /// public static readonly XName calcOnExit = w + "calcOnExit"; + /// + /// Represents the w:calendar XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// has the following XML attributes: . + /// corresponds to the following strongly-typed classes: Calendar. + /// + /// + public static readonly XName calendar = w + "calendar"; + /// /// Represents the w:cantSplit XML element. /// @@ -1338,6 +1375,18 @@ public static partial class W /// public static readonly XName checkStyle = w + "checkStyle"; + /// + /// Represents the w:citation XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// corresponds to the following strongly-typed classes: SdtContentCitation. + /// + /// + public static readonly XName citation = w + "citation"; + /// /// Represents the w:clear XML attribute. /// @@ -1529,6 +1578,20 @@ public static partial class W /// public static readonly XName combineBrackets = w + "combineBrackets"; + /// + /// Represents the w:comboBox XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// has the following child XML elements: . + /// has the following XML attributes: . + /// corresponds to the following strongly-typed classes: SdtContentComboBox. + /// + /// + public static readonly XName comboBox = w + "comboBox"; + /// /// Represents the w:comment XML element. /// @@ -2040,6 +2103,19 @@ public static partial class W /// public static readonly XName customXmlMoveToRangeStart = w + "customXmlMoveToRangeStart"; + /// + /// Represents the w:dataBinding XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// has the following XML attributes: , , . + /// corresponds to the following strongly-typed classes: DataBinding. + /// + /// + public static readonly XName dataBinding = w + "dataBinding"; + /// /// Represents the w:dataSource XML element. /// @@ -2066,9 +2142,16 @@ public static partial class W public static readonly XName dataType = w + "dataType"; /// - /// Represents the w:date XML attributes. + /// Represents the w:date XML element and attributes. /// /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// has the following child XML elements: , , , . + /// has the following XML attributes: . + /// corresponds to the following strongly-typed classes: SdtContentDate. + /// /// As an XML attribute, it: /// /// is contained in the following XML elements: , , , , , , , , , , , . @@ -2077,6 +2160,18 @@ public static partial class W /// public static readonly XName date = w + "date"; + /// + /// Represents the w:dateFormat XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// corresponds to the following strongly-typed classes: DateFormat. + /// + /// + public static readonly XName dateFormat = w + "dateFormat"; + /// /// Represents the w:dayLong XML element. /// @@ -2442,6 +2537,18 @@ public static partial class W /// public static readonly XName displayHorizontalDrawingGridEvery = w + "displayHorizontalDrawingGridEvery"; + /// + /// Represents the w:displayText XML attribute. + /// + /// + /// As an XML attribute, it: + /// + /// is contained in the following XML elements: . + /// corresponds to the following strongly-typed properties: ListItem.DisplayText. + /// + /// + public static readonly XName displayText = w + "displayText"; + /// /// Represents the w:displayVerticalDrawingGridEvery XML element. /// @@ -2583,14 +2690,14 @@ public static partial class W public static readonly XName docLocation = w + "docLocation"; /// - /// Represents the w:docPart XML element. + /// Represents the w:docPart XML elements. /// /// /// As an XML element, it: /// - /// has the following parent XML elements: . + /// has the following parent XML elements: , . /// has the following child XML elements: , . - /// corresponds to the following strongly-typed classes: DocPart. + /// corresponds to the following strongly-typed classes: DocPart, DocPartReference. /// /// public static readonly XName docPart = w + "docPart"; @@ -2608,6 +2715,56 @@ public static partial class W /// public static readonly XName docPartBody = w + "docPartBody"; + /// + /// Represents the w:docPartCategory XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: , . + /// corresponds to the following strongly-typed classes: DocPartCategory. + /// + /// + public static readonly XName docPartCategory = w + "docPartCategory"; + + /// + /// Represents the w:docPartGallery XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: , . + /// corresponds to the following strongly-typed classes: DocPartGallery. + /// + /// + public static readonly XName docPartGallery = w + "docPartGallery"; + + /// + /// Represents the w:docPartList XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// has the following child XML elements: , , . + /// corresponds to the following strongly-typed classes: SdtContentDocPartList. + /// + /// + public static readonly XName docPartList = w + "docPartList"; + + /// + /// Represents the w:docPartObj XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// has the following child XML elements: , , . + /// corresponds to the following strongly-typed classes: SdtContentDocPartObject. + /// + /// + public static readonly XName docPartObj = w + "docPartObj"; + /// /// Represents the w:docPartPr XML element. /// @@ -2634,6 +2791,18 @@ public static partial class W /// public static readonly XName docParts = w + "docParts"; + /// + /// Represents the w:docPartUnique XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: , . + /// corresponds to the following strongly-typed classes: DocPartUnique. + /// + /// + public static readonly XName docPartUnique = w + "docPartUnique"; + /// /// Represents the w:document XML element. /// @@ -3133,6 +3302,20 @@ public static partial class W /// public static readonly XName dropCap = w + "dropCap"; + /// + /// Represents the w:dropDownList XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// has the following child XML elements: . + /// has the following XML attributes: . + /// corresponds to the following strongly-typed classes: SdtContentDropDownList. + /// + /// + public static readonly XName dropDownList = w + "dropDownList"; + /// /// Represents the w:dstrike XML element. /// @@ -3528,6 +3711,18 @@ public static partial class W /// public static readonly XName equalWidth = w + "equalWidth"; + /// + /// Represents the w:equation XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// corresponds to the following strongly-typed classes: SdtContentEquation. + /// + /// + public static readonly XName equation = w + "equation"; + /// /// Represents the w:evenAndOddHeaders XML element. /// @@ -4147,6 +4342,18 @@ public static partial class W /// public static readonly XName ftr = w + "ftr"; + /// + /// Represents the w:fullDate XML attribute. + /// + /// + /// As an XML attribute, it: + /// + /// is contained in the following XML elements: . + /// corresponds to the following strongly-typed properties: SdtContentDate.FullDate. + /// + /// + public static readonly XName fullDate = w + "fullDate"; + /// /// Represents the w:gallery XML element. /// @@ -4234,6 +4441,18 @@ public static partial class W /// public static readonly XName gridSpan = w + "gridSpan"; + /// + /// Represents the w:group XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// corresponds to the following strongly-typed classes: SdtContentGroup. + /// + /// + public static readonly XName group = w + "group"; + /// /// Represents the w:growAutofit XML element. /// @@ -4705,9 +4924,14 @@ public static partial class W public static readonly XName iCs = w + "iCs"; /// - /// Represents the w:id XML attributes. + /// Represents the w:id XML element and attributes. /// /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// corresponds to the following strongly-typed classes: SdtId. + /// /// As an XML attribute, it: /// /// is contained in the following XML elements: , , , , , , , , , , , , , , , , , , . @@ -5020,6 +5244,18 @@ public static partial class W /// public static readonly XName lastRowLastColumn = w + "lastRowLastColumn"; + /// + /// Represents the w:lastValue XML attributes. + /// + /// + /// As an XML attribute, it: + /// + /// is contained in the following XML elements: , . + /// corresponds to the following strongly-typed properties: SdtContentComboBox.LastValue, SdtContentDropDownList.LastValue. + /// + /// + public static readonly XName lastValue = w + "lastValue"; + /// /// Represents the w:latentStyles XML element and attribute. /// @@ -5164,7 +5400,7 @@ public static partial class W /// /// As an XML element, it: /// - /// has the following parent XML elements: , . + /// has the following parent XML elements: , , . /// has the following XML attributes: . /// corresponds to the following strongly-typed classes: LanguageId. /// @@ -5291,6 +5527,19 @@ public static partial class W /// public static readonly XName listEntry = w + "listEntry"; + /// + /// Represents the w:listItem XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: , . + /// has the following XML attributes: , . + /// corresponds to the following strongly-typed classes: ListItem. + /// + /// + public static readonly XName listItem = w + "listItem"; + /// /// Represents the w:listSeparator XML element. /// @@ -5316,6 +5565,19 @@ public static partial class W /// public static readonly XName lnNumType = w + "lnNumType"; + /// + /// Represents the w:lock XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// has the following XML attributes: . + /// corresponds to the following strongly-typed classes: Lock. + /// + /// + public static readonly XName @lock = w + "lock"; + /// /// Represents the w:locked XML element and attribute. /// @@ -5754,6 +6016,18 @@ public static partial class W /// public static readonly XName multiLevelType = w + "multiLevelType"; + /// + /// Represents the w:multiLine XML attribute. + /// + /// + /// As an XML attribute, it: + /// + /// is contained in the following XML elements: . + /// corresponds to the following strongly-typed properties: SdtContentText.MultiLine. + /// + /// + public static readonly XName multiLine = w + "multiLine"; + /// /// Represents the w:mwSmallCaps XML element. /// @@ -6634,6 +6908,18 @@ public static partial class W /// public static readonly XName pict = w + "pict"; + /// + /// Represents the w:picture XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// corresponds to the following strongly-typed classes: SdtContentPicture. + /// + /// + public static readonly XName picture = w + "picture"; + /// /// Represents the w:pitch XML element. /// @@ -6659,6 +6945,19 @@ public static partial class W /// public static readonly XName pixelsPerInch = w + "pixelsPerInch"; + /// + /// Represents the w:placeholder XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// has the following child XML elements: . + /// corresponds to the following strongly-typed classes: SdtPlaceholder. + /// + /// + public static readonly XName placeholder = w + "placeholder"; + /// /// Represents the w:pos XML elements and attributes. /// @@ -6736,7 +7035,7 @@ public static partial class W /// /// As an XML attribute, it: /// - /// is contained in the following XML elements: . + /// is contained in the following XML elements: , . /// corresponds to the following strongly-typed properties: DataBinding.PrefixMappings. /// /// @@ -7081,6 +7380,18 @@ public static partial class W /// public static readonly XName rFonts = w + "rFonts"; + /// + /// Represents the w:richText XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// corresponds to the following strongly-typed classes: SdtContentRichText. + /// + /// + public static readonly XName richText = w + "richText"; + /// /// Represents the w:right XML elements and attributes. /// @@ -7128,7 +7439,7 @@ public static partial class W /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , , , . /// has the following child XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . /// corresponds to the following strongly-typed classes: NumberingSymbolRunProperties, ParagraphMarkRunProperties, PreviousParagraphMarkRunProperties, PreviousRunProperties, RunProperties, RunPropertiesBaseStyle, StyleRunProperties. /// @@ -7520,6 +7831,19 @@ public static partial class W /// public static readonly XName sdtContent = w + "sdtContent"; + /// + /// Represents the w:sdtPr XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// has the following child XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . + /// corresponds to the following strongly-typed classes: SdtProperties. + /// + /// + public static readonly XName sdtPr = w + "sdtPr"; + /// /// Represents the w:sectPr XML elements. /// @@ -7712,6 +8036,18 @@ public static partial class W /// public static readonly XName showEnvelope = w + "showEnvelope"; + /// + /// Represents the w:showingPlcHdr XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// corresponds to the following strongly-typed classes: ShowingPlaceholder. + /// + /// + public static readonly XName showingPlcHdr = w + "showingPlcHdr"; + /// /// Represents the w:showXMLTags XML element. /// @@ -7990,12 +8326,25 @@ public static partial class W /// /// As an XML attribute, it: /// - /// is contained in the following XML elements: . + /// is contained in the following XML elements: , . /// corresponds to the following strongly-typed properties: DataBinding.StoreItemId. /// /// public static readonly XName storeItemID = w + "storeItemID"; + /// + /// Represents the w:storeMappedDataAs XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// has the following XML attributes: . + /// corresponds to the following strongly-typed classes: SdtDateMappingType. + /// + /// + public static readonly XName storeMappedDataAs = w + "storeMappedDataAs"; + /// /// Represents the w:strictFirstAndLastChars XML element. /// @@ -8414,6 +8763,18 @@ public static partial class W /// public static readonly XName tabs = w + "tabs"; + /// + /// Represents the w:tag XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// corresponds to the following strongly-typed classes: Tag. + /// + /// + public static readonly XName tag = w + "tag"; + /// /// Represents the w:targetScreenSz XML element. /// @@ -8860,6 +9221,18 @@ public static partial class W /// public static readonly XName tcW = w + "tcW"; + /// + /// Represents the w:temporary XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// corresponds to the following strongly-typed classes: TemporarySdt. + /// + /// + public static readonly XName temporary = w + "temporary"; + /// /// Represents the w:tentative XML attribute. /// @@ -8872,6 +9245,19 @@ public static partial class W /// public static readonly XName tentative = w + "tentative"; + /// + /// Represents the w:text XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// has the following XML attributes: . + /// corresponds to the following strongly-typed classes: SdtContentText. + /// + /// + public static readonly XName text = w + "text"; + /// /// Represents the w:textAlignment XML element. /// @@ -9575,8 +9961,8 @@ public static partial class W /// /// As an XML attribute, it: /// - /// is contained in the following XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . - /// corresponds to the following strongly-typed properties: Behavior.Val, BidirectionalEmbedding.Val, BidirectionalOverride.Val, CharacterScale.Val, CharacterSpacingControl.Val, Color.Val, CompatibilitySetting.Val, ConditionalFormatStyle.Val, ConsecutiveHyphenLimit.Val, DataType.Val, DefaultDropDownListItemIndex.Val, Destination.Val, DivId.Val, DocPartId.Val, DocPartName.Val, DocPartType.Val, DocumentType.Val, DocumentVariable.Val, Emphasis.Val, EndnotePosition.Val, FitText.Val, FontCharSet.Val, FontFamily.Val, FootnoteColumns.Val, FootnotePosition.Val, Format.Val, FormFieldName.Val, FrameLayout.Val, Gallery.Val, HelpText.Val, Highlight.Val, HorizontalMerge.Val, Justification.Val, Kern.Val, LanguageId.Val, LevelJustification.Val, LevelSuffix.Val, LevelText.Val, MailMergeFieldType.Val, MailMergeSource.Val, MainDocumentType.Val, MaxLength.Val, MultiLevelType.Val, NoLineBreaksAfterKinsoku.Val, NoLineBreaksBeforeKinsoku.Val, NumberingFormat.Val, NumberingLevelReference.Val, NumberingRestart.Val, NumberingStart.Val, Panose1Number.Val, PhoneticGuideRaise.Val, Pitch.Val, Position.Val, RubyAlign.Val, ScrollbarVisibility.Val, SectionTitle.Val, SectionType.Val, Shading.Val, Spacing.Val, StatusText.Val, StyleName.Val, StylePaneFormatFilter.Val, StylePaneSortMethods.Val, SummaryLength.Val, TableCellVerticalAlignment.Val, TableJustification.Val, TableLook.Val, TableOverlap.Val, TableRowHeight.Val, TabStop.Val, TargetScreenSize.Val, TextAlignment.Val, TextBoxFormFieldType.Val, TextBoxTightWrap.Val, TextDirection.Val, TextEffect.Val, UIPriority.Val, Underline.Val, UniqueTag.Val, VerticalMerge.Val, VerticalTextAlignment.Val, VerticalTextAlignmentOnPage.Val, View.Val, Zoom.Val. + /// is contained in the following XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . + /// corresponds to the following strongly-typed properties: Behavior.Val, BidirectionalEmbedding.Val, BidirectionalOverride.Val, Calendar.Val, CharacterScale.Val, CharacterSpacingControl.Val, Color.Val, CompatibilitySetting.Val, ConditionalFormatStyle.Val, ConsecutiveHyphenLimit.Val, DataType.Val, DefaultDropDownListItemIndex.Val, Destination.Val, DivId.Val, DocPartId.Val, DocPartName.Val, DocPartType.Val, DocumentType.Val, DocumentVariable.Val, Emphasis.Val, EndnotePosition.Val, FitText.Val, FontCharSet.Val, FontFamily.Val, FootnoteColumns.Val, FootnotePosition.Val, Format.Val, FormFieldName.Val, FrameLayout.Val, Gallery.Val, HelpText.Val, Highlight.Val, HorizontalMerge.Val, Justification.Val, Kern.Val, LanguageId.Val, LevelJustification.Val, LevelSuffix.Val, LevelText.Val, Lock.Val, MailMergeFieldType.Val, MailMergeSource.Val, MainDocumentType.Val, MaxLength.Val, MultiLevelType.Val, NoLineBreaksAfterKinsoku.Val, NoLineBreaksBeforeKinsoku.Val, NumberingFormat.Val, NumberingLevelReference.Val, NumberingRestart.Val, NumberingStart.Val, Panose1Number.Val, PhoneticGuideRaise.Val, Pitch.Val, Position.Val, RubyAlign.Val, ScrollbarVisibility.Val, SdtDateMappingType.Val, SectionTitle.Val, SectionType.Val, Shading.Val, Spacing.Val, StatusText.Val, StyleName.Val, StylePaneFormatFilter.Val, StylePaneSortMethods.Val, SummaryLength.Val, TableCellVerticalAlignment.Val, TableJustification.Val, TableLook.Val, TableOverlap.Val, TableRowHeight.Val, TabStop.Val, TargetScreenSize.Val, TextAlignment.Val, TextBoxFormFieldType.Val, TextBoxTightWrap.Val, TextDirection.Val, TextEffect.Val, UIPriority.Val, Underline.Val, UniqueTag.Val, VerticalMerge.Val, VerticalTextAlignment.Val, VerticalTextAlignmentOnPage.Val, View.Val, Zoom.Val. /// /// public static readonly XName val = w + "val"; @@ -9594,6 +9980,18 @@ public static partial class W /// public static readonly XName vAlign = w + "vAlign"; + /// + /// Represents the w:value XML attribute. + /// + /// + /// As an XML attribute, it: + /// + /// is contained in the following XML elements: . + /// corresponds to the following strongly-typed properties: ListItem.Value. + /// + /// + public static readonly XName value = w + "value"; + /// /// Represents the w:vAnchor XML attribute. /// @@ -9940,7 +10338,7 @@ public static partial class W /// /// As an XML attribute, it: /// - /// is contained in the following XML elements: . + /// is contained in the following XML elements: , . /// corresponds to the following strongly-typed properties: DataBinding.XPath. /// /// diff --git a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.W14.g.cs b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.W14.g.cs index beddf15e2..5e59bb05b 100644 --- a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.W14.g.cs +++ b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.W14.g.cs @@ -166,7 +166,7 @@ public static partial class W14 /// /// As an XML element, it: /// - /// has the following parent XML elements: . + /// has the following parent XML elements: , . /// has the following child XML elements: , , . /// corresponds to the following strongly-typed classes: SdtContentCheckBox. /// @@ -466,7 +466,7 @@ public static partial class W14 /// /// As an XML element, it: /// - /// has the following parent XML elements: . + /// has the following parent XML elements: , . /// corresponds to the following strongly-typed classes: EntityPickerEmpty. /// /// diff --git a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.W15.g.cs b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.W15.g.cs index 654bad7b1..24a8ca905 100644 --- a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.W15.g.cs +++ b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.W15.g.cs @@ -21,7 +21,7 @@ public static partial class W15 /// /// As an XML element, it: /// - /// has the following parent XML elements: . + /// has the following parent XML elements: , . /// has the following XML attributes: . /// corresponds to the following strongly-typed classes: Appearance. /// @@ -70,7 +70,7 @@ public static partial class W15 /// /// As an XML element, it: /// - /// has the following parent XML elements: . + /// has the following parent XML elements: , . /// has the following XML attributes: , , , . /// corresponds to the following strongly-typed classes: Color. /// @@ -109,7 +109,7 @@ public static partial class W15 /// /// As an XML element, it: /// - /// has the following parent XML elements: . + /// has the following parent XML elements: , . /// has the following XML attributes: , , . /// corresponds to the following strongly-typed classes: DataBinding. /// @@ -248,7 +248,7 @@ public static partial class W15 /// /// As an XML element, it: /// - /// has the following parent XML elements: . + /// has the following parent XML elements: , . /// has the following child XML elements: , . /// corresponds to the following strongly-typed classes: SdtRepeatedSection. /// @@ -261,7 +261,7 @@ public static partial class W15 /// /// As an XML element, it: /// - /// has the following parent XML elements: . + /// has the following parent XML elements: , . /// corresponds to the following strongly-typed classes: SdtRepeatedSectionItem. /// /// @@ -310,7 +310,7 @@ public static partial class W15 /// /// As an XML element, it: /// - /// has the following parent XML elements: . + /// has the following parent XML elements: , . /// corresponds to the following strongly-typed classes: WebExtensionCreated. /// /// @@ -322,7 +322,7 @@ public static partial class W15 /// /// As an XML element, it: /// - /// has the following parent XML elements: . + /// has the following parent XML elements: , . /// corresponds to the following strongly-typed classes: WebExtensionLinked. /// /// diff --git a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.X.g.cs b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.X.g.cs index 0934ba704..fb9faa055 100644 --- a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.X.g.cs +++ b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.X.g.cs @@ -21,7 +21,7 @@ public static partial class X /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , . + /// has the following parent XML elements: , , , , , , . /// has the following XML attributes: , , , , , , , , , . /// corresponds to the following strongly-typed classes: Alignment. /// @@ -152,7 +152,7 @@ public static partial class X /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , . + /// has the following parent XML elements: , , , , , , . /// has the following child XML elements: , , , , , , , , . /// has the following XML attributes: , , . /// corresponds to the following strongly-typed classes: Border. @@ -1531,7 +1531,7 @@ public static partial class X /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . + /// has the following parent XML elements: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . /// has the following child XML elements: . /// corresponds to the following strongly-typed classes: CacheFieldExtensionList, CacheHierarchyExtensionList, CacheSourceExtensionList, CalculatedMemberExtensionList, ConditionalFormattingRuleExtensionList, ConnectionExtensionList, DataFieldExtensionList, ExtensionList, PivotCacheDefinitionExtensionList, PivotFieldExtensionList, PivotFilterExtensionList, PivotHierarchyExtensionList, PivotTableDefinitionExtensionList, QueryTableExtensionList, StylesheetExtensionList, TableExtensionList, WorkbookExtensionList, WorksheetExtensionList. /// @@ -1675,7 +1675,7 @@ public static partial class X /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , . + /// has the following parent XML elements: , , , , , , . /// has the following child XML elements: , . /// corresponds to the following strongly-typed classes: Fill. /// @@ -1768,7 +1768,7 @@ public static partial class X /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , . + /// has the following parent XML elements: , , , , , , . /// has the following child XML elements: , , , , , , , , , , , , , , . /// corresponds to the following strongly-typed classes: Font. /// @@ -2691,7 +2691,7 @@ public static partial class X /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , . + /// has the following parent XML elements: , , , , , , . /// has the following XML attributes: , . /// corresponds to the following strongly-typed classes: NumberingFormat. /// @@ -3087,7 +3087,7 @@ public static partial class X /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , . + /// has the following parent XML elements: , , , , , . /// has the following XML attributes: , , . /// corresponds to the following strongly-typed classes: PhoneticProperties. /// @@ -3328,7 +3328,7 @@ public static partial class X /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , . + /// has the following parent XML elements: , , , , , , . /// has the following XML attributes: , . /// corresponds to the following strongly-typed classes: Protection. /// @@ -3438,7 +3438,7 @@ public static partial class X /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , . + /// has the following parent XML elements: , , , , . /// has the following child XML elements: , , , , , , , , . /// corresponds to the following strongly-typed classes: PivotCacheRecord, Run. /// @@ -3812,7 +3812,7 @@ public static partial class X /// /// As an XML element, it: /// - /// has the following parent XML elements: , , . + /// has the following parent XML elements: , , , . /// has the following child XML elements: . /// has the following XML attributes: , . /// corresponds to the following strongly-typed classes: PhoneticRun. @@ -4396,7 +4396,7 @@ public static partial class X /// /// As an XML element, it: /// - /// has the following parent XML elements: , , , , , . + /// has the following parent XML elements: , , , , , , . /// has the following child XML elements: . /// has the following XML attributes: , , , , , , , , , . /// corresponds to the following strongly-typed classes: MdxTuple, Text. diff --git a/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.XR.g.cs b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.XR.g.cs new file mode 100644 index 000000000..b74ae8943 --- /dev/null +++ b/generated/DocumentFormat.OpenXml.Linq/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Linq.XR.g.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System.Xml.Linq; + +namespace DocumentFormat.OpenXml.Linq +{ + /// + /// Declares XNamespace and XName fields for the xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision" namespace. + /// + public static partial class XR + { + /// + /// Defines the XML namespace associated with the xr prefix. + /// + public static readonly XNamespace xr = "http://schemas.microsoft.com/office/spreadsheetml/2014/revision"; + + /// + /// Represents the xr:dxf XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// has the following child XML elements: , , , , , , . + /// corresponds to the following strongly-typed classes: DifferentialFormatType. + /// + /// + public static readonly XName dxf = xr + "dxf"; + + /// + /// Represents the xr:is XML element. + /// + /// + /// As an XML element, it: + /// + /// has the following parent XML elements: . + /// has the following child XML elements: , , , . + /// corresponds to the following strongly-typed classes: RstType. + /// + /// + public static readonly XName @is = xr + "is"; + } +}