content stringlengths 5 1.04M | avg_line_length float64 1.75 12.9k | max_line_length int64 2 244k | alphanum_fraction float64 0 0.98 | licenses list | repository_name stringlengths 7 92 | path stringlengths 3 249 | size int64 5 1.04M | lang stringclasses 2
values |
|---|---|---|---|---|---|---|---|---|
using NewsCollector.Core;
using NewsCollector.Core.Repositories;
using NewsCollector.Data.Repositories;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace NewsCollector.Data
{
public class UnitOfWork : IUnitOfWork
{
private readonly NewsCollectorDbContext _context;
private SourceRepository _sourceRepository;
private NewsRepository _newsRepository;
private NewsKeywordRepository _newsKeywordRepository;
private KeywordRepository _keywordRepository;
private UserRepository _userRepository;
public UnitOfWork(NewsCollectorDbContext context)
{
_context = context;
}
public ISourceRepository Sources => _sourceRepository ?? new SourceRepository(_context);
public IKeywordRepository Keywords => _keywordRepository ?? new KeywordRepository(_context);
public INewsKeywordRepository NewsKeywords => _newsKeywordRepository ?? new NewsKeywordRepository(_context);
public INewsRepository News => _newsRepository ?? new NewsRepository(_context);
public IUserRepository Users => _userRepository ?? new UserRepository(_context);
public async Task<int> CommitAsync()
{
return await _context.SaveChangesAsync();
}
public void Dispose()
{
_context.Dispose();
}
}
}
| 30.934783 | 116 | 0.709768 | [
"MIT"
] | svbnbyrk/news-collector | NewsCollector.Data/UnitOfWork.cs | 1,425 | C# |
using Verse;
namespace TorannMagic.Enchantment
{
public class CompEnchantedStuff : ThingComp
{
public CompProperties_EnchantedStuff Props
{
get
{
return (CompProperties_EnchantedStuff)this.props;
}
}
}
}
| 18.375 | 65 | 0.564626 | [
"BSD-3-Clause"
] | Evyatar108/TMagic-Optimized | Source/TMagic/TMagic/Enchantment/CompEnchantedStuff.cs | 296 | C# |
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ----------------------------------------------------------------------------------
using Microsoft.Azure.ServiceManagement.Common.Models;
using Microsoft.WindowsAzure.Commands.ScenarioTest;
using Xunit;
namespace Microsoft.Azure.Commands.Compute.Test.ScenarioTests
{
public class VirtualMachineRunCommandTests
{
XunitTracingInterceptor _logger;
public VirtualMachineRunCommandTests(Xunit.Abstractions.ITestOutputHelper output)
{
_logger = new XunitTracingInterceptor(output);
XunitTracingInterceptor.AddToContext(_logger);
}
#if NETSTANDARD
[Fact(Skip = "Resources -> ResourceManager, needs re-recorded")]
[Trait(Category.RunType, Category.DesktopOnly)]
#else
[Fact]
#endif
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestVirtualMachineGetRunCommand()
{
ComputeTestController.NewInstance.RunPsTest(_logger, "Test-VirtualMachineGetRunCommand");
}
#if NETSTANDARD
[Fact(Skip = "Get-Location in Common.ps1 is not working correctly for NETSTANDARD")]
[Trait(Category.RunType, Category.DesktopOnly)]
#else
[Fact]
#endif
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestVirtualMachineSetRunCommand()
{
ComputeTestController.NewInstance.RunPsTest(_logger, "Test-VirtualMachineSetRunCommand");
}
#if NETSTANDARD
[Fact(Skip = "Get-Location in Common.ps1 is not working correctly for NETSTANDARD")]
[Trait(Category.RunType, Category.DesktopOnly)]
#else
[Fact]
#endif
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestVirtualMachineScaleSetVMRunCommand()
{
ComputeTestController.NewInstance.RunPsTest(_logger, "Test-VirtualMachineScaleSetVMRunCommand");
}
}
}
| 38.014493 | 109 | 0.648875 | [
"MIT"
] | Acidburn0zzz/azure-powershell | src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineRunCommandTests.cs | 2,557 | C# |
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using AppFullStackDemo.Domain.Entities;
namespace AppFullStackDemo.Infra.Maps
{
public class EquipmentMap : IEntityTypeConfiguration<Equipment>
{
public void Configure(EntityTypeBuilder<Equipment> builder)
{
builder.ToTable("Equipment");
builder.HasKey(c => c.Id);
builder.Property(c => c.AndroidId).HasMaxLength(30).IsRequired();
builder.Property(c => c.Imei1).HasMaxLength(30);
builder.Property(c => c.Imei2).HasMaxLength(30);
builder.Property(c => c.PhoneNumber).HasMaxLength(30);
builder.Property(c => c.MacAddress).HasMaxLength(30);
builder.Property(c => c.ApiLevel).HasMaxLength(10).IsRequired();
builder.Property(c => c.ApiLevelDesc).HasMaxLength(30).IsRequired();
builder.Property(c => c.SerialNumber).HasMaxLength(40);
builder.Property(c => c.SystemName).HasMaxLength(20);
builder.Property(c => c.SystemVersion).HasMaxLength(20).IsRequired();
builder.Property(c => c.CreatedBy).IsRequired();
builder.Property(c => c.UpdatedBy).IsRequired();
builder.Property(c => c.CreatedIn).IsRequired();
builder.Property(c => c.UpdatedIn).IsRequired();
builder
.HasOne(p => p.User)
.WithMany(b => b.EquipmentsList)
.OnDelete(DeleteBehavior.Restrict);
builder
.HasOne(p => p.DeviceModel)
.WithMany(b => b.EquipmentsList)
.OnDelete(DeleteBehavior.Cascade); //ON EF: Tables with Multiple FK can have just one Cascade
builder.Ignore(c => c.Notifications);
}
}
} | 42.785714 | 107 | 0.619366 | [
"Apache-2.0"
] | basharbme/app_fullstackdemo | src/BackEnd/AppFullStackDemo.Infra/Maps/EquipmentMap.cs | 1,797 | C# |
using System;
using System.Collections.Generic;
namespace GradeBook
{
public class Book
{
private List<double> grades = new List<double>();
public String Name;
public Book(String Name)
{
this.Name = Name;
}
public void SetNam(string Name)
{
this.Name = Name;
}
public String getName()
{
return Name;
}
public List<double> GetGrades()
{
return grades;
}
public void AddGrades(double grade)
{
if (grade >= 0.0 && grade <= 100.0)
{
GetGrades().Add(grade);
}
else
{
throw new ArgumentException($"{nameof(grade)} is invalid");
}
}
public double CalculateAverage()
{
var sum = 0.0;
foreach (var grade in GetGrades())
{
sum += grade;
}
var average = sum / grades.Count;
return average;
}
public double GetMaximumGrade()
{
var highest = double.MinValue;
foreach (var grade in GetGrades())
{
if (highest < grade)
{
highest = grade;
}
}
return highest;
}
public double GetMinimumGrade()
{
var lowest = GetGrades()[0];
foreach (var grade in GetGrades())
{
if (lowest > grade)
{
lowest = grade;
}
}
return lowest;
}
public Statistics GetStatistics()
{
var result = new Statistics();
result.average = CalculateAverage();
result.low = GetMinimumGrade();
result.high = GetMaximumGrade();
var aver = CalculateAverage();
switch (aver)
{
case var avg when avg >= 90.0:
result.Letter = 'A';
break;
case var avg when avg >= 80.0 && avg <= 90.0:
result.Letter = 'B';
break;
case var avg when avg >= 70.0 && avg <= 80.0:
result.Letter = 'C';
break;
case var avg when avg >= 60.0 && avg <= 70.0:
result.Letter = 'D';
break;
default:
result.Letter = 'F';
break;
}
return result;
}
public void DisplayStatisticsSummary()
{
Console.WriteLine($"{toString()} lowest grade is: {GetMinimumGrade():N2}");
Console.WriteLine($"{toString()} highest grade is: {GetMaximumGrade():N2}");
Console.WriteLine($"{toString()} average is: {CalculateAverage():N2}");
Console.WriteLine($"{toString()} letter grade is: {GetStatistics().Letter:N2}");
}
public string toString()
{
return String.Format($"{getName()}'s GradeBook");
}
}
} | 23.417266 | 92 | 0.424578 | [
"MIT"
] | Sanusi1997/GradeBook | src/GradeBook/Book.cs | 3,255 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lit.Web.JsonModel
{
class CollectionModel
{
}
}
| 14.461538 | 33 | 0.739362 | [
"MIT"
] | zyxhero/Lit-Framework | LitFramework/Lit.Web/JsonModel/CollectionModel.cs | 190 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using lm.Comol.Modules.Standard.Skin;
using lm.Comol.Core.DomainModel;
using lm.Comol.Core.Business;
namespace lm.Comol.Modules.Standard.Skin.Presentation
{
public class SkinHeaderLogoPresenter : lm.Comol.Core.DomainModel.Common.DomainPresenter
{
#region "Initalize"
private Business.ServiceSkin _Service;
private Business.ServiceSkin Service
{
get
{
if (_Service == null)
_Service = new Business.ServiceSkin(AppContext);
return _Service;
}
}
public SkinHeaderLogoPresenter(iApplicationContext oContext, IViewSkinHeaderLogo view)
: base(oContext, view)
{
this.CurrentManager = new BaseModuleManager(oContext);
}
protected virtual IViewSkinHeaderLogo View
{
get { return (IViewSkinHeaderLogo)base.View; }
}
#endregion
public void InitView(long idSkin, Boolean allowEdit)
{
View.IdSkin = idSkin;
View.AllowEdit = allowEdit;
if (UserContext.isAnonymous)
{
View.LoadNoItems();
View.AllowEdit = false;
}
else
LoadLogos(idSkin);
}
public long SaveLogo(long idLogo, String logoImage, String alternateText, String link, String languageCode)
{
return Service.SaveHeadLogo(idLogo, logoImage, link, alternateText, View.IdSkin, languageCode, View.BasePath);
}
public void DeleteLogo(long idSkin, long idLogo)
{
Service.DelHeaderLogo(idLogo, View.BasePath, idSkin);
LoadLogos(idSkin);
}
public String LogoFullPath(long idLogo, String logoImage)
{
return Business.SkinFileManagement.GetLogoFullPath(View.BasePath, View.IdSkin, idLogo, logoImage);
}
public String LogoVirtualPath(long idLogo, String logoImage)
{
return Business.SkinFileManagement.GetLogoVirtualPath(View.IdSkin, idLogo, logoImage);
}
public String LogoVirtualFullPath(long idLogo, String logoImage)
{
return Business.SkinFileManagement.GetLogoVirtualFullPath(View.VirtualFullPath, View.IdSkin, idLogo, logoImage);
}
public void CloneDefault(long idSkin,long destIdLogo, String destLanguageCode)
{
Service.CloneLogo(idSkin, View.IdLogoDefaultLanguage, destIdLogo, View.BasePath, destLanguageCode);
LoadLogos(idSkin);
}
public void LoadLogos(long idSkin)
{
View.LoadItems(Service.GetDtoHederLogos(idSkin));
}
public void ClearCache()
{
Service.CleanCache();
}
}
}
| 30.082474 | 124 | 0.610692 | [
"MIT"
] | EdutechSRL/Adevico | 3-Business/3-Modules/lm.Comol.Modules.Standard/Skin/Presentation/Edit/SkinHeaderLogoPresenter.cs | 2,920 | C# |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
// <auto-generated/>
// Template Source: Templates\CSharp\Requests\IEntityCollectionRequest.cs.tt
namespace Microsoft.Graph
{
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading;
using System.Linq.Expressions;
/// <summary>
/// The interface IDeviceConfigurationAssignmentsCollectionRequest.
/// </summary>
public partial interface IDeviceConfigurationAssignmentsCollectionRequest : IBaseRequest
{
/// <summary>
/// Adds the specified DeviceConfigurationAssignment to the collection via POST.
/// </summary>
/// <param name="deviceConfigurationAssignment">The DeviceConfigurationAssignment to add.</param>
/// <returns>The created DeviceConfigurationAssignment.</returns>
System.Threading.Tasks.Task<DeviceConfigurationAssignment> AddAsync(DeviceConfigurationAssignment deviceConfigurationAssignment);
/// <summary>
/// Adds the specified DeviceConfigurationAssignment to the collection via POST.
/// </summary>
/// <param name="deviceConfigurationAssignment">The DeviceConfigurationAssignment to add.</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The created DeviceConfigurationAssignment.</returns>
System.Threading.Tasks.Task<DeviceConfigurationAssignment> AddAsync(DeviceConfigurationAssignment deviceConfigurationAssignment, CancellationToken cancellationToken);
/// <summary>
/// Gets the collection page.
/// </summary>
/// <returns>The collection page.</returns>
System.Threading.Tasks.Task<IDeviceConfigurationAssignmentsCollectionPage> GetAsync();
/// <summary>
/// Gets the collection page.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The collection page.</returns>
System.Threading.Tasks.Task<IDeviceConfigurationAssignmentsCollectionPage> GetAsync(CancellationToken cancellationToken);
/// <summary>
/// Adds the specified expand value to the request.
/// </summary>
/// <param name="value">The expand value.</param>
/// <returns>The request object to send.</returns>
IDeviceConfigurationAssignmentsCollectionRequest Expand(string value);
/// <summary>
/// Adds the specified expand value to the request.
/// </summary>
/// <param name="expandExpression">The expression from which to calculate the expand value.</param>
/// <returns>The request object to send.</returns>
IDeviceConfigurationAssignmentsCollectionRequest Expand(Expression<Func<DeviceConfigurationAssignment, object>> expandExpression);
/// <summary>
/// Adds the specified select value to the request.
/// </summary>
/// <param name="value">The select value.</param>
/// <returns>The request object to send.</returns>
IDeviceConfigurationAssignmentsCollectionRequest Select(string value);
/// <summary>
/// Adds the specified select value to the request.
/// </summary>
/// <param name="selectExpression">The expression from which to calculate the select value.</param>
/// <returns>The request object to send.</returns>
IDeviceConfigurationAssignmentsCollectionRequest Select(Expression<Func<DeviceConfigurationAssignment, object>> selectExpression);
/// <summary>
/// Adds the specified top value to the request.
/// </summary>
/// <param name="value">The top value.</param>
/// <returns>The request object to send.</returns>
IDeviceConfigurationAssignmentsCollectionRequest Top(int value);
/// <summary>
/// Adds the specified filter value to the request.
/// </summary>
/// <param name="value">The filter value.</param>
/// <returns>The request object to send.</returns>
IDeviceConfigurationAssignmentsCollectionRequest Filter(string value);
/// <summary>
/// Adds the specified skip value to the request.
/// </summary>
/// <param name="value">The skip value.</param>
/// <returns>The request object to send.</returns>
IDeviceConfigurationAssignmentsCollectionRequest Skip(int value);
/// <summary>
/// Adds the specified orderby value to the request.
/// </summary>
/// <param name="value">The orderby value.</param>
/// <returns>The request object to send.</returns>
IDeviceConfigurationAssignmentsCollectionRequest OrderBy(string value);
}
}
| 47.851852 | 174 | 0.653638 | [
"MIT"
] | OfficeGlobal/msgraph-beta-sdk-dotnet | src/Microsoft.Graph/Requests/Generated/IDeviceConfigurationAssignmentsCollectionRequest.cs | 5,168 | C# |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Bir bütünleştirilmiş koda ilişkin Genel Bilgiler aşağıdaki öznitelikler kümesiyle
// denetlenir. Bütünleştirilmiş kod ile ilişkili bilgileri değiştirmek için
// bu öznitelik değerlerini değiştirin.
[assembly: AssemblyTitle("sinav2")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("sinav2")]
[assembly: AssemblyCopyright("Copyright © 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// ComVisible özniteliğinin false olarak ayarlanması bu bütünleştirilmiş koddaki türleri
// COM bileşenleri için görünmez yapar. Bu bütünleştirilmiş koddaki bir türe
// erişmeniz gerekirse ComVisible özniteliğini o türde true olarak ayarlayın.
[assembly: ComVisible(false)]
// Bu proje COM'un kullanımına sunulursa, aşağıdaki GUID tür kitaplığının kimliği içindir
[assembly: Guid("1d37c61d-8ff4-4a27-ad5e-071e1f1c3509")]
// Bir derlemenin sürüm bilgileri aşağıdaki dört değerden oluşur:
//
// Ana Sürüm
// İkincil Sürüm
// Yapı Numarası
// Düzeltme
//
// Tüm değerleri belirtebilir veya varsayılan Derleme ve Düzeltme Numaralarını kullanmak için
// '*' kullanarak varsayılana ayarlayabilirsiniz:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
| 39.027027 | 93 | 0.775623 | [
"MIT"
] | Apromodo/BU-Gp-2 | 2020-Bahar Vize/sinav2/sinav2/Properties/AssemblyInfo.cs | 1,527 | C# |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TeleSharp.TL;
namespace TeleSharp.TL.Messages
{
[TLObject(852135825)]
public class TLRequestGetWebPage : TLMethod
{
public override int Constructor
{
get
{
return 852135825;
}
}
public string Url { get; set; }
public int Hash { get; set; }
public TLAbsWebPage Response { get; set; }
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
Url = StringUtil.Deserialize(br);
Hash = br.ReadInt32();
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
StringUtil.Serialize(Url, bw);
bw.Write(Hash);
}
public override void DeserializeResponse(BinaryReader br)
{
Response = (TLAbsWebPage)ObjectUtils.DeserializeObject(br);
}
}
}
| 21.403846 | 71 | 0.569632 | [
"MIT"
] | Vladimir-Novick/TLSharp.NetCore2 | TeleSharp.NetCore2.TL/TL/Messages/TLRequestGetWebPage.cs | 1,113 | C# |
using System;
using System.Diagnostics;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Remote;
namespace CommandExecutorTester
{
class Program
{
static void Main(string[] args)
{
// Modify this value to toggle between using the HttpClient based
// command executor and the standard one.
bool useHttpClient = true;
// Modify this line to the location of your local chromedriver.exe
string servicePath = @"C:\Path\To\Executables";
ChromeDriverService service = ChromeDriverService.CreateDefaultService(servicePath);
DriverServiceCommandExecutor executor;
if (useHttpClient)
{
HttpCommandExecutor httpExecutor = CreateHttpCommandExecutor(service.ServiceUrl, useHttpClient);
// Note: This requires a to-be-released version of Selenium. If you
// need to use this with a prior version, you'll need to create the
// command executor using one of the existing constructor overloads
// and update the internalExecutor field using reflection. Additionally,
// this step is not necessary for remote execution, as there is already
// a RemoteWebDriver constructor overload that takes an ICommandExecutor
// argument.
// executor = new DriverServiceCommandExecutor(service, httpExecutor);
executor = new DriverServiceCommandExecutor(service, TimeSpan.FromSeconds(60));
HttpClientCommandExecutor.ReflectionHelper.SetFieldValue<HttpCommandExecutor>(executor, "internalExecutor", httpExecutor);
}
else
{
executor = new DriverServiceCommandExecutor(service, TimeSpan.FromSeconds(60));
}
bool continueExecution = true;
int executionCounter = 0;
ChromeOptions options = new ChromeOptions();
IWebDriver driver = new RemoteWebDriver(executor, options.ToCapabilities());
string url = "http://webdriver-herald.herokuapp.com/selenium/current";
driver.Url = url;
IWebElement element = driver.FindElement(By.CssSelector("h1"));
Console.WriteLine("Disconnected sockets before execution: {0}", GetDisconnectedSocketCount());
string consoleStatusMessage = "Performing execution number: ";
Console.Write(consoleStatusMessage);
while (continueExecution)
{
executionCounter++;
Console.CursorLeft = consoleStatusMessage.Length;
Console.Write(executionCounter);
try
{
bool enabled = element.Enabled;
continueExecution = executionCounter < 1000;
}
catch (Exception)
{
}
}
driver.Quit();
Console.WriteLine();
Console.WriteLine("Disconnected sockets after execution: {0}", GetDisconnectedSocketCount());
Console.WriteLine("Browser closing. Press <Enter> to quit.");
Console.ReadLine();
}
static HttpCommandExecutor CreateHttpCommandExecutor(Uri remoteServerUri, bool useHttpClientExecutor)
{
HttpCommandExecutor httpExecutor;
if (useHttpClientExecutor)
{
httpExecutor = new HttpClientCommandExecutor.HttpClientCommandExecutor(remoteServerUri, TimeSpan.FromSeconds(60));
}
else
{
httpExecutor = new HttpCommandExecutor(remoteServerUri, TimeSpan.FromSeconds(60));
}
return httpExecutor;
}
static int GetDisconnectedSocketCount()
{
int waitingSockets = 0;
Process netstatProcess = new Process();
netstatProcess.StartInfo.FileName = "netstat";
netstatProcess.StartInfo.Arguments = "-nao";
netstatProcess.StartInfo.RedirectStandardOutput = true;
netstatProcess.Start();
string netstatOutput = netstatProcess.StandardOutput.ReadToEnd();
netstatProcess.WaitForExit();
string[] lines = netstatOutput.Split('\n');
foreach (string line in lines)
{
if (line.Contains("TIME_WAIT"))
{
waitingSockets++;
}
}
return waitingSockets;
}
}
}
| 41.160714 | 138 | 0.596963 | [
"Apache-2.0"
] | jimevans/HttpClientCommandExecutor | CommandExecutorTester/Program.cs | 4,612 | C# |
//-----------------------------------------------------------------------------
// Copyright : (c) Chris Moore, 2020
// License : MIT
//-----------------------------------------------------------------------------
namespace Z0
{
using System;
using System.Runtime.CompilerServices;
using static Root;
/// <summary>
/// Captures a binary bitwise operator along with with its operands
/// </summary>
public readonly struct BinaryBitwiseOpExpr<T> : IBinaryBitwiseOpExpr<T>
where T : unmanaged
{
/// <summary>
/// The operator kind
/// </summary>
public BinaryBitLogicKind ApiClass {get;}
/// <summary>
/// The left operand
/// </summary>
public IExpr<T> LeftArg {get;}
/// <summary>
/// The right operand
/// </summary>
public IExpr<T> RightArg {get;}
[MethodImpl(Inline)]
public BinaryBitwiseOpExpr(BinaryBitLogicKind op, IExpr<T> left, IExpr<T> right)
{
ApiClass = op;
LeftArg = left;
RightArg = right;
}
/// <summary>
/// Renders the expression in canonical form
/// </summary>
public string Format()
=> ApiClass.Format(LeftArg, RightArg);
public override string ToString()
=> Format();
}
} | 27.54 | 88 | 0.480029 | [
"BSD-3-Clause"
] | 0xCM/z0 | src/logix/src/core/models/BinaryBitwiseOpExpr.cs | 1,377 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using Charlotte.Commons;
using Charlotte.GameCommons;
namespace Charlotte.Games
{
public class World
{
public string StartMapName = "t0001"; // 開始マップ名 // BUG: コンストラクタで参照される。prm の設定はコンストラクタの実行後
// <---- prm
private string[][] MapNameTableRows; // 添字:[y][x]
private I2Point CurrPoint;
public World()
{
using (WorkingDir wd = new WorkingDir())
{
string file = wd.MakePath();
File.WriteAllBytes(file, DDResource.Load(@"e20200001_res\World\World.csv"));
using (CsvFileReader reader = new CsvFileReader(file))
{
this.MapNameTableRows = reader.ReadToEnd();
}
}
this.CurrPoint = this.GetPoint(this.StartMapName);
}
private I2Point GetPoint(string mapName)
{
for (int y = 0; y < this.MapNameTableRows.Length; y++)
for (int x = 0; x < this.MapNameTableRows[y].Length; x++)
if (this.MapNameTableRows[y][x] == mapName)
return new I2Point(x, y);
throw new DDError("そんなマップありません。" + mapName);
}
public string GetCurrMapName()
{
return this.MapNameTableRows[this.CurrPoint.Y][this.CurrPoint.X];
}
public void SetCurrMapName(string mapName)
{
this.CurrPoint = this.GetPoint(mapName);
}
public void Move(int xa, int ya)
{
int x = this.CurrPoint.X;
int y = this.CurrPoint.Y;
x += xa;
y += ya;
if (
x < 0 ||
y < 0 ||
this.MapNameTableRows.Length <= y ||
this.MapNameTableRows[y].Length <= x
)
throw new DDError("移動先にマップはありません。");
this.CurrPoint.X = x;
this.CurrPoint.Y = y;
}
}
}
| 21.142857 | 91 | 0.652334 | [
"MIT"
] | soleil-taruto/Elsa | e20201029_TopViewAct/Elsa20200001/Elsa20200001/Games/World.cs | 1,758 | C# |
using System;
using System.Collections.Generic;
using Acolyte.Assertions;
namespace Acolyte.Common
{
public static class AcolyteValueTupleExtensions
{
// TODO: add extension methods for value valueTuple of arbitrary length.
#region ToEnumerable
public static IEnumerable<T> ToEnumerable<T>(this ValueTuple<T> valueTuple)
{
return valueTuple.ToList();
}
public static IEnumerable<T> ToEnumerable<T>(this ValueTuple<T, T> valueTuple)
{
return valueTuple.ToList();
}
public static IEnumerable<T> ToEnumerable<T>(this ValueTuple<T, T, T> valueTuple)
{
return valueTuple.ToList();
}
public static IEnumerable<T> ToEnumerable<T>(this ValueTuple<T, T, T, T> valueTuple)
{
return valueTuple.ToList();
}
public static IEnumerable<T> ToEnumerable<T>(this ValueTuple<T, T, T, T, T> valueTuple)
{
return valueTuple.ToList();
}
public static IEnumerable<T> ToEnumerable<T>(this ValueTuple<T, T, T, T, T, T> valueTuple)
{
return valueTuple.ToList();
}
public static IEnumerable<T> ToEnumerable<T>(this ValueTuple<T, T, T, T, T, T, T> valueTuple)
{
return valueTuple.ToList();
}
#endregion
#region ToArray
public static T[] ToArray<T>(this ValueTuple<T> valueTuple)
{
valueTuple.ThrowIfNullValue(nameof(valueTuple), assertOnPureValueTypes: false);
return new[]
{
valueTuple.Item1
};
}
public static T[] ToArray<T>(this ValueTuple<T, T> valueTuple)
{
valueTuple.ThrowIfNullValue(nameof(valueTuple), assertOnPureValueTypes: false);
return new[]
{
valueTuple.Item1,
valueTuple.Item2
};
}
public static T[] ToArray<T>(this ValueTuple<T, T, T> valueTuple)
{
valueTuple.ThrowIfNullValue(nameof(valueTuple), assertOnPureValueTypes: false);
return new[]
{
valueTuple.Item1,
valueTuple.Item2,
valueTuple.Item3
};
}
public static T[] ToArray<T>(this ValueTuple<T, T, T, T> valueTuple)
{
valueTuple.ThrowIfNullValue(nameof(valueTuple), assertOnPureValueTypes: false);
return new[]
{
valueTuple.Item1,
valueTuple.Item2,
valueTuple.Item3,
valueTuple.Item4
};
}
public static T[] ToArray<T>(this ValueTuple<T, T, T, T, T> valueTuple)
{
valueTuple.ThrowIfNullValue(nameof(valueTuple), assertOnPureValueTypes: false);
return new[]
{
valueTuple.Item1,
valueTuple.Item2,
valueTuple.Item3,
valueTuple.Item4,
valueTuple.Item5
};
}
public static T[] ToArray<T>(this ValueTuple<T, T, T, T, T, T> valueTuple)
{
valueTuple.ThrowIfNullValue(nameof(valueTuple), assertOnPureValueTypes: false);
return new[]
{
valueTuple.Item1,
valueTuple.Item2,
valueTuple.Item3,
valueTuple.Item4,
valueTuple.Item5,
valueTuple.Item6
};
}
public static T[] ToArray<T>(this ValueTuple<T, T, T, T, T, T, T> valueTuple)
{
valueTuple.ThrowIfNullValue(nameof(valueTuple), assertOnPureValueTypes: false);
return new[]
{
valueTuple.Item1,
valueTuple.Item2,
valueTuple.Item3,
valueTuple.Item4,
valueTuple.Item5,
valueTuple.Item6,
valueTuple.Item7
};
}
#endregion
#region ToList
public static List<T> ToList<T>(this ValueTuple<T> valueTuple)
{
valueTuple.ThrowIfNullValue(nameof(valueTuple), assertOnPureValueTypes: false);
return new List<T>
{
valueTuple.Item1
};
}
public static List<T> ToList<T>(this ValueTuple<T, T> valueTuple)
{
valueTuple.ThrowIfNullValue(nameof(valueTuple), assertOnPureValueTypes: false);
return new List<T>
{
valueTuple.Item1,
valueTuple.Item2
};
}
public static List<T> ToList<T>(this ValueTuple<T, T, T> valueTuple)
{
valueTuple.ThrowIfNullValue(nameof(valueTuple), assertOnPureValueTypes: false);
return new List<T>
{
valueTuple.Item1,
valueTuple.Item2,
valueTuple.Item3
};
}
public static List<T> ToList<T>(this ValueTuple<T, T, T, T> valueTuple)
{
valueTuple.ThrowIfNullValue(nameof(valueTuple), assertOnPureValueTypes: false);
return new List<T>
{
valueTuple.Item1,
valueTuple.Item2,
valueTuple.Item3,
valueTuple.Item4
};
}
public static List<T> ToList<T>(this ValueTuple<T, T, T, T, T> valueTuple)
{
valueTuple.ThrowIfNullValue(nameof(valueTuple), assertOnPureValueTypes: false);
return new List<T>
{
valueTuple.Item1,
valueTuple.Item2,
valueTuple.Item3,
valueTuple.Item4,
valueTuple.Item5
};
}
public static List<T> ToList<T>(this ValueTuple<T, T, T, T, T, T> valueTuple)
{
valueTuple.ThrowIfNullValue(nameof(valueTuple), assertOnPureValueTypes: false);
return new List<T>
{
valueTuple.Item1,
valueTuple.Item2,
valueTuple.Item3,
valueTuple.Item4,
valueTuple.Item5,
valueTuple.Item6
};
}
public static List<T> ToList<T>(this ValueTuple<T, T, T, T, T, T, T> valueTuple)
{
valueTuple.ThrowIfNullValue(nameof(valueTuple), assertOnPureValueTypes: false);
return new List<T>
{
valueTuple.Item1,
valueTuple.Item2,
valueTuple.Item3,
valueTuple.Item4,
valueTuple.Item5,
valueTuple.Item6,
valueTuple.Item7
};
}
#endregion
#region ToReadOnlyList
public static IReadOnlyList<T> ToReadOnlyList<T>(this ValueTuple<T> valueTuple)
{
return valueTuple.ToList();
}
public static IReadOnlyList<T> ToReadOnlyList<T>(this ValueTuple<T, T> valueTuple)
{
return valueTuple.ToList();
}
public static IReadOnlyList<T> ToReadOnlyList<T>(this ValueTuple<T, T, T> valueTuple)
{
return valueTuple.ToList();
}
public static IReadOnlyList<T> ToReadOnlyList<T>(this ValueTuple<T, T, T, T> valueTuple)
{
return valueTuple.ToList();
}
public static IReadOnlyList<T> ToReadOnlyList<T>(this ValueTuple<T, T, T, T, T> valueTuple)
{
return valueTuple.ToList();
}
public static IReadOnlyList<T> ToReadOnlyList<T>(this ValueTuple<T, T, T, T, T, T> valueTuple)
{
return valueTuple.ToList();
}
public static IReadOnlyList<T> ToReadOnlyList<T>(this ValueTuple<T, T, T, T, T, T, T> valueTuple)
{
return valueTuple.ToList();
}
#endregion
#region ToReadOnlyCollection
public static IReadOnlyCollection<T> ToReadOnlyCollection<T>(this ValueTuple<T> valueTuple)
{
return valueTuple.ToList();
}
public static IReadOnlyCollection<T> ToReadOnlyCollection<T>(this ValueTuple<T, T> valueTuple)
{
return valueTuple.ToList();
}
public static IReadOnlyCollection<T> ToReadOnlyCollection<T>(this ValueTuple<T, T, T> valueTuple)
{
return valueTuple.ToList();
}
public static IReadOnlyCollection<T> ToReadOnlyCollection<T>(
this ValueTuple<T, T, T, T> valueTuple)
{
return valueTuple.ToList();
}
public static IReadOnlyCollection<T> ToReadOnlyCollection<T>(
this ValueTuple<T, T, T, T, T> valueTuple)
{
return valueTuple.ToList();
}
public static IReadOnlyCollection<T> ToReadOnlyCollection<T>(
this ValueTuple<T, T, T, T, T, T> valueTuple)
{
return valueTuple.ToList();
}
public static IReadOnlyCollection<T> ToReadOnlyCollection<T>(
this ValueTuple<T, T, T, T, T, T, T> valueTuple)
{
return valueTuple.ToList();
}
#endregion
}
}
| 28.854489 | 105 | 0.532296 | [
"Apache-2.0"
] | Vasar007/algorithm_analysis | Source/AlgorithmAnalysis/Libraries/AlgorithmAnalysis.Common/AcolyteExtensions/AcolyteValueTupleExtensions.cs | 9,322 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Azmyth
{
public enum TerrainTypes
{
None = 0,
Ocean = 1,
Sand = 2,
Dirt = 3,
Grass = 4,
Stone = 5,
Snow = 6,
Lava = 7,
Ice = 8,
River = 9,
Road = 10,
Max = 11
}
public struct TerrainType
{
public static readonly TerrainType[] Terrain =
{
new TerrainType(TerrainTypes.None, "None", false, false, false, 0.0f),
new TerrainType(TerrainTypes.Ocean, "Ocean", true, true, false, 0.1f),
new TerrainType(TerrainTypes.Sand, "Sand", true, false, false, 0.7f),
new TerrainType(TerrainTypes.Dirt, "Dirt", true, false, false, 0.9f),
new TerrainType(TerrainTypes.Grass, "Grass", true, false, false, 0.8f),
new TerrainType(TerrainTypes.Stone, "Stone", false, false, false, 0.0f),
new TerrainType(TerrainTypes.Snow, "Snow", true, false, false, 0.5f),
new TerrainType(TerrainTypes.Lava, "Lava", true, false, false, 0.2f),
new TerrainType(TerrainTypes.Ice, "Ice", true, false, false, 0.6f),
new TerrainType(TerrainTypes.River, "River", true, true, true, 0.4f),
new TerrainType(TerrainTypes.Road, "Road", true, false, false, 1.0f),
};
public TerrainType(TerrainTypes terrainType, string name, bool canPass, bool isWater, bool canSwim, float moveRate)
{
m_name = name;
m_isWater = isWater;
m_canPass = canPass;
m_canSwim = canSwim;
m_moveRate = moveRate;
m_terrainType = terrainType;
}
private string m_name;
private bool m_isWater;
private bool m_canSwim;
private bool m_canPass;
private float m_moveRate;
private TerrainTypes m_terrainType;
public string Name
{
get
{
if (m_name == "")
{
m_name = m_terrainType.ToString();
}
return m_name;
}
private set
{
m_name = value;
}
}
public bool IsWater
{
get
{
return m_isWater;
}
private set
{
m_isWater = value;
}
}
public bool CanPass
{
get
{
return m_canPass;
}
private set
{
m_canPass = value;
}
}
public bool CanSwim
{
get
{
return m_canSwim;
}
private set
{
m_canSwim = value;
}
}
public float MoveRate
{
get
{
return m_moveRate;
}
private set
{
m_moveRate = value;
}
}
public TerrainTypes Type
{
get
{
return m_terrainType;
}
private set
{
m_terrainType = value;
}
}
}
}
| 24.461538 | 123 | 0.443396 | [
"MIT"
] | CoderGirl42/Azmyth | Azmyth/Assets/TerrainType.cs | 3,500 | C# |
//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
//
using HUX;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
/// <summary>
/// HUX Editor Menu Class.
/// Contains all functions used withing the HUX dropdown. Should be broken apart if
/// this class gets overloaded and becomes unmanagable.
/// </summary>
public class HUXEditorMenu : MonoBehaviour
{
#region HUX
/// <summary>
/// Path to the Hololens prefab
/// </summary>
protected const string HololensPath = "Assets/MRDesignLab/HUX/Prefabs/Interface/HoloLens.prefab";
protected const string INT_LAYER = "Interaction";
protected const string ACT_LAYER = "Activation";
[MenuItem("HUX/Add Input Controls", false, 1)]
public static void AddInputControls()
{
HUXInputEditing.RemoveInputControl("Horizontal", 2);
HUXInputEditing.RemoveInputControl("Vertical", 2);
HUXInputEditing.RemoveInputControl("Fire1", 2);
HUXInputEditing.RemoveInputControl("Fire2", 2);
for (int index = 0; index < HuxInputList.ALL_CONTROLS.Length; index++)
{
HUXInputEditing.AddInputControl(HuxInputList.ALL_CONTROLS[index]);
}
}
/// <summary>
/// Init scene removes the main camera if found and adds the Hololens.
/// </summary>
[MenuItem("HUX/Interface/HoloLens", false, 1)]
public static void AddHololensInterface()
{
// Remove the Main Camera if found.
GameObject _mainCam = GameObject.FindWithTag("MainCamera");
if (_mainCam != null)
Object.DestroyImmediate(_mainCam);
// Remove old interface if it exists
Veil _mainVeil = GameObject.FindObjectOfType<Veil>();
if (_mainVeil != null)
Object.DestroyImmediate(_mainVeil.gameObject);
// Add the Hololens Prefab
GameObject _hl = HUXEditorUtils.AddToScene(HololensPath, false);
if (Selection.activeGameObject)
_hl.transform.parent = Selection.activeGameObject.transform;
}
#endregion
#region Collections
[MenuItem("HUX/Create Collection", false, 2)]
public static void CreateCollection()
{
GameObject _gameObject = new GameObject("Collection");
_gameObject.AddComponent<HUX.Collections.ObjectCollection>();
foreach (GameObject _go in Selection.gameObjects)
{
_go.transform.parent = _gameObject.transform;
}
}
#endregion
#region Utility
protected const string MessageBoxPath = "Assets/MRDesignLab/HUX/Prefabs/Dialogs/MessageBox.prefab";
[MenuItem("HUX/Create Sequencer", false, 2)]
public static void CreateSequencer()
{
GameObject _gameObject = new GameObject("Sequencer");
HUX.Utility.Sequencer _sequencer = _gameObject.AddComponent<HUX.Utility.Sequencer>();
_sequencer.MessageBoxPrefab = AssetDatabase.LoadAssetAtPath<HUX.Dialogs.MessageBox>(MessageBoxPath);
}
#endregion
#region Buttons
protected const string SpriteButtonPath = "Assets/MRDesignLab/HUX/Prefabs/Buttons/SpriteButton.prefab";
protected const string MeshButtonPath = "Assets/MRDesignLab/HUX/Prefabs/Buttons/MeshButton.prefab";
protected const string ObjectButtonPath = "Assets/MRDesignLab/HUX/Prefabs/Buttons/ObjectButton.prefab";
protected const string CompoundSquareButtonPath = "Assets/MRDesignLab/HUX/Prefabs/Buttons/SquareButton.prefab";
protected const string CompoundRectangleButtonPath = "Assets/MRDesignLab/HUX/Prefabs/Buttons/RectangleButton.prefab";
protected const string CompoundCircleButtonPath = "Assets/MRDesignLab/HUX/Prefabs/Buttons/CircleButton.prefab";
[MenuItem("HUX/Buttons/Add Sprite Button", false, 20)]
public static void CreateSpriteButton()
{
Object prefab = AssetDatabase.LoadAssetAtPath(SpriteButtonPath, typeof(GameObject));
GameObject clone = PrefabUtility.InstantiatePrefab(prefab) as GameObject;
clone.name = clone.name.Substring(0, clone.name.Length - 7);
if (Selection.activeGameObject)
{
clone.transform.position = Selection.activeGameObject.transform.position;
clone.transform.rotation = Selection.activeGameObject.transform.rotation;
clone.transform.parent = Selection.activeGameObject.transform;
}
}
[MenuItem("HUX/Buttons/Add Mesh Button", false, 20)]
public static void CreateMeshButton()
{
Object prefab = AssetDatabase.LoadAssetAtPath(MeshButtonPath, typeof(GameObject));
GameObject clone = PrefabUtility.InstantiatePrefab(prefab) as GameObject;
clone.name = clone.name.Substring(0, clone.name.Length - 7);
if (Selection.activeGameObject)
{
clone.transform.position = Selection.activeGameObject.transform.position;
clone.transform.rotation = Selection.activeGameObject.transform.rotation;
clone.transform.parent = Selection.activeGameObject.transform;
}
}
[MenuItem("HUX/Buttons/Add Object Button", false, 20)]
public static void CreateObjectButton()
{
Object prefab = AssetDatabase.LoadAssetAtPath(ObjectButtonPath, typeof(GameObject));
GameObject clone = PrefabUtility.InstantiatePrefab(prefab) as GameObject;
clone.name = clone.name.Substring(0, clone.name.Length - 7);
if (Selection.activeGameObject)
{
clone.transform.position = Selection.activeGameObject.transform.position;
clone.transform.rotation = Selection.activeGameObject.transform.rotation;
clone.transform.parent = Selection.activeGameObject.transform;
}
}
[MenuItem("HUX/Buttons/Add Compound Button (Square)", false, 20)]
public static void CreateCompoundSquareButton()
{
Object prefab = AssetDatabase.LoadAssetAtPath(CompoundSquareButtonPath, typeof(GameObject));
GameObject clone = PrefabUtility.InstantiatePrefab(prefab) as GameObject;
clone.name = clone.name;
if (Selection.activeGameObject)
{
clone.transform.position = Selection.activeGameObject.transform.position;
clone.transform.rotation = Selection.activeGameObject.transform.rotation;
clone.transform.parent = Selection.activeGameObject.transform;
}
}
[MenuItem("HUX/Buttons/Add Compound Button (Rectangle)", false, 20)]
public static void CreateCompoundRectangleButton()
{
Object prefab = AssetDatabase.LoadAssetAtPath(CompoundRectangleButtonPath, typeof(GameObject));
GameObject clone = PrefabUtility.InstantiatePrefab(prefab) as GameObject;
clone.name = clone.name;
if (Selection.activeGameObject)
{
clone.transform.position = Selection.activeGameObject.transform.position;
clone.transform.rotation = Selection.activeGameObject.transform.rotation;
clone.transform.parent = Selection.activeGameObject.transform;
}
}
[MenuItem("HUX/Buttons/Add Compound Button (Circle)", false, 20)]
public static void CreateCompoundCircleButton()
{
Object prefab = AssetDatabase.LoadAssetAtPath(CompoundCircleButtonPath, typeof(GameObject));
GameObject clone = PrefabUtility.InstantiatePrefab(prefab) as GameObject;
clone.name = clone.name;
if (Selection.activeGameObject)
{
clone.transform.position = Selection.activeGameObject.transform.position;
clone.transform.rotation = Selection.activeGameObject.transform.rotation;
clone.transform.parent = Selection.activeGameObject.transform;
}
}
#endregion
#region Receivers
[MenuItem("HUX/Receiver/Connect Receiver", false, 22)]
public static void ConnectReceiver()
{
HUX.Receivers.InteractionReceiver _receiver = null;
List<HUX.Buttons.Button> _buttons = new List<HUX.Buttons.Button>();
foreach (GameObject _go in Selection.gameObjects)
{
HUX.Buttons.Button _button = _go.GetComponent<HUX.Buttons.Button>();
if (_button != null)
_buttons.Add(_button);
HUX.Receivers.InteractionReceiver _newReceiver = _go.GetComponent<HUX.Receivers.InteractionReceiver>();
if (_newReceiver != null)
{
if (_receiver == null)
{
_receiver = _newReceiver;
}
else
{
Debug.LogWarning("[HUX] More than one Receiver Found!! Using first Receiver Found.");
}
}
}
if (_receiver != null && _buttons.Count > 0)
{
foreach (HUX.Buttons.Button _button in _buttons)
{
_receiver.RegisterInteractible(_button.gameObject);
}
}
}
[MenuItem("HUX/Receiver/Disconnect Receiver", false, 22)]
public static void DisconnectReceiver()
{
HUX.Receivers.InteractionReceiver _receiver = null;
List<HUX.Buttons.Button> _buttons = new List<HUX.Buttons.Button>();
foreach (GameObject _go in Selection.gameObjects)
{
HUX.Buttons.Button _button = _go.GetComponent<HUX.Buttons.Button>();
if (_button != null)
_buttons.Add(_button);
HUX.Receivers.InteractionReceiver _newReceiver = _go.GetComponent<HUX.Receivers.InteractionReceiver>();
if (_newReceiver != null)
{
if (_receiver == null)
{
_receiver = _newReceiver;
}
else
{
Debug.LogWarning("[HUX] More than one Receiver Found!! Using first Receiver Found.");
}
}
}
if (_receiver != null)
{
if(_buttons.Count > 0)
{
foreach (HUX.Buttons.Button _button in _buttons)
{
_receiver.RemoveInteractible(_button.gameObject);
}
}
else
{
}
}
}
[MenuItem("HUX/Receiver/Add Toggle Receiver", false, 30)]
public static void CreateToggleReceiver()
{
GameObject _gameObject = new GameObject("ToggleActiveReceiver");
HUX.Receivers.ToggleActiveReceiver _receiver = _gameObject.AddComponent<HUX.Receivers.ToggleActiveReceiver>();
if (Selection.activeGameObject)
{
HUX.Buttons.Button _button = Selection.activeGameObject.GetComponent<HUX.Buttons.Button>();
if (_button != null)
{
_receiver.RegisterInteractible(_button.gameObject);
}
}
}
[MenuItem("HUX/Receiver/Add Slideshow Receiver", false, 30)]
public static void CreateSlideshowReceiver()
{
GameObject _gameObject = new GameObject("SlideshowReceiver");
HUX.Receivers.SlideshowReceiver _receiver = _gameObject.AddComponent<HUX.Receivers.SlideshowReceiver>();
if (Selection.activeGameObject)
{
HUX.Buttons.Button _button = Selection.activeGameObject.GetComponent<HUX.Buttons.Button>();
if (_button != null)
{
_receiver.RegisterInteractible(_button.gameObject);
}
}
}
[MenuItem("HUX/Receiver/Add Speech Reciever", false, 30)]
public static void CreateSpeechReveiver()
{
if (Selection.activeGameObject != null)
{
Selection.activeGameObject.AddComponent<SpeechReciever>();
}
}
#endregion
#region Cursors
protected const string SpriteCursorPath = "Assets/MRDesignLab/HUX/Prefabs/Cursors/SpriteCursor.prefab";
protected const string MeshCursorPath = "Assets/MRDesignLab/HUX/Prefabs/Cursors/MeshCursor.prefab";
protected const string AnimCursorPath = "Assets/MRDesignLab/HUX/Prefabs/Cursors/AnimCursor.prefab";
[MenuItem("HUX/Cursors/Add Sprite Cursor", false, 30)]
public static void CreateSpriteCursor()
{
// Cursors are not child objects
Object prefab = AssetDatabase.LoadAssetAtPath(SpriteCursorPath, typeof(GameObject));
GameObject clone = Instantiate(prefab) as GameObject;
clone.name = clone.name.Substring(0, clone.name.Length - 7);
}
[MenuItem("HUX/Cursors/Add Mesh Cursor", false, 30)]
public static void CreateMeshCursor()
{
// Cursors are not child objects
Object prefab = AssetDatabase.LoadAssetAtPath(MeshCursorPath, typeof(GameObject));
GameObject clone = Instantiate(prefab) as GameObject;
clone.name = clone.name.Substring(0, clone.name.Length - 7);
}
[MenuItem("HUX/Cursors/Add Anim Cursor", false, 30)]
public static void CreateAnimCursor()
{
Object prefab = AssetDatabase.LoadAssetAtPath(AnimCursorPath, typeof(GameObject));
GameObject clone = Instantiate(prefab) as GameObject;
clone.name = clone.name.Substring(0, clone.name.Length - 7);
}
#endregion
#region Spatial
/*protected const string TagAlongSolverPath = "Assets/MRDesignLab/HUX/Prefabs/Spatial/TagAlongSolver.prefab";
protected const string BodyLockSolverPath = "Assets/MRDesignLab/HUX/Prefabs/Spatial/BodyLockSolver.prefab";
protected const string RadialViewSolverPath = "Assets/MRDesignLab/HUX/Prefabs/Spatial/RadialViewSolver.prefab";
[MenuItem("HUX/Spatial/Add Tag Along Solver", false, 30)]
public static void CreateTagAlongSolver()
{
Object prefab = AssetDatabase.LoadAssetAtPath(TagAlongSolverPath, typeof(GameObject));
GameObject clone = Instantiate(prefab) as GameObject;
clone.name = clone.name.Substring(0, clone.name.Length - 7);
foreach (GameObject _go in Selection.gameObjects)
{
_go.transform.parent = clone.transform;
}
}
[MenuItem("HUX/Spatial/Add Body Lock Solver", false, 30)]
public static void CreateBodyLockSolver()
{
Object prefab = AssetDatabase.LoadAssetAtPath(BodyLockSolverPath, typeof(GameObject));
GameObject clone = Instantiate(prefab) as GameObject;
clone.name = clone.name.Substring(0, clone.name.Length - 7);
foreach (GameObject _go in Selection.gameObjects)
{
_go.transform.parent = clone.transform;
}
}
[MenuItem("HUX/Spatial/Add Radial View Solver", false, 30)]
public static void CreateRadialViewSolver()
{
Object prefab = AssetDatabase.LoadAssetAtPath(RadialViewSolverPath, typeof(GameObject));
GameObject clone = Instantiate(prefab) as GameObject;
clone.name = clone.name.Substring(0, clone.name.Length - 7);
foreach (GameObject _go in Selection.gameObjects)
{
_go.transform.parent = clone.transform;
}
}*/
#endregion
}
| 38.225064 | 121 | 0.664325 | [
"MIT"
] | AllBecomesGood/Share-UpdateHolograms | ShareAndKeepSynced/Assets/MRDesignLab/HUX/Editor/HUXEditorMenu.cs | 14,946 | C# |
using System;
using IntegrationTests;
using Jasper;
using Jasper.Persistence.Marten;
using Jasper.Tcp;
using Jasper.Util;
using StoryTeller;
namespace StorytellerSpecs.Fixtures.Marten.App
{
public class ReceiverApp : JasperOptions
{
public ReceiverApp(Uri listener)
{
Extensions.Include<TcpTransportExtension>();
Handlers.DisableConventionalDiscovery();
Handlers.IncludeType<TraceHandler>();
Extensions.UseMarten(o =>
{
o.Connection(Servers.PostgresConnectionString);
o.DatabaseSchemaName = "receiver";
});
Endpoints.ListenForMessagesFrom(listener).DurablyPersistedLocally();
}
}
}
| 25.448276 | 80 | 0.644986 | [
"MIT"
] | JasperFx/jasper | src/StorytellerSpecs/Fixtures/Marten/App/ReceiverApp.cs | 740 | C# |
namespace Bing.Admin.Service.Abstractions.Commons
{
/// <summary>
/// 文件 服务
/// </summary>
public interface IFileService : Bing.Application.Services.IAppService
{
}
}
| 17.545455 | 73 | 0.637306 | [
"MIT"
] | bing-framework/Bing.NetCode | modules/admin/src/Bing.Admin.Service/Abstractions/Commons/IFileService.cs | 203 | C# |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Dynamic;
using System.Linq;
using System.Web;
namespace AdminLteMvc.Models.WEBSales
{
public class EIRINECV
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int eirinecvID { get; set; }
public string eirinecvno { get; set; }
public string eirinecvreferenceno { get; set; }
public string eirinecvstatus { get; set; }
public string eirinecvidate { get; set; }
public string eirinecvitime { get; set; }
public string eirinecvservicetype { get; set; }
public string eirinecvtransactionno { get; set; }
public string eirinecvconvanno { get; set; }
public string eirinecvconvanstatus { get; set; }
public string eirinecvconvansize { get; set; }
public string eirinecvconsignee { get; set; }
public string eirinecvshipper { get; set; }
public string eirinecvtrucker { get; set; }
public string eirinecvdriversname { get; set; }
public string eirinecvplateno { get; set; }
public string eirinecvrelayport { get; set; }
public string eirinecvvessel { get; set; }
public string eirinecvvoyageno { get; set; }
public string eirinecvsealno { get; set; }
public string eirinecvsealstatus { get; set; }
public string eirinecvportoforigin { get; set; }
public string eirinecvportofdestination { get; set; }
public string eirinecvweight { get; set; }
public string eirinecvvolume { get; set; }
public string eirinecvdamagescode { get; set; }
public string eirinecvscr { get; set; }
public string eirinecvremarks { get; set; }
public string eirinecvtriptype { get; set; }
public string eirinecvwaybillno { get; set; }
public string eirinecvwaybillattachement { get; set; }
}
} | 42.87234 | 62 | 0.666005 | [
"MIT"
] | ataharasystemsolutions/KTI_TEST | AdminLteMvc/AdminLteMvc/Models/WEBSales/EIRINECV.cs | 2,017 | C# |
using DevTranslate.Api.Context;
using DevTranslate.Api.DTO;
using Microsoft.AspNetCore.Mvc;
using Swashbuckle.AspNetCore.Annotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Mime;
using System.Threading.Tasks;
namespace DevTranslate.Api.Controllers
{
[ApiController]
[Route("translations")]
public class TranslationsController : ControllerBase
{
private readonly DevTranslateContext _context;
public TranslationsController(DevTranslateContext context)
{
_context = context ?? throw new ArgumentNullException(nameof(context));
}
[HttpGet]
[SwaggerResponse(200, "List of translations", typeof(SearchTranslationResponse))]
[SwaggerOperation(
Summary = "Get a list of translations",
Description = "Get a paginated list of translations, optionally filtering by title, author or translator",
OperationId = "SearchTranslations",
Tags = new[] { "Translations" }
)]
[Produces(MediaTypeNames.Application.Json)]
public IActionResult SearchTranslations([FromQuery] SearchTranslationRequest request)
{
var databaseQuery = _context.Translations.Select(t => new SearchTranslationResult()
{
Id = t.Id,
Title = t.Title,
Author = t.Author,
Translator = t.Translator,
Language = t.Language,
Url = t.Url,
ImageUrl = t.ImageUrl,
Status = t.Status,
Type = t.Type
});
if (!String.IsNullOrWhiteSpace(request.Query))
{
databaseQuery = databaseQuery.Where(t => t.Title.ToLower().Contains(request.Query.ToLower())
|| t.Author.ToLower().Contains(request.Query.ToLower())
|| t.Translator.ToLower().Contains(request.Query.ToLower()));
}
if (request.Status.HasValue)
{
databaseQuery = databaseQuery.Where(t => t.Status == request.Status.Value);
}
if (request.Language.HasValue)
{
databaseQuery = databaseQuery.Where(t => t.Language == request.Language.Value);
}
if (request.Type.HasValue)
{
databaseQuery = databaseQuery.Where(t => t.Type == request.Type.Value);
}
var pagination = new PaginationResponse(request.Page ?? 0, request.PageSize ?? 0, databaseQuery.Count());
databaseQuery = databaseQuery.Skip(pagination.PageSize * (pagination.Page - 1))
.Take(pagination.PageSize);
var response = new SearchTranslationResponse(databaseQuery, pagination);
return Ok(response);
}
}
}
| 35.765432 | 118 | 0.58854 | [
"MIT"
] | devtranslate/api | src/DevTranslate.Api/Controllers/TranslationsController.cs | 2,899 | C# |
using CsvHelper;
using System.Collections.Generic;
using System.Globalization;
using System;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Text.Json;
using System.Threading.Tasks;
namespace RelasiConsole;
public class Program
{
static HttpClient httClient = new HttpClient();
static List<Kota2> daftarKota2= new List<Kota2>();
static List<Area> daftarArea = new List<Area>();
static string csvPath = @"../../../../../csv";
static string jsonPath = @"../../../../../../Indonesia-Postal-And-Area/data/json/area/62";
public static async Task Main(string[] args)
{
await Menu();
}
private static async Task Menu()
{
while (true)
{
Console.Clear();
Console.WriteLine("Choose an option:");
Console.WriteLine("1) Load Data");
Console.WriteLine("8) Load Area JSON");
Console.WriteLine("9) Fetch Data");
Console.WriteLine("0) Exit");
Console.Write("\r\nSelect an option: ");
var choice = Console.ReadLine();
switch (choice)
{
case "1":
Console.WriteLine("Begin SavePostCodeV2...");
SavePostCodeV2();
break;
case "8":
Console.WriteLine("Begin Load Area...");
await LoadArea();
Console.WriteLine("Done.");
break;
case "9":
Console.WriteLine("Begin Fetching...");
await FetchData();
Console.WriteLine("Done.");
break;
case "0":
Environment.Exit(0);
break;
default:
break;
}
}
}
private static async Task FetchData()
{
if (Directory.Exists(csvPath))
{
await AdministrativeData("https://sig.bps.go.id/rest-drop-down/getwilayah", "bps_provinsi.csv");
await AdministrativeData("https://sig.bps.go.id/rest-drop-down/getwilayah?level=kabupaten&parent=", "bps_kabupaten.csv");
await AdministrativeData("https://sig.bps.go.id/rest-drop-down/getwilayah?level=kecamatan&parent=", "bps_kecamatan.csv");
await AdministrativeData("https://sig.bps.go.id/rest-drop-down/getwilayah?level=desa&parent=", "bps_desa.csv");
await PostCodeRelation("https://sig.bps.go.id/rest-bridging-pos/getwilayah?level=provinsi&parent=", "postal_code_relation_province.csv");
await PostCodeRelation("https://sig.bps.go.id/rest-bridging-pos/getwilayah?level=kabupaten&parent=", "postal_code_relation_regency.csv");
await PostCodeRelation("https://sig.bps.go.id/rest-bridging-pos/getwilayah?level=kecamatan&parent=", "postal_code_relation_district.csv");
await PostCodeRelation("https://sig.bps.go.id/rest-bridging-pos/getwilayah?level=desa&parent=", "postal_code_relation_village.csv");
await KemendagriCodeRelation("https://sig.bps.go.id/rest-bridging/getwilayah?level=provinsi&parent=", "kemendagri_code_relation_province.csv");
await KemendagriCodeRelation("https://sig.bps.go.id/rest-bridging/getwilayah?level=kabupaten&parent=", "kemendagri_code_relation_regency.csv");
await KemendagriCodeRelation("https://sig.bps.go.id/rest-bridging/getwilayah?level=kecamatan&parent=", "kemendagri_code_relation_district.csv");
await KemendagriCodeRelation("https://sig.bps.go.id/rest-bridging/getwilayah?level=desa&parent=", "kemendagri_code_relation_village.csv");
//old link, may still usable
/*
await AdministrativeData("https://sig-dev.bps.go.id/restDropDown/getwilayah", "bps_provinsi.csv");
await AdministrativeData("https://sig-dev.bps.go.id/restDropDown/getwilayah/level/kabupaten/parent/", "bps_kabupaten.csv");
await AdministrativeData("https://sig-dev.bps.go.id/restDropDown/getwilayah/level/kecamatan/parent/", "bps_kecamatan.csv");
await AdministrativeData("https://sig-dev.bps.go.id/restDropDown/getwilayah/level/desa/parent/", "bps_desa.csv");
await PostCodeRelation("https://sig-dev.bps.go.id/restBridgingPosController/getwilayah/", "postal_code_relation_province.csv");
await PostCodeRelation("https://sig-dev.bps.go.id/restBridgingPosController/getwilayah/level/kabupaten/parent/", "postal_code_relation_regency.csv");
await PostCodeRelation("https://sig-dev.bps.go.id/restBridgingPosController/getwilayah/level/kecamatan/parent/", "postal_code_relation_district.csv");
await PostCodeRelation("https://sig-dev.bps.go.id/restBridgingPosController/getwilayah/level/desa/parent/", "postal_code_relation_village.csv");
await KemendagriCodeRelation("https://sig-dev.bps.go.id/restBridging/getwilayahperiode/level/kabupaten/parent//periode/20181", "kemendagri_code_relation_regency.csv");
await KemendagriCodeRelation("https://sig-dev.bps.go.id/restBridging/getwilayahperiode/level/kecamatan/parent//periode/20181", "kemendagri_code_relation_district.csv");
await KemendagriCodeRelation("https://sig-dev.bps.go.id/restBridging/getwilayahperiode/level/desa/parent//periode/20181", "kemendagri_code_relation_village.csv");
//*/
}
}
private static async Task AdministrativeData(string link, string fileName)
{
IEnumerable<DataRow>? daftarData;
var daftarKotaResponse = await httClient.GetAsync(link);
var jsonDataKota = await daftarKotaResponse.Content.ReadAsStringAsync();
daftarData = JsonSerializer.Deserialize<IEnumerable<DataRow>>(jsonDataKota);
//filter empty city codes
daftarData = daftarData?.Where(x => !string.IsNullOrEmpty(x.kode));
if (daftarData?.Count() > 0)
{
using (var writer = new StreamWriter($"{csvPath}/{fileName}"))
using (var csv = new CsvWriter(writer, CultureInfo.InvariantCulture))
{
csv.WriteRecords(daftarData);
}
}
}
private static async Task PostCodeRelation(string link, string fileName)
{
IEnumerable<Kota>? daftarKota;
var daftarKotaResponse = await httClient.GetAsync(link);
var jsonDataKota = await daftarKotaResponse.Content.ReadAsStringAsync();
daftarKota = JsonSerializer.Deserialize<IEnumerable<Kota>>(jsonDataKota);
//filter empty city codes
daftarKota = daftarKota?.Where(x => !string.IsNullOrEmpty(x.kode_bps));
if (daftarKota?.Count() > 0)
{
using (var writer = new StreamWriter($"{csvPath}/{fileName}"))
using (var csv = new CsvWriter(writer, CultureInfo.InvariantCulture))
{
csv.WriteRecords(daftarKota);
}
}
}
private static async Task KemendagriCodeRelation(string link, string fileName)
{
IEnumerable<KotaKemendagri>? daftarKota;
var daftarKotaResponse = await httClient.GetAsync(link);
var jsonDataKota = await daftarKotaResponse.Content.ReadAsStringAsync();
daftarKota = JsonSerializer.Deserialize<IEnumerable<KotaKemendagri>>(jsonDataKota);
//filter empty city codes
daftarKota = daftarKota?.Where(x => !string.IsNullOrEmpty(x.kode_bps));
if (daftarKota?.Count() > 0)
{
using (var writer = new StreamWriter($"{csvPath}/{fileName}"))
using (var csv = new CsvWriter(writer, CultureInfo.InvariantCulture))
{
csv.WriteRecords(daftarKota);
}
}
}
private static void SavePostCodeV2()
{
PostCodeV2("postal_code_relation_district.csv", "postal_code_relation_district_v2.csv");
PostCodeV2("postal_code_relation_village.csv", "postal_code_relation_village_v2.csv");
}
public static void PostCodeV2(string source, string target)
{
daftarKota2.Clear();
var config = new CsvHelper.Configuration.CsvConfiguration(CultureInfo.InvariantCulture)
{
HeaderValidated = null,
MissingFieldFound = null
};
using (var reader = new StreamReader(@$"{csvPath}/{source}"))
using (var csv = new CsvReader(reader, config))
{
var records = csv.GetRecords<Kota2>().ToList();
daftarKota2.AddRange(records);
foreach (var item in daftarKota2)
{
var area = daftarArea.Where(x => x.code.ToString() == item.kode_bps).FirstOrDefault();
var kodePosTerakhir = area?.postal?.LastOrDefault();
item.kode_pos2 = kodePosTerakhir.ToString();
item.nama_pos2 = item.nama_pos;
}
using (var writer = new StreamWriter($"{csvPath}/{target}"))
using (var csv2 = new CsvWriter(writer, CultureInfo.InvariantCulture))
{
csv2.WriteRecords(daftarKota2);
}
}
}
private static async Task LoadArea()
{
daftarArea.Clear();
if (File.Exists(jsonPath))
{
// This path is a file
await ProcessFile(jsonPath);
}
else if (Directory.Exists(jsonPath))
{
// This path is a directory
await ProcessDirectory(jsonPath);
}
else
{
Console.WriteLine("{0} is not a valid file or directory.", jsonPath);
}
Console.WriteLine($"Total items : {daftarArea.Count:N}");
}
// Process all files in the directory passed in, recurse on any directories
// that are found, and process the files they contain.
public static async Task ProcessDirectory(string targetDirectory)
{
// Process the list of files found in the directory.
string[] fileEntries = Directory.GetFiles(targetDirectory);
foreach (string fileName in fileEntries)
await ProcessFile(fileName);
// Recurse into subdirectories of this directory.
string[] subdirectoryEntries = Directory.GetDirectories(targetDirectory);
foreach (string subdirectory in subdirectoryEntries)
await ProcessDirectory(subdirectory);
}
// Insert logic for processing found files here.
public static async Task ProcessFile(string path)
{
//Console.WriteLine("Processed file '{0}'.", path);
try
{
var json = await File.ReadAllTextAsync(path);
var area = JsonSerializer.Deserialize<Area>(json);
daftarArea.Add(area);
}
catch (Exception ex)
{
Console.WriteLine("Error: " + ex.Message);
}
}
} | 43.75 | 180 | 0.629401 | [
"MIT"
] | moemura/Wilayah-Administratif-Indonesia | scriptscsharp/RelasiConsole/Program.cs | 10,852 | C# |
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.XR.ARFoundation;
/// <summary>
/// This example demonstrates how to toggle plane detection,
/// and also hide or show the existing planes.
/// </summary>
[RequireComponent(typeof(ARPlaneManager))]
public class PlaneDetectionController : MonoBehaviour
{
[Tooltip("The UI Text element used to display plane detection messages.")]
[SerializeField]
Text m_TogglePlaneDetectionText;
/// <summary>
/// The UI Text element used to display plane detection messages.
/// </summary>
public Text togglePlaneDetectionText
{
get { return m_TogglePlaneDetectionText; }
set { m_TogglePlaneDetectionText = value; }
}
/// <summary>
/// Toggles plane detection and the visualization of the planes.
/// </summary>
public void TogglePlaneDetection()
{
m_ARPlaneManager.enabled = !m_ARPlaneManager.enabled;
string planeDetectionMessage = "";
if (m_ARPlaneManager.enabled)
{
planeDetectionMessage = "Disable Plane Detection and Hide Existing";
SetAllPlanesActive(true);
}
else
{
planeDetectionMessage = "Enable Plane Detection and Show Existing";
SetAllPlanesActive(false);
}
if (togglePlaneDetectionText != null)
togglePlaneDetectionText.text = planeDetectionMessage;
}
/// <summary>
/// Iterates over all the existing planes and activates
/// or deactivates their <c>GameObject</c>s'.
/// </summary>
/// <param name="value">Each planes' GameObject is SetActive with this value.</param>
public void SetAllPlanesActive(bool value)
{
foreach (var plane in m_ARPlaneManager.trackables)
plane.gameObject.SetActive(value);
}
void Awake()
{
m_ARPlaneManager = GetComponent<ARPlaneManager>();
}
ARPlaneManager m_ARPlaneManager;
} | 30.106061 | 89 | 0.663815 | [
"MIT"
] | markusfluxguide/AR-App-zu-Kosmos-Kaffee | Assets/Scripts/PlaneDetectionController.cs | 1,989 | C# |
// <copyright file="AllowedForEnum.Generated.cs" company="Okta, Inc">
// Copyright (c) 2014 - present Okta, Inc. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
// </copyright>
// This file was automatically generated. Don't modify it directly.
namespace Okta.Sdk
{
/// <summary>
/// An enumeration of AllowedForEnum values in the Okta API.
/// </summary>
public sealed class AllowedForEnum : StringEnum
{
/// <summary>The recovery AllowedForEnum.</summary>
public static AllowedForEnum Recovery = new AllowedForEnum("recovery");
/// <summary>The sso AllowedForEnum.</summary>
public static AllowedForEnum Sso = new AllowedForEnum("sso");
/// <summary>The any AllowedForEnum.</summary>
public static AllowedForEnum Any = new AllowedForEnum("any");
/// <summary>The none AllowedForEnum.</summary>
public static AllowedForEnum None = new AllowedForEnum("none");
/// <summary>
/// Implicit operator declaration to accept and convert a string value as a <see cref="AllowedForEnum"/>
/// </summary>
/// <param name="value">The value to use</param>
public static implicit operator AllowedForEnum(string value) => new AllowedForEnum(value);
/// <summary>
/// Creates a new <see cref="AllowedForEnum"/> instance.
/// </summary>
/// <param name="value">The value to use.</param>
public AllowedForEnum(string value)
: base(value)
{
}
}
}
| 36.772727 | 112 | 0.645241 | [
"Apache-2.0"
] | Christian-Oleson/okta-sdk-dotnet | src/Okta.Sdk/Generated/AllowedForEnum.Generated.cs | 1,618 | C# |
using System;
namespace SkiaSharp
{
public readonly unsafe struct SKPMColor : IEquatable<SKPMColor>
{
private readonly uint color;
public SKPMColor (uint value)
{
color = value;
}
public readonly byte Alpha => (byte)((color >> SKImageInfo.PlatformColorAlphaShift) & 0xff);
public readonly byte Red => (byte)((color >> SKImageInfo.PlatformColorRedShift) & 0xff);
public readonly byte Green => (byte)((color >> SKImageInfo.PlatformColorGreenShift) & 0xff);
public readonly byte Blue => (byte)((color >> SKImageInfo.PlatformColorBlueShift) & 0xff);
// PreMultiply
public static SKPMColor PreMultiply (SKColor color) =>
SkiaApi.sk_color_premultiply ((uint)color);
public static SKPMColor[] PreMultiply (SKColor[] colors)
{
var pmcolors = new SKPMColor[colors.Length];
fixed (SKColor* c = colors)
fixed (SKPMColor* pm = pmcolors) {
SkiaApi.sk_color_premultiply_array ((uint*)c, colors.Length, (uint*)pm);
}
return pmcolors;
}
// UnPreMultiply
public static SKColor UnPreMultiply (SKPMColor pmcolor) =>
SkiaApi.sk_color_unpremultiply ((uint)pmcolor);
public static SKColor[] UnPreMultiply (SKPMColor[] pmcolors)
{
var colors = new SKColor[pmcolors.Length];
fixed (SKColor* c = colors)
fixed (SKPMColor* pm = pmcolors) {
SkiaApi.sk_color_unpremultiply_array ((uint*)pm, pmcolors.Length, (uint*)c);
}
return colors;
}
public static explicit operator SKPMColor (SKColor color) =>
SKPMColor.PreMultiply (color);
public static explicit operator SKColor (SKPMColor color) =>
SKPMColor.UnPreMultiply (color);
public readonly override string ToString () =>
$"#{Alpha:x2}{Red:x2}{Green:x2}{Blue:x2}";
public readonly bool Equals (SKPMColor obj) =>
obj.color == color;
public readonly override bool Equals (object other) =>
other is SKPMColor f && Equals (f);
public static bool operator == (SKPMColor left, SKPMColor right) =>
left.Equals (right);
public static bool operator != (SKPMColor left, SKPMColor right) =>
!left.Equals (right);
public readonly override int GetHashCode () =>
color.GetHashCode ();
public static implicit operator SKPMColor (uint color) =>
new SKPMColor (color);
public static explicit operator uint (SKPMColor color) =>
color.color;
}
}
| 28.8 | 94 | 0.706163 | [
"MIT"
] | AlexanderSemenyak/SkiaSharp | binding/Binding/SKPMColor.cs | 2,306 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BGC.Data
{
public interface IDbPersist
{
void SaveChanges();
}
}
| 15.214286 | 33 | 0.70892 | [
"MIT"
] | blattodephobia/BG_Composers | BGC.Core/Data/IDbPersist.cs | 215 | C# |
using Lykke.SettingsReader.Attributes;
namespace Lykke.Service.LegalEntities.Settings.ServiceSettings.Db
{
public class DbSettings
{
[AzureTableCheck]
public string DataConnectionString { get; set; }
[AzureTableCheck]
public string LogsConnectionString { get; set; }
}
}
| 23.285714 | 65 | 0.674847 | [
"MIT"
] | LykkeCity/Lykke.Service.LegalEntities | src/Lykke.Service.LegalEntities/Settings/ServiceSettings/Db/DbSettings.cs | 328 | C# |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using StarkPlatform.CodeAnalysis.Text;
namespace StarkPlatform.CodeAnalysis
{
internal static class MarshalAsAttributeDecoder<TWellKnownAttributeData, TAttributeSyntax, TAttributeData, TAttributeLocation>
where TWellKnownAttributeData : WellKnownAttributeData, IMarshalAsAttributeTarget, new()
where TAttributeSyntax : SyntaxNode
where TAttributeData : AttributeData
{
internal static void Decode(ref DecodeWellKnownAttributeArguments<TAttributeSyntax, TAttributeData, TAttributeLocation> arguments, AttributeTargets target, CommonMessageProvider messageProvider)
{
Debug.Assert((object)arguments.AttributeSyntaxOpt != null);
UnmanagedType unmanagedType = DecodeMarshalAsType(arguments.Attribute);
switch (unmanagedType)
{
case Cci.Constants.UnmanagedType_CustomMarshaler:
DecodeMarshalAsCustom(ref arguments, messageProvider);
break;
case UnmanagedType.Interface:
case Cci.Constants.UnmanagedType_IDispatch:
case UnmanagedType.IUnknown:
DecodeMarshalAsComInterface(ref arguments, unmanagedType, messageProvider);
break;
case UnmanagedType.LPArray:
DecodeMarshalAsArray(ref arguments, messageProvider, isFixed: false);
break;
case UnmanagedType.ByValArray:
if (target != AttributeTargets.Field)
{
messageProvider.ReportMarshalUnmanagedTypeOnlyValidForFields(arguments.Diagnostics, arguments.AttributeSyntaxOpt, 0, "ByValArray", arguments.Attribute);
}
else
{
DecodeMarshalAsArray(ref arguments, messageProvider, isFixed: true);
}
break;
case Cci.Constants.UnmanagedType_SafeArray:
DecodeMarshalAsSafeArray(ref arguments, messageProvider);
break;
case UnmanagedType.ByValTStr:
if (target != AttributeTargets.Field)
{
messageProvider.ReportMarshalUnmanagedTypeOnlyValidForFields(arguments.Diagnostics, arguments.AttributeSyntaxOpt, 0, "ByValTStr", arguments.Attribute);
}
else
{
DecodeMarshalAsFixedString(ref arguments, messageProvider);
}
break;
case Cci.Constants.UnmanagedType_VBByRefStr:
if (target == AttributeTargets.Field)
{
messageProvider.ReportMarshalUnmanagedTypeNotValidForFields(arguments.Diagnostics, arguments.AttributeSyntaxOpt, 0, "VBByRefStr", arguments.Attribute);
}
else
{
// named parameters ignored with no error
arguments.GetOrCreateData<TWellKnownAttributeData>().GetOrCreateData().SetMarshalAsSimpleType(unmanagedType);
}
break;
default:
if ((int)unmanagedType < 0 || (int)unmanagedType > MarshalPseudoCustomAttributeData.MaxMarshalInteger)
{
// Dev10 reports CS0647: "Error emitting attribute ..."
messageProvider.ReportInvalidAttributeArgument(arguments.Diagnostics, arguments.AttributeSyntaxOpt, 0, arguments.Attribute);
}
else
{
// named parameters ignored with no error
arguments.GetOrCreateData<TWellKnownAttributeData>().GetOrCreateData().SetMarshalAsSimpleType(unmanagedType);
}
break;
}
}
private static UnmanagedType DecodeMarshalAsType(AttributeData attribute)
{
UnmanagedType unmanagedType;
if (attribute.AttributeConstructor.Parameters[0].Type.SpecialType == SpecialType.System_Int16)
{
unmanagedType = (UnmanagedType)attribute.CommonConstructorArguments[0].DecodeValue<short>(SpecialType.System_Int16);
}
else
{
unmanagedType = attribute.CommonConstructorArguments[0].DecodeValue<UnmanagedType>(SpecialType.System_Enum);
}
return unmanagedType;
}
private static void DecodeMarshalAsCustom(ref DecodeWellKnownAttributeArguments<TAttributeSyntax, TAttributeData, TAttributeLocation> arguments, CommonMessageProvider messageProvider)
{
Debug.Assert((object)arguments.AttributeSyntaxOpt != null);
ITypeSymbol typeSymbol = null;
string typeName = null;
string cookie = null;
bool hasTypeName = false;
bool hasTypeSymbol = false;
bool hasErrors = false;
int position = 1;
foreach (var namedArg in arguments.Attribute.NamedArguments)
{
switch (namedArg.Key)
{
case "MarshalType":
typeName = namedArg.Value.DecodeValue<string>(SpecialType.System_String);
if (!MetadataHelpers.IsValidUnicodeString(typeName))
{
messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.AttributeSyntaxOpt, position, arguments.Attribute.AttributeClass, namedArg.Key);
hasErrors = true;
}
hasTypeName = true; // even if MarshalType == null
break;
case "MarshalTypeRef":
typeSymbol = namedArg.Value.DecodeValue<ITypeSymbol>(SpecialType.None);
hasTypeSymbol = true; // even if MarshalTypeRef == null
break;
case "MarshalCookie":
cookie = namedArg.Value.DecodeValue<string>(SpecialType.System_String);
if (!MetadataHelpers.IsValidUnicodeString(cookie))
{
messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.AttributeSyntaxOpt, position, arguments.Attribute.AttributeClass, namedArg.Key);
hasErrors = true;
}
break;
// other parameters ignored with no error
}
position++;
}
if (!hasTypeName && !hasTypeSymbol)
{
// MarshalType or MarshalTypeRef must be specified:
messageProvider.ReportAttributeParameterRequired(arguments.Diagnostics, arguments.AttributeSyntaxOpt, "MarshalType", "MarshalTypeRef");
hasErrors = true;
}
if (!hasErrors)
{
arguments.GetOrCreateData<TWellKnownAttributeData>().GetOrCreateData().SetMarshalAsCustom(hasTypeName ? (object)typeName : typeSymbol, cookie);
}
}
private static void DecodeMarshalAsComInterface(ref DecodeWellKnownAttributeArguments<TAttributeSyntax, TAttributeData, TAttributeLocation> arguments, UnmanagedType unmanagedType, CommonMessageProvider messageProvider)
{
Debug.Assert((object)arguments.AttributeSyntaxOpt != null);
int? parameterIndex = null;
int position = 1;
bool hasErrors = false;
foreach (var namedArg in arguments.Attribute.NamedArguments)
{
switch (namedArg.Key)
{
case "IidParameterIndex":
parameterIndex = namedArg.Value.DecodeValue<int>(SpecialType.System_Int32);
if (parameterIndex < 0 || parameterIndex > MarshalPseudoCustomAttributeData.MaxMarshalInteger)
{
messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.AttributeSyntaxOpt, position, arguments.Attribute.AttributeClass, namedArg.Key);
hasErrors = true;
}
break;
// other parameters ignored with no error
}
position++;
}
if (!hasErrors)
{
arguments.GetOrCreateData<TWellKnownAttributeData>().GetOrCreateData().SetMarshalAsComInterface(unmanagedType, parameterIndex);
}
}
private static void DecodeMarshalAsArray(ref DecodeWellKnownAttributeArguments<TAttributeSyntax, TAttributeData, TAttributeLocation> arguments, CommonMessageProvider messageProvider, bool isFixed)
{
Debug.Assert((object)arguments.AttributeSyntaxOpt != null);
UnmanagedType? elementType = null;
int? elementCount = isFixed ? 1 : (int?)null;
short? parameterIndex = null;
bool hasErrors = false;
int position = 1;
foreach (var namedArg in arguments.Attribute.NamedArguments)
{
switch (namedArg.Key)
{
// array:
case "ArraySubType":
elementType = namedArg.Value.DecodeValue<UnmanagedType>(SpecialType.System_Enum);
// for some reason, Dev10 metadata writer disallows CustomMarshaler type as an element type of non-fixed arrays
if (!isFixed && elementType == Cci.Constants.UnmanagedType_CustomMarshaler ||
(int)elementType < 0 ||
(int)elementType > MarshalPseudoCustomAttributeData.MaxMarshalInteger)
{
messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.AttributeSyntaxOpt, position, arguments.Attribute.AttributeClass, namedArg.Key);
hasErrors = true;
}
break;
case "SizeConst":
elementCount = namedArg.Value.DecodeValue<int>(SpecialType.System_Int32);
if (elementCount < 0 || elementCount > MarshalPseudoCustomAttributeData.MaxMarshalInteger)
{
messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.AttributeSyntaxOpt, position, arguments.Attribute.AttributeClass, namedArg.Key);
hasErrors = true;
}
break;
case "SizeParamIndex":
if (isFixed)
{
goto case "SafeArraySubType";
}
parameterIndex = namedArg.Value.DecodeValue<short>(SpecialType.System_Int16);
if (parameterIndex < 0)
{
messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.AttributeSyntaxOpt, position, arguments.Attribute.AttributeClass, namedArg.Key);
hasErrors = true;
}
break;
case "SafeArraySubType":
messageProvider.ReportParameterNotValidForType(arguments.Diagnostics, arguments.AttributeSyntaxOpt, position);
hasErrors = true;
break;
// other parameters ignored with no error
}
position++;
}
if (!hasErrors)
{
var data = arguments.GetOrCreateData<TWellKnownAttributeData>().GetOrCreateData();
if (isFixed)
{
data.SetMarshalAsFixedArray(elementType, elementCount);
}
else
{
data.SetMarshalAsArray(elementType, elementCount, parameterIndex);
}
}
}
private static void DecodeMarshalAsSafeArray(ref DecodeWellKnownAttributeArguments<TAttributeSyntax, TAttributeData, TAttributeLocation> arguments, CommonMessageProvider messageProvider)
{
Debug.Assert((object)arguments.AttributeSyntaxOpt != null);
Cci.VarEnum? elementTypeVariant = null;
ITypeSymbol elementTypeSymbol = null;
int symbolIndex = -1;
bool hasErrors = false;
int position = 1;
foreach (var namedArg in arguments.Attribute.NamedArguments)
{
switch (namedArg.Key)
{
case "SafeArraySubType":
elementTypeVariant = namedArg.Value.DecodeValue<Cci.VarEnum>(SpecialType.System_Enum);
if (elementTypeVariant < 0 || (int)elementTypeVariant > MarshalPseudoCustomAttributeData.MaxMarshalInteger)
{
messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.AttributeSyntaxOpt, position, arguments.Attribute.AttributeClass, namedArg.Key);
hasErrors = true;
}
break;
case "SafeArrayUserDefinedSubType":
elementTypeSymbol = namedArg.Value.DecodeValue<ITypeSymbol>(SpecialType.None);
symbolIndex = position;
break;
case "ArraySubType":
case "SizeConst":
case "SizeParamIndex":
messageProvider.ReportParameterNotValidForType(arguments.Diagnostics, arguments.AttributeSyntaxOpt, position);
hasErrors = true;
break;
// other parameters ignored with no error
}
position++;
}
switch (elementTypeVariant)
{
case Cci.VarEnum.VT_DISPATCH:
case Cci.VarEnum.VT_UNKNOWN:
case Cci.VarEnum.VT_RECORD:
// only these variants accept specification of user defined subtype
break;
default:
if (elementTypeVariant != null && symbolIndex >= 0)
{
messageProvider.ReportParameterNotValidForType(arguments.Diagnostics, arguments.AttributeSyntaxOpt, symbolIndex);
hasErrors = true;
}
else
{
// type ignored:
elementTypeSymbol = null;
}
break;
}
if (!hasErrors)
{
arguments.GetOrCreateData<TWellKnownAttributeData>().GetOrCreateData().SetMarshalAsSafeArray(elementTypeVariant, elementTypeSymbol);
}
}
private static void DecodeMarshalAsFixedString(ref DecodeWellKnownAttributeArguments<TAttributeSyntax, TAttributeData, TAttributeLocation> arguments, CommonMessageProvider messageProvider)
{
Debug.Assert((object)arguments.AttributeSyntaxOpt != null);
int elementCount = -1;
int position = 1;
bool hasErrors = false;
foreach (var namedArg in arguments.Attribute.NamedArguments)
{
switch (namedArg.Key)
{
case "SizeConst":
elementCount = namedArg.Value.DecodeValue<int>(SpecialType.System_Int32);
if (elementCount < 0 || elementCount > MarshalPseudoCustomAttributeData.MaxMarshalInteger)
{
messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.AttributeSyntaxOpt, position, arguments.Attribute.AttributeClass, namedArg.Key);
hasErrors = true;
}
break;
case "ArraySubType":
case "SizeParamIndex":
messageProvider.ReportParameterNotValidForType(arguments.Diagnostics, arguments.AttributeSyntaxOpt, position);
hasErrors = true;
break;
// other parameters ignored with no error
}
position++;
}
if (elementCount < 0)
{
// SizeConst must be specified:
messageProvider.ReportAttributeParameterRequired(arguments.Diagnostics, arguments.AttributeSyntaxOpt, "SizeConst");
hasErrors = true;
}
if (!hasErrors)
{
arguments.GetOrCreateData<TWellKnownAttributeData>().GetOrCreateData().SetMarshalAsFixedString(elementCount);
}
}
}
}
| 44.392947 | 226 | 0.553563 | [
"Apache-2.0"
] | stark-lang/stark-roslyn | src/Compilers/Core/Portable/Symbols/Attributes/MarshalAsAttributeDecoder.cs | 17,626 | C# |
using System;
using System.Collections.Generic;
using System.Text;
using TomcatConfig.model;
using System.Xml;
namespace TomcatConfig
{
public class ContextHelper
{
public static Context parse(XmlDocument xdt)
{
if (xdt.GetElementsByTagName("Context").Count > 0)
{
XmlNode xmlContext = xdt.GetElementsByTagName("Context")[0];
Context context = new Context();
if (xmlContext.Attributes["docBase"] != null)
{
context.docBase = xmlContext.Attributes["docBase"].Value;
context.path = xmlContext.Attributes["path"].Value;
return context;
}
}
return null;
}
}
}
| 27.928571 | 77 | 0.544757 | [
"MIT"
] | fishman1986/autostarter | TomcatConfig/ContextHelper.cs | 784 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using System.Windows.Forms;
namespace GraphiEditor
{
public class Line
{
public Point Start { get; set; }
public Point End { get; set; }
/// <summary>
/// Constructs a line by 2 given points
/// </summary>
/// <param name="beginning"></param>
/// <param name="end"></param>
public Line(Point beginning, Point end)
{
this.Start = beginning;
this.End = end;
}
/// <summary>
/// Draw line on picture box
/// </summary>
/// <param name="e"></param>
public void Draw(PaintEventArgs e)
{
e.Graphics.DrawLine(new Pen(Color.Cyan, 2), Start, End);
}
/// <summary>
/// get distatnce between two coordinates
/// </summary>
/// <param name="first"></param>
/// <param name="second"></param>
/// <returns></returns>
public double Distance(Point first, Point second)
{
return Math.Sqrt((first.X - second.X)* (first.X - second.X) + (first.Y - second.Y)*(first.Y - second.Y));
}
}
}
| 26.625 | 117 | 0.534429 | [
"Apache-2.0"
] | Vinogradov-Mikhail/semestr3 | GraphiEditor/GraphiEditor/Line.cs | 1,280 | C# |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System.Linq;
using Microsoft.ApplicationInsights;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Bot.Builder;
using Microsoft.Bot.Builder.ApplicationInsights;
using Microsoft.Bot.Builder.Azure;
using Microsoft.Bot.Builder.BotFramework;
using Microsoft.Bot.Builder.Integration.ApplicationInsights.Core;
using Microsoft.Bot.Builder.Integration.AspNet.Core;
using Microsoft.Bot.Builder.Skills;
using Microsoft.Bot.Builder.Solutions;
using Microsoft.Bot.Builder.Solutions.Responses;
using Microsoft.Bot.Builder.Solutions.TaskExtensions;
using Microsoft.Bot.Connector.Authentication;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using $safeprojectname$.Adapters;
using $safeprojectname$.Bots;
using $safeprojectname$.Dialogs;
using $safeprojectname$.Responses.Main;
using $safeprojectname$.Responses.Sample;
using $safeprojectname$.Responses.Shared;
using $safeprojectname$.Services;
namespace $safeprojectname$
{
public class Startup
{
public Startup(IHostingEnvironment env, ILoggerFactory loggerFactory)
{
var builder = new ConfigurationBuilder()
.SetBasePath(env.ContentRootPath)
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
.AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true)
.AddJsonFile("cognitivemodels.json", optional: true)
.AddJsonFile($"cognitivemodels.{env.EnvironmentName}.json", optional: true)
.AddJsonFile("skills.json", optional: true)
.AddJsonFile($"skills.{env.EnvironmentName}.json", optional: true)
.AddEnvironmentVariables();
Configuration = builder.Build();
}
public IConfiguration Configuration { get; }
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
var provider = services.BuildServiceProvider();
// Load settings
var settings = new BotSettings();
Configuration.Bind(settings);
services.AddSingleton(settings);
services.AddSingleton<BotSettingsBase>(settings);
// Configure credentials
services.AddSingleton<ICredentialProvider, ConfigurationCredentialProvider>();
services.AddSingleton(new MicrosoftAppCredentials(settings.MicrosoftAppId, settings.MicrosoftAppPassword));
// Configure telemetry
services.AddApplicationInsightsTelemetry();
var telemetryClient = new BotTelemetryClient(new TelemetryClient());
services.AddSingleton<IBotTelemetryClient>(telemetryClient);
services.AddBotApplicationInsights(telemetryClient);
// Configure bot services
services.AddSingleton<BotServices>();
// Configure storage
services.AddSingleton<IStorage>(new CosmosDbStorage(settings.CosmosDb));
services.AddSingleton<UserState>();
services.AddSingleton<ConversationState>();
services.AddSingleton(sp =>
{
var userState = sp.GetService<UserState>();
var conversationState = sp.GetService<ConversationState>();
return new BotStateSet(userState, conversationState);
});
// Configure proactive
services.AddSingleton<IBackgroundTaskQueue, BackgroundTaskQueue>();
services.AddHostedService<QueuedHostedService>();
// Configure responses
services.AddSingleton(sp => new ResponseManager(
settings.CognitiveModels.Select(l => l.Key).ToArray(),
new MainResponses(),
new SharedResponses(),
new SampleResponses()));
// Register dialogs
services.AddTransient<SampleDialog>();
services.AddTransient<MainDialog>();
// Configure adapters
services.AddTransient<IBotFrameworkHttpAdapter, DefaultAdapter>();
services.AddTransient<SkillWebSocketBotAdapter, CustomSkillAdapter>();
services.AddTransient<SkillWebSocketAdapter>();
// Configure bot
services.AddTransient<IBot, DialogBot<MainDialog>>();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
app.UseBotApplicationInsights()
.UseDefaultFiles()
.UseStaticFiles()
.UseWebSockets()
.UseMvc();
}
}
} | 40.523438 | 119 | 0.667438 | [
"MIT"
] | enzocanoo/botframework-solutions | templates/Skill-Template/csharp/Template/Skill/Startup.cs | 5,189 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ZSpitz.Util {
public static class ObjectExtensions {
public static string Formatted(this object o, string format) => string.Format(format, o);
public static string Formatted(this IEnumerable<object> objects, string format) => string.Format(format, objects.ToArray()); // we need ToArray to use the params overload
}
}
| 36.666667 | 178 | 0.738636 | [
"MIT"
] | zspitz/ZSpitz.Util | ZSpitz.Util/Extensions/Object.cs | 442 | C# |
/////////////////////////////////////////////////////////////////////////////////
//
// vp_Gameplay.cs
// © Opsive. All Rights Reserved.
// https://twitter.com/Opsive
// http://www.opsive.com
//
// description: a place for globally accessible info on the game session, such
// as whether we're in singleplayer or multiplayer mode. this can
// be inherited to provide more info on the game: for example: custom
// game modes
//
// TIP: for global quick-access to the local player, see 'vp_Local'
//
/////////////////////////////////////////////////////////////////////////////////
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
#if UNITY_5_4_OR_NEWER
using UnityEngine.SceneManagement;
#endif
public class vp_Gameplay
{
public static string Version = "0.0.0";
public static string PlayerName = "Player";
public static bool IsMultiplayer = false;
protected static bool m_IsMaster = true;
public static string WeaponName = ""; // COCOLOCO ADD
/// <summary>
/// this property can be set by multiplayer scripts to assign master status
/// to the local player. in singleplayer this is forced to true
/// </summary>
public static bool IsMaster
{
get
{
if (!IsMultiplayer)
return true;
return m_IsMaster;
}
set
{
if (!IsMultiplayer)
return;
m_IsMaster = value;
}
}
/// <summary>
/// pauses or unpauses the game by means of setting timescale to zero. will
/// backup the current timescale for when the game is unpaused.
/// NOTE: will not work in multiplayer
/// </summary>
public static bool IsPaused
{
get { return vp_TimeUtility.Paused; }
set { vp_TimeUtility.Paused = (vp_Gameplay.IsMultiplayer ? false : value); }
}
// this is set by vp_VRCameraManager in OnEnable and OnDisable
public static bool IsVR = false;
// --- the below properties renamed for consistency ---
[System.Obsolete("Please use the 'IsMaster' property instead.")]
public static bool isMaster
{
get { return IsMaster; }
set { IsMaster = value; }
}
[System.Obsolete("Please use the 'IsMultiplayer' property instead.")]
public static bool isMultiplayer
{
get { return IsMultiplayer; }
set { IsMultiplayer = value; }
}
/// <summary>
/// returns the build index of the currently loaded level (Unity version agnostic)
/// </summary>
public static int CurrentLevel
{
get
{
#if UNITY_5_4_OR_NEWER
return SceneManager.GetActiveScene().buildIndex;
#else
return Application.loadedLevel;
#endif
}
}
/// <summary>
/// returns the name of the currently loaded level (Unity version agnostic)
/// </summary>
public static string CurrentLevelName
{
get
{
#if UNITY_5_4_OR_NEWER
return SceneManager.GetActiveScene().name;
#else
return Application.loadedLevelName;
#endif
}
}
/// <summary>
/// quits the game in the appropriate way, depending on whether we're running
/// in the editor, in a standalone build or a webplayer (these are the only
/// platforms supported by the 'Quit' method at present)
/// </summary>
public static void Quit(string webplayerQuitURL = "http://google.com")
{
#if UNITY_EDITOR
vp_GlobalEvent.Send("EditorApplicationQuit");
#elif UNITY_STANDALONE
Application.Quit();
#elif UNITY_WEBPLAYER
Application.OpenURL(webplayerQuitURL);
#endif
// NOTES:
// 1) web player is not supported by Unity 5.4+
// 2) on iOS, an app should only be terminated by the user
// 3) at time of writing OpenURL does not work on WebGL
}
} | 23.789116 | 83 | 0.673434 | [
"Apache-2.0"
] | dhruvshah1214/cocoloco-io | Assets/UFPS/Base/Scripts/Gameplay/vp_Gameplay.cs | 3,500 | C# |
/*
* Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the managedblockchain-2018-09-24.normal.json service model.
*/
using System;
using Amazon.Runtime;
using Amazon.Util.Internal;
namespace Amazon.ManagedBlockchain
{
/// <summary>
/// Configuration for accessing Amazon ManagedBlockchain service
/// </summary>
public partial class AmazonManagedBlockchainConfig : ClientConfig
{
private static readonly string UserAgentString =
InternalSDKUtils.BuildUserAgentString("3.3.100.79");
private string _userAgent = UserAgentString;
/// <summary>
/// Default constructor
/// </summary>
public AmazonManagedBlockchainConfig()
{
this.AuthenticationServiceName = "managedblockchain";
}
/// <summary>
/// The constant used to lookup in the region hash the endpoint.
/// </summary>
public override string RegionEndpointServiceName
{
get
{
return "managedblockchain";
}
}
/// <summary>
/// Gets the ServiceVersion property.
/// </summary>
public override string ServiceVersion
{
get
{
return "2018-09-24";
}
}
/// <summary>
/// Gets the value of UserAgent property.
/// </summary>
public override string UserAgent
{
get
{
return _userAgent;
}
}
}
} | 26.9125 | 115 | 0.599164 | [
"Apache-2.0"
] | tap4fun/aws-sdk-net | sdk/src/Services/ManagedBlockchain/Generated/AmazonManagedBlockchainConfig.cs | 2,153 | C# |
using System.Linq;
using System.Web.Mvc;
using AssemblyLine;
using Microsoft.Practices.Unity.Mvc;
[assembly: WebActivatorEx.PreApplicationStartMethod(typeof(UnityWebActivator), "Start")]
[assembly: WebActivatorEx.ApplicationShutdownMethod(typeof(UnityWebActivator), "Shutdown")]
namespace AssemblyLine
{
/// <summary>Provides the bootstrapping for integrating Unity with ASP.NET MVC.</summary>
public static class UnityWebActivator
{
/// <summary>Integrates Unity when the application starts.</summary>
public static void Start()
{
var container = IoCConfig.GetConfiguredContainer();
FilterProviders.Providers.Remove(FilterProviders.Providers.OfType<FilterAttributeFilterProvider>().First());
FilterProviders.Providers.Add(new UnityFilterAttributeFilterProvider(container));
DependencyResolver.SetResolver(new UnityDependencyResolver(container));
// PerRequestLifetimeManager
Microsoft.Web.Infrastructure.DynamicModuleHelper.DynamicModuleUtility.RegisterModule(typeof(UnityPerRequestHttpModule));
}
/// <summary>Disposes the Unity container when the application is shut down.</summary>
public static void Shutdown()
{
var container = IoCConfig.GetConfiguredContainer();
container.Dispose();
}
}
} | 39.4 | 132 | 0.718637 | [
"MIT"
] | alexey-ernest/assembly-line | AssemblyLine/App_Start/UnityMvcActivator.cs | 1,379 | C# |
/* Yet Another Forum.NET
* Copyright (C) 2003-2005 Bjørnar Henden
* Copyright (C) 2006-2013 Jaben Cargman
* Copyright (C) 2014 Ingo Herbote
* http://www.yetanotherforum.net/
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace YAF.Core
{
#region Using
using System;
using YAF.Types;
using YAF.Types.Extensions;
using YAF.Utils;
#endregion
/// <summary>
/// The moderate forum page.
/// </summary>
public class ModerateForumPage : ForumPage
{
#region Constructors and Destructors
/// <summary>
/// Initializes a new instance of the <see cref="ModerateForumPage"/> class.
/// </summary>
public ModerateForumPage()
: this(null)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="ModerateForumPage"/> class.
/// </summary>
/// <param name="transPage">
/// The trans page.
/// </param>
public ModerateForumPage([CanBeNull] string transPage)
: base(transPage)
{
}
#endregion
#region Properties
/// <summary>
/// Gets PageName.
/// </summary>
public override string PageName
{
get
{
return "moderate_{0}".FormatWith(base.PageName);
}
}
#endregion
#region Methods
/// <summary>
/// The page_ load.
/// </summary>
/// <param name="sender">
/// The sender.
/// </param>
/// <param name="e">
/// The e.
/// </param>
protected void Page_Load([NotNull] object sender, [NotNull] EventArgs e)
{
// Only moderators are allowed here
if (!this.PageContext.ForumModeratorAccess || !this.PageContext.IsModeratorInAnyForum)
{
YafBuildLink.AccessDenied();
}
}
#endregion
}
} | 25.539216 | 93 | 0.618426 | [
"Apache-2.0"
] | azarbara/YAFNET | yafsrc/YAF.Core/BasePages/ModerateForumPage.cs | 2,505 | C# |
using Mono.Cecil;
using Mono.Cecil.Cil;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace Dopple.InstructionNodes
{
[DataContract]
internal class VirtualCallInstructionNode : NonInlineableCallInstructionNode
{
public bool ResolveAttempted { get; set; } = false;
public int ObjectOrAddressArgIndex
{
get
{
return 0;
}
}
public bool MethodIsUnresolveable {get;set;}
public PseudoSplitNode PseudoSplitNode { get; internal set; }
public Dictionary<InstructionNode, bool> DataOriginNodeIsResolveable = new Dictionary<InstructionNode,bool>();
internal VirtualCallInstructionNode(Instruction instruction, MethodDefinition method) : base(instruction, method)
{
}
}
}
| 27.176471 | 121 | 0.681818 | [
"MIT"
] | simcoster/Dopple | GraphBuilder/InstructionNodes/VirtualCallInstructionNode.cs | 926 | C# |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
namespace SaaSSampleWebApp.Models
{
using System;
public class Subscription
{
public Guid Id { get; set; }
public Guid TenantId { get; set; }
public string LicenceType { get; set; }
}
}
| 18 | 47 | 0.627451 | [
"MIT"
] | BobGerman/office-add-in-saas-monetization-sample | MonetizationCodeSample/SaaSSampleWebApp/Models/Subscription.cs | 308 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
namespace Soukoku.Owin.Files
{
/// <summary>
/// Contains constant values used by webdav.
/// </summary>
public static class DavConsts
{
/// <summary>
/// The namespace for all built-in webdav xml names.
/// </summary>
public const string XmlNamespace = "DAV:";
/// <summary>
/// Contains the http header names used by webdav.
/// </summary>
internal static class Headers
{
// spec section 10
public const string Dav = "DAV";
public const string Depth = "Depth";
public const string Destination = "Destination";
public const string If = "If";
public const string LockToken = "Lock-Token";
public const string Overwrite = "Overwrite";
public const string Timeout = "Timeout";
}
/// <summary>
/// Contains the xml element names used by webdav
/// </summary>
/// public class
internal static class ElementNames
{
// spec section 14
public const string ActiveLock = "activelock";
public const string AllProp = "allprop";
public const string Collection = "collection";
public const string Depth = "depth";
public const string Error = "error";
public const string Exclusive = "exclusive";
public const string Href = "href";
public const string Include = "include";
public const string Location = "location";
public const string LockEntry = "lockentry";
public const string LockInfo = "lockinfo";
public const string LockRoot = "lockroot";
public const string LockScope = "lockscope";
public const string LockToken = "locktoken";
public const string LockType = "locktype";
public const string MultiStatus = "multistatus";
public const string Owner = "owner";
public const string Prop = "prop";
public const string PropertyUpdate = "propertyupdate";
public const string PropFind = "propfind";
public const string PropName = "propname";
public const string PropStat = "propstat";
public const string Remove = "remove";
public const string Response = "response";
public const string ResponseDescription = "responsedescription";
public const string Set = "set";
public const string Shared = "shared";
public const string Status = "status";
public const string Timeout = "timeout";
public const string Write = "write";
}
/// <summary>
/// Contains property names defined by webdav.
/// </summary>
public static class PropertyNames
{
// spec section 15
public const string CreationDate = "creationdate";
public const string DisplayName = "displayname";
public const string GetContentLanguage = "getcontentlanguage";
public const string GetContentLength = "getcontentlength";
public const string GetContentType = "getcontenttype";
public const string GetETag = "getetag";
public const string GetLastModified = "getlastmodified";
public const string LockDiscovery = "lockdiscovery";
public const string ResourceType = "resourcetype";
public const string SupportedLock = "supportedlock";
}
/// <summary>
/// Http status codes used by webdav.
/// </summary>
public enum StatusCode
{
/// <summary>
/// Special indicator (not a real http code) for request not handled by webdav.
/// </summary>
NotHandled = 0,
// spec section 11
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Multi", Justification = "Useless word block from ancient times.")]
MultiStatus = 207,
UnprocessableEntity = 422,
Locked = 423,
FailedDependency = 424,
InsufficientStorage = 507,
// standard codes
OK = HttpStatusCode.OK,
Created = HttpStatusCode.Created,
NoContent = HttpStatusCode.NoContent,
BadRequest = HttpStatusCode.BadRequest,
NotFound = HttpStatusCode.NotFound,
PreconditionFailed = HttpStatusCode.PreconditionFailed,
Conflict = HttpStatusCode.Conflict,
UnsupportedMediaType = HttpStatusCode.UnsupportedMediaType,
Forbidden = HttpStatusCode.Forbidden,
MethodNotAllowed = HttpStatusCode.MethodNotAllowed
}
}
}
| 38.526718 | 206 | 0.592431 | [
"MIT"
] | soukoku/Soukoku.Owin.Files | src/Soukoku.Owin.Files.Webdav/DavConsts.cs | 5,049 | C# |
using System;
using System.Collections.Generic;
using Microsoft.VisualStudio;
using Microsoft.VisualStudio.Shell;
using Microsoft.VisualStudio.Shell.Interop;
using Microsoft.VisualStudio.TextManager.Interop;
namespace ProjectTaskRunner.Helpers
{
public static class TextViewUtil
{
public static IVsTextView FindTextViewFor(string filePath)
{
IVsWindowFrame frame = FindWindowFrame(filePath);
if (frame != null)
{
IVsTextView textView;
if (GetTextViewFromFrame(frame, out textView))
{
return textView;
}
}
return null;
}
private static IEnumerable<IVsWindowFrame> EnumerateDocumentWindowFrames()
{
var shell = Package.GetGlobalService(typeof(SVsUIShell)) as IVsUIShell;
if (shell != null)
{
IEnumWindowFrames framesEnum;
int hr = shell.GetDocumentWindowEnum(out framesEnum);
if (hr == VSConstants.S_OK && framesEnum != null)
{
var frames = new IVsWindowFrame[1];
uint fetched;
while (framesEnum.Next(1, frames, out fetched) == VSConstants.S_OK && fetched == 1)
{
yield return frames[0];
}
}
}
}
private static IVsWindowFrame FindWindowFrame(string filePath)
{
foreach (IVsWindowFrame currentFrame in EnumerateDocumentWindowFrames())
{
if (IsFrameForFilePath(currentFrame, filePath))
{
return currentFrame;
}
}
return null;
}
private static bool GetPhysicalPathFromFrame(IVsWindowFrame frame, out string frameFilePath)
{
object propertyValue;
int hr = frame.GetProperty((int)__VSFPROPID.VSFPROPID_pszMkDocument, out propertyValue);
if (hr == VSConstants.S_OK && propertyValue != null)
{
frameFilePath = propertyValue.ToString();
return true;
}
frameFilePath = null;
return false;
}
private static bool GetTextViewFromFrame(IVsWindowFrame frame, out IVsTextView textView)
{
textView = VsShellUtilities.GetTextView(frame);
return textView != null;
}
private static bool IsFrameForFilePath(IVsWindowFrame frame, string filePath)
{
string frameFilePath;
if (GetPhysicalPathFromFrame(frame, out frameFilePath))
{
return String.Equals(filePath, frameFilePath, StringComparison.OrdinalIgnoreCase);
}
return false;
}
}
}
| 29.434343 | 103 | 0.551476 | [
"Apache-2.0"
] | Thieum/CommandTaskRunner | src/Helpers/TaskRunner/TextViewUtil.cs | 2,916 | C# |
using Tomlet.Attributes;
namespace Tomlet.Tests.TestModelClasses
{
public record ComplexTestRecordWithAttributeMapping
{
[TomlProperty("string")]
public string MyString { get; init; }
public WidgetForThisComplexTestRecordWithAttributeMapping MyWidget { get; init; }
}
public record WidgetForThisComplexTestRecordWithAttributeMapping
{
[TomlProperty("my_int")]
public int MyInt { get; init; }
}
}
| 25.722222 | 89 | 0.697624 | [
"MIT"
] | ChadKeating/Tomlet | Tomlet.Tests/TestModelClasses/ComplexTestRecordWithAttributeMapping.cs | 465 | C# |
namespace JWT
{
/// <summary>
/// Represents a base64 encoder/decoder.
/// </summary>
public interface IBase64UrlEncoder
{
/// <summary>
/// Encodes the byte array to a base64 string.
/// </summary>
string Encode(byte[] input);
/// <summary>
/// Decodes the base64 string to a byte array.
/// </summary>
byte[] Decode(string input);
}
} | 24.555556 | 55 | 0.513575 | [
"CC0-1.0"
] | Emiliano978/jwt | src/JWT/IBase64UrlEncoder.cs | 442 | C# |
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Formats.Tga
{
/// <summary>
/// Configuration options for use during tga encoding.
/// </summary>
internal interface ITgaEncoderOptions
{
/// <summary>
/// Gets the number of bits per pixel.
/// </summary>
TgaBitsPerPixel? BitsPerPixel { get; }
/// <summary>
/// Gets a value indicating whether run length compression should be used.
/// </summary>
TgaCompression Compression { get; }
}
}
| 27.590909 | 82 | 0.616145 | [
"Apache-2.0"
] | Sheyne/ImageSharp | src/ImageSharp/Formats/Tga/ITgaEncoderOptions.cs | 607 | C# |
namespace NutritionRecommendationEngine.Migrations
{
using OfficeOpenXml;
using System.Data.Entity.Migrations;
using System.Linq;
internal sealed class Configuration : DbMigrationsConfiguration<AmAmDbContext>
{
private static readonly int CalciumColumnNum = 11;
private static readonly int CaloriesColumnNum = 4;
private static readonly int CarbsColumnNum = 8;
private static readonly int IronColumnNum = 12;
private static readonly int LipidsColumnNum = 6;
private static readonly int ProteinsColumnNum = 5;
private static readonly int VitaminAColumnNum = 33;
private static readonly int VitaminB12ColumnNum = 32;
private static readonly int VitaminCColumnNum = 21;
private static readonly int ZincColumnNum = 17;
public Configuration()
{
AutomaticMigrationsEnabled = true;
ContextKey = "NutritionRecommendationEngine.AmAmDbContext";
}
protected override void Seed(AmAmDbContext context)
{
//using (ExcelPackage xlPackage = new ExcelPackage(new FileInfo(@"D:\projects\AmAm\AmAm\NutritionRecommendationEngine\NutritionData.xlsx")))
//{
// var dataSheet = xlPackage.Workbook.Worksheets.First(); //select sheet here
// var totalRows = dataSheet.Dimension.End.Row;
// var totalColumns = dataSheet.Dimension.End.Column;
// var nutrientsRow = dataSheet.Cells[1, 1, 1, totalColumns].Select(c => c.Value == null ? string.Empty : c.Value.ToString()).ToList();
// using (var db = new AmAmDbContext())
// {
// for (int row = 2; row <= totalRows; row++) //selet starting row here
// {
// var food = new Food()
// {
// Id = int.Parse(dataSheet.GetCell(row, 1)),
// Name = dataSheet.GetCell(row, 2),
// Calcium = dataSheet.GetCellAsDouble(row, CalciumColumnNum),
// Calories = dataSheet.GetCellAsDouble(row, CaloriesColumnNum),
// Carbs = dataSheet.GetCellAsDouble(row, CarbsColumnNum),
// Iron = dataSheet.GetCellAsDouble(row, IronColumnNum),
// Lipids = dataSheet.GetCellAsDouble(row, LipidsColumnNum),
// Proteins = dataSheet.GetCellAsDouble(row, ProteinsColumnNum),
// VitaminA = dataSheet.GetCellAsDouble(row, VitaminAColumnNum),
// VitaminB12 = dataSheet.GetCellAsDouble(row, VitaminB12ColumnNum),
// VitaminC = dataSheet.GetCellAsDouble(row, VitaminCColumnNum),
// Zinc = dataSheet.GetCellAsDouble(row, ZincColumnNum),
// };
// db.Foods.Add(food);
// }
// db.SaveChanges();
// }
//}
}
}
public static class Ext
{
public static string GetCell(this ExcelWorksheet worksheet, int row, int col)
{
return worksheet.Cells[row, col, row, col].First().Value?.ToString();
}
public static double GetCellAsDouble(this ExcelWorksheet worksheet, int row, int col)
{
return double.Parse(worksheet.GetCell(row, col) ?? "0");
}
}
}
| 45.597403 | 152 | 0.567929 | [
"MIT"
] | tsvgeorgieva/AmAm | AmAm/NutritionRecommendationEngine/Data/Migrations/Configuration.cs | 3,511 | C# |
using Generated.Variables;
using NUnit.Framework;
using UnityEngine;
namespace Fasteraune.SO.Instances.Variables.Tests
{
public class ExpressionTests
{
private void Clamped_Reference_Clamps(FloatVariableReference first, FloatVariableReference second,
FloatVariableReferenceClamped clamped)
{
first.Value = 0;
second.Value = 20;
clamped.Min = first;
clamped.Max = second;
Assert.AreEqual(first.Value, clamped.Value);
clamped.Value = 50;
Assert.AreEqual(second.Value, clamped.Value);
}
[Test]
public void Constant_Reference_Clamps()
{
var clamped = new FloatVariableReferenceClamped();
var first = new FloatVariableReference();
var second = new FloatVariableReference();
first.Type = ReferenceType.Constant;
second.Type = ReferenceType.Constant;
Clamped_Reference_Clamps(first, second, clamped);
}
[Test]
public void Shared_Reference_Clamps()
{
var clamped = new FloatVariableReferenceClamped();
var firstVariable = ScriptableObject.CreateInstance(typeof(FloatVariable)) as FloatVariable;
var secondVariable = ScriptableObject.CreateInstance(typeof(FloatVariable)) as FloatVariable;
var first = new FloatVariableReference();
var second = new FloatVariableReference();
first.Variable = firstVariable;
second.Variable = secondVariable;
first.Type = ReferenceType.Shared;
second.Type = ReferenceType.Shared;
Clamped_Reference_Clamps(first, second, clamped);
}
[Test]
public void Instanced_Reference_Clamps()
{
var clamped = new FloatVariableReferenceClamped();
var firstVariable = ScriptableObject.CreateInstance(typeof(FloatVariable)) as FloatVariable;
var secondVariable = ScriptableObject.CreateInstance(typeof(FloatVariable)) as FloatVariable;
var first = new FloatVariableReference();
var second = new FloatVariableReference();
var gameObject = new GameObject();
var instancedVariableOwner = gameObject.AddComponent<InstanceOwner>();
first.Connection = instancedVariableOwner;
second.Connection = instancedVariableOwner;
first.Variable = firstVariable;
second.Variable = secondVariable;
first.Type = ReferenceType.Instanced;
second.Type = ReferenceType.Instanced;
Clamped_Reference_Clamps(first, second, clamped);
}
private void Assert_Instanced_Reference_Expression(float a, float b, string expression, float expected)
{
var floatReferenceExpression = new FloatVariableReferenceExpression();
var firstVariable = ScriptableObject.CreateInstance(typeof(FloatVariable)) as FloatVariable;
var secondVariable = ScriptableObject.CreateInstance(typeof(FloatVariable)) as FloatVariable;
var first = new FloatVariableReference();
var second = new FloatVariableReference();
var gameObject = new GameObject();
var instancedVariableOwner = gameObject.AddComponent<InstanceOwner>();
first.Connection = instancedVariableOwner;
second.Connection = instancedVariableOwner;
first.Variable = firstVariable;
second.Variable = secondVariable;
first.Type = ReferenceType.Instanced;
second.Type = ReferenceType.Instanced;
first.Value = a;
second.Value = b;
floatReferenceExpression.Variables = new[]
{
new FloatVariableReferenceExpression.ExpressionVariables()
{
Name = "a",
Reference = first
},
new FloatVariableReferenceExpression.ExpressionVariables()
{
Name = "b",
Reference = second
}
};
floatReferenceExpression.Expression = expression;
Assert.AreEqual(expected, floatReferenceExpression.Value);
}
[Test]
public void Instanced_Reference_Expression_Add()
{
Assert_Instanced_Reference_Expression(10, 2, "a + b", 12);
}
[Test]
public void Instanced_Reference_Expression_Subtract()
{
Assert_Instanced_Reference_Expression(10, 2, "a - b", 8);
}
[Test]
public void Instanced_Reference_Expression_Multiply()
{
Assert_Instanced_Reference_Expression(10, 2, "a * b", 20);
}
[Test]
public void Instanced_Reference_Expression_Divide()
{
Assert_Instanced_Reference_Expression(10, 2, "a / b", 5);
}
[Test]
public void Instanced_Reference_Expression_Pow()
{
Assert_Instanced_Reference_Expression(10, 2, "a ^ b", 100);
}
[Test]
public void Instanced_Reference_Expression_Complex()
{
Assert_Instanced_Reference_Expression(10, 2, "((a + b) / 2) - b", 4);
}
}
}
| 33.388889 | 111 | 0.603439 | [
"MIT"
] | polartron/ScriptableObject-Instanced-Variables | Tests/Editor/ExpressionTests.cs | 5,411 | C# |
using System;
using System.Runtime.InteropServices;
using TellCore.Utils;
namespace TellCore
{
internal static class NativeMethods
{
[DllImport("TelldusCore.dll")]
internal static extern int tdGetNumberOfDevices();
[DllImport("TelldusCore.dll")]
internal static extern int tdGetDeviceId(int value);
[DllImport("TelldusCore.dll")]
[return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie = "out", MarshalTypeRef = typeof(TelldusUtf8Marshaler))]
internal static extern string tdGetName(int deviceId);
[DllImport("TelldusCore.dll")]
[return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie = "out", MarshalTypeRef = typeof(TelldusUtf8Marshaler))]
internal static extern string tdGetProtocol(int deviceId);
[DllImport("TelldusCore.dll")]
[return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie = "out", MarshalTypeRef = typeof(TelldusUtf8Marshaler))]
internal static extern string tdGetModel(int deviceId);
[DllImport("TelldusCore.dll")]
[return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie = "out", MarshalTypeRef = typeof(TelldusUtf8Marshaler))]
internal static extern string tdGetDeviceParameter(
int deviceId,
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie = "in", MarshalTypeRef = typeof(TelldusUtf8Marshaler))] string name,
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie = "in", MarshalTypeRef = typeof(TelldusUtf8Marshaler))] string defaultValue);
[DllImport("TelldusCore.dll")]
internal static extern bool tdSetName(
int deviceId,
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie = "in", MarshalTypeRef = typeof(TelldusUtf8Marshaler))] string name);
[DllImport("TelldusCore.dll")]
internal static extern bool tdSetProtocol(
int deviceId,
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie = "in", MarshalTypeRef = typeof(TelldusUtf8Marshaler))] string protocol);
[DllImport("TelldusCore.dll")]
internal static extern bool tdSetModel(
int deviceId,
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie = "in", MarshalTypeRef = typeof(TelldusUtf8Marshaler))] string model);
[DllImport("TelldusCore.dll")]
internal static extern bool tdSetDeviceParameter(
int deviceId,
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie = "in", MarshalTypeRef = typeof(TelldusUtf8Marshaler))] string name,
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie = "in", MarshalTypeRef = typeof(TelldusUtf8Marshaler))] string value);
[DllImport("TelldusCore.dll")]
internal static extern int tdAddDevice();
[DllImport("TelldusCore.dll")]
internal static extern bool tdRemoveDevice(int deviceId);
[DllImport("TelldusCore.dll")]
internal static extern DeviceMethod tdMethods(int deviceId, DeviceMethod methodsSupported);
[DllImport("TelldusCore.dll")]
internal static extern TellstickResult tdTurnOn(int deviceId);
[DllImport("TelldusCore.dll")]
internal static extern TellstickResult tdTurnOff(int deviceId);
[DllImport("TelldusCore.dll")]
internal static extern TellstickResult tdBell(int deviceId);
[DllImport("TelldusCore.dll")]
internal static extern TellstickResult tdDim(int deviceId, char level);
[DllImport("TelldusCore.dll")]
internal static extern TellstickResult tdExecute(int deviceId);
[DllImport("TelldusCore.dll")]
internal static extern TellstickResult tdUp(int deviceId);
[DllImport("TelldusCore.dll")]
internal static extern TellstickResult tdDown(int deviceId);
[DllImport("TelldusCore.dll")]
internal static extern TellstickResult tdStop(int deviceId);
[DllImport("TelldusCore.dll")]
[return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie = "out", MarshalTypeRef = typeof(TelldusUtf8Marshaler))]
internal static extern string tdGetErrorString(TellstickResult errorNo);
[DllImport("TelldusCore.dll")]
internal static extern void tdClose();
[DllImport("TelldusCore.dll")]
internal static extern void tdInit();
[DllImport("TelldusCore.dll")]
internal static extern DeviceMethod tdLastSentCommand(int deviceId, DeviceMethod methods);
[DllImport("TelldusCore.dll")]
internal static extern DeviceType tdGetDeviceType(int deviceId);
[DllImport("TelldusCore.dll")]
internal static extern TellstickResult tdSendRawCommand(
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie = "in", MarshalTypeRef = typeof(TelldusUtf8Marshaler))]string command,
int reserved);
[DllImport("TelldusCore.dll")]
internal static extern int tdLearn(int deviceId);
[DllImport("TelldusCore.dll")]
[return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie = "out", MarshalTypeRef = typeof(TelldusUtf8Marshaler))]
internal static extern string tdLastSentValue(int deviceId);
[DllImport("TelldusCore.dll")]
internal static extern void tdReleaseString(IntPtr value);
[DllImport("TelldusCore.dll")]
internal static extern int tdUnregisterCallback(int eventId);
[DllImport("TelldusCore.dll")]
internal static extern int tdRegisterDeviceEvent(EventFunctionDelegate deviceEventFunction, IntPtr context);
[DllImport("TelldusCore.dll")]
internal static extern int tdRegisterRawDeviceEvent(RawListeningDelegate rawListeningFunction, IntPtr context);
[DllImport("TelldusCore.dll")]
internal static extern int tdRegisterDeviceChangeEvent(DeviceChangeEventFunctionDelegate deviceChangeEventFunction, IntPtr context);
[DllImport("TelldusCore.dll")]
public static extern TellstickResult tdSensor(
IntPtr protocol,
int protocolLength,
IntPtr model,
int modelLength,
ref int id,
ref int dataTypes);
[DllImport("TelldusCore.dll")]
public static extern int tdSensorValue(
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie = "in", MarshalTypeRef = typeof(TelldusUtf8Marshaler))]string protocol,
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie = "in", MarshalTypeRef = typeof(TelldusUtf8Marshaler))]string model,
int id,
int dataType,
IntPtr value,
int valueLength,
ref int timestamp);
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
internal delegate void EventFunctionDelegate(
int deviceId,
int method,
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie = "out", MarshalTypeRef = typeof(TelldusUtf8Marshaler))] string data,
int callbackId,
IntPtr context);
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
internal delegate void DeviceChangeEventFunctionDelegate(int deviceId, int changeEvent, int changeType, int callbackId, IntPtr context);
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
internal delegate void RawListeningDelegate(
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie = "out", MarshalTypeRef = typeof(TelldusUtf8Marshaler))] string data,
int controllerId,
int callbackId,
IntPtr context);
}
} | 45.708333 | 145 | 0.69384 | [
"MIT"
] | larsolae/TellCore | TellCore/NativeMethods.cs | 7,681 | C# |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Rational.cs" company="James Jackson-South">
// Copyright (c) James Jackson-South.
// Licensed under the Apache License, Version 2.0.
// </copyright>
// <summary>
// Represents a rational number. Any number that can be expressed as the quotient or fraction p/q of two
// numbers, p and q, with the denominator q not equal to zero.
// <remarks>
// Adapted from <see href="https://github.com/mckamey/exif-utils.net" /> by Stephen McKamey.
// </remarks>
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace ImageProcessor.Imaging.MetaData
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Reflection;
/// <summary>
/// Represents a rational number. Any number that can be expressed as the quotient or fraction p/q of two
/// numbers, p and q, with the denominator q not equal to zero.
/// <remarks>
/// Adapted from <see href="https://github.com/mckamey/exif-utils.net"/> by Stephen McKamey.
/// </remarks>
/// </summary>
/// <typeparam name="T">
/// The type to assign to the numerator and denominator components.
/// </typeparam>
[SuppressMessage("StyleCop.CSharp.OrderingRules", "SA1202:ElementsMustBeOrderedByAccess", Justification = "Reviewed. Suppression is OK here. Better readability.")]
[Serializable]
public readonly struct Rational<T> :
IConvertible,
IComparable,
IComparable<T>
where T : IConvertible
{
/// <summary>
/// Represents an empty instance of <see cref="Rational{T}"/>.
/// </summary>
public static readonly Rational<T> Empty = new Rational<T>();
/// <summary>
/// The delimiter.
/// </summary>
private const char Delim = '/';
/// <summary>
/// The array containing the delimiter.
/// </summary>
// ReSharper disable once StaticMemberInGenericType
private static readonly char[] DelimSet = { Delim };
/// <summary>
/// The parser delegate method.
/// </summary>
private static ParseDelegate parser;
/// <summary>
/// The try parser delegate method.
/// </summary>
private static TryParseDelegate tryParser;
/// <summary>
/// The max value.
/// </summary>
// ReSharper disable once StaticMemberInGenericType
private static decimal maxValue;
/// <summary>
/// The numerator.
/// </summary>
private readonly T numerator;
/// <summary>
/// The denominator.
/// </summary>
private readonly T denominator;
/// <summary>
/// Initializes a new instance of the <see cref="Rational{T}"/> struct.
/// </summary>
/// <param name="numerator">The numerator of the rational number.</param>
/// <param name="denominator">The denominator of the rational number.</param>
/// <remarks>
/// Reduces by default
/// </remarks>
public Rational(T numerator, T denominator)
: this(numerator, denominator, false)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="Rational{T}"/> struct.
/// </summary>
/// <param name="numerator">The numerator of the rational number.</param>
/// <param name="denominator">The denominator of the rational number.</param>
/// <param name="reduce">determines if should reduce by greatest common divisor</param>
public Rational(T numerator, T denominator, bool reduce)
{
this.numerator = numerator;
this.denominator = denominator;
if (reduce)
{
Reduce(ref this.numerator, ref this.denominator);
}
}
/// <summary>
/// The parse delegate method.
/// </summary>
/// <param name="value">The value to parse.</param>
/// <returns>
/// The <see cref="Rational{T}"/>
/// </returns>
private delegate T ParseDelegate(string value);
/// <summary>
/// The try parse delegate method.
/// </summary>
/// <param name="value">The value to parse.</param>
/// <param name="rational">The parsed result.</param>
/// <returns>
/// The <see cref="bool"/>
/// </returns>
private delegate bool TryParseDelegate(string value, out T rational);
/// <summary>
/// Gets and sets the numerator of the rational number
/// </summary>
public T Numerator => this.numerator;
/// <summary>
/// Gets and sets the denominator of the rational number
/// </summary>
public T Denominator => this.denominator;
/// <summary>
/// Gets a value indicating whether the current instance is empty.
/// </summary>
public bool IsEmpty => this.Equals(Empty);
/// <summary>
/// Gets the MaxValue
/// </summary>
private static decimal MaxValue
{
get
{
if (maxValue == default)
{
FieldInfo max = typeof(T).GetField("MaxValue", BindingFlags.Static | BindingFlags.Public);
if (max != null)
{
try
{
maxValue = Convert.ToDecimal(max.GetValue(null));
}
catch (OverflowException)
{
maxValue = decimal.MaxValue;
}
}
else
{
maxValue = int.MaxValue;
}
}
return maxValue;
}
}
/// <summary>
/// Approximate the decimal value accurate to a precision of 0.000001m
/// </summary>
/// <param name="value">decimal value to approximate</param>
/// <returns>an approximation of the value as a rational number</returns>
/// <remarks>
/// <see href="http://stackoverflow.com/questions/95727"/>
/// </remarks>
public static Rational<T> Approximate(decimal value) => Approximate(value, 0.000001m);
/// <summary>
/// Approximate the decimal value accurate to a certain precision
/// </summary>
/// <param name="value">decimal value to approximate</param>
/// <param name="epsilon">maximum precision to converge</param>
/// <returns>an approximation of the value as a rational number</returns>
/// <remarks>
/// <see href="http://stackoverflow.com/questions/95727"/>
/// </remarks>
public static Rational<T> Approximate(decimal value, decimal epsilon)
{
decimal numerator = decimal.Truncate(value);
decimal denominator = decimal.One;
decimal fraction = decimal.Divide(numerator, denominator);
decimal max = MaxValue;
while (Math.Abs(fraction - value) > epsilon && (denominator < max) && (numerator < max))
{
if (fraction < value)
{
numerator++;
}
else
{
denominator++;
decimal temp = Math.Round(decimal.Multiply(value, denominator));
if (temp > max)
{
denominator--;
break;
}
numerator = temp;
}
fraction = decimal.Divide(numerator, denominator);
}
return new Rational<T>(
(T)Convert.ChangeType(numerator, typeof(T)),
(T)Convert.ChangeType(denominator, typeof(T)));
}
/// <summary>
/// Converts the string representation of a number to its <see cref="Rational{T}"/> equivalent.
/// </summary>
/// <param name="value">The value to convert.</param>
/// <returns>
/// The <see cref="Rational{T}"/>.
/// </returns>
public static Rational<T> Parse(string value)
{
if (string.IsNullOrEmpty(value))
{
return Empty;
}
if (parser == null)
{
parser = BuildParser();
}
string[] parts = value.Split(DelimSet, 2, StringSplitOptions.RemoveEmptyEntries);
T numerator = parser(parts[0]);
T denominator = parts.Length > 1 ? parser(parts[1]) : default;
return new Rational<T>(numerator, denominator);
}
/// <summary>
/// Converts the string representation of a number to its <see cref="Rational{T}"/> equivalent.
/// A return value indicates whether the conversion succeeded or failed.
/// </summary>
/// <param name="value">The value to convert.</param>
/// <param name="rational">The converted <see cref="Rational{T}"/>.</param>
/// <returns>
/// The <see cref="Rational{T}"/>.
/// </returns>
public static bool TryParse(string value, out Rational<T> rational)
{
if (string.IsNullOrEmpty(value))
{
rational = Empty;
return false;
}
if (tryParser == null)
{
tryParser = BuildTryParser();
}
T denominator;
string[] parts = value.Split(DelimSet, 2, StringSplitOptions.RemoveEmptyEntries);
if (!tryParser(parts[0], out T numerator))
{
rational = Empty;
return false;
}
if (parts.Length > 1)
{
if (!tryParser(parts[1], out denominator))
{
rational = Empty;
return false;
}
}
else
{
denominator = default;
}
rational = new Rational<T>(numerator, denominator);
return parts.Length == 2;
}
/// <summary>
/// Builds a parser to convert objects.
/// </summary>
/// <returns>
/// The <see cref="Rational{T}"/>.
/// </returns>
/// <exception cref="InvalidOperationException">
/// Thrown when the underlying rational type does not support a parse method.
/// </exception>
/// <exception cref="TargetInvocationException">
/// Thrown when a reflection error occurs.
/// </exception>
private static ParseDelegate BuildParser()
{
MethodInfo parse = typeof(T).GetMethod(
"Parse",
BindingFlags.Public | BindingFlags.Static,
null,
new[] { typeof(string) },
null);
if (parse == null)
{
throw new InvalidOperationException("Underlying Rational type T must support Parse in order to parse Rational<T>.");
}
return value =>
{
try
{
return (T)parse.Invoke(null, new object[] { value });
}
catch (TargetInvocationException ex)
{
if (ex.InnerException != null)
{
throw ex.InnerException;
}
throw;
}
};
}
/// <summary>
/// Tries to build a parser to convert objects.
/// </summary>
/// <returns>
/// The <see cref="Rational{T}"/>.
/// </returns>
/// <exception cref="InvalidOperationException">
/// Thrown when the underlying rational type does not support a parse method.
/// </exception>
/// <exception cref="TargetInvocationException">
/// Thrown when a reflection error occurs.
/// </exception>
private static TryParseDelegate BuildTryParser()
{
// http://stackoverflow.com/questions/1933369
MethodInfo tryParse = typeof(T).GetMethod(
"TryParse",
BindingFlags.Public | BindingFlags.Static,
null,
new[] { typeof(string), typeof(T).MakeByRefType() },
null);
if (tryParse == null)
{
throw new InvalidOperationException("Underlying Rational type T must support TryParse in order to try-parse Rational<T>.");
}
return (string value, out T output) =>
{
object[] args = { value, default(T) };
try
{
bool success = (bool)tryParse.Invoke(null, args);
output = (T)args[1];
return success;
}
catch (TargetInvocationException ex)
{
if (ex.InnerException != null)
{
throw ex.InnerException;
}
throw;
}
};
}
/// <summary>
/// Finds the greatest common divisor and reduces the fraction by this amount.
/// </summary>
/// <returns>the reduced rational</returns>
public Rational<T> Reduce()
{
T n = this.numerator;
T d = this.denominator;
Reduce(ref n, ref d);
return new Rational<T>(n, d);
}
/// <summary>
/// Finds the greatest common divisor and reduces the fraction by this amount.
/// </summary>
/// <param name="numerator">The numerator.</param>
/// <param name="denominator">The denominator.</param>
private static void Reduce(ref T numerator, ref T denominator)
{
bool reduced = false;
decimal n = Convert.ToDecimal(numerator);
decimal d = Convert.ToDecimal(denominator);
// greatest common divisor
decimal gcd = Gcd(n, d);
if (gcd != decimal.One && gcd != 0m)
{
reduced = true;
n /= gcd;
d /= gcd;
}
// cancel out signs
if (d < 0m)
{
reduced = true;
n = -n;
d = -d;
}
if (reduced)
{
numerator = (T)Convert.ChangeType(n, typeof(T));
denominator = (T)Convert.ChangeType(d, typeof(T));
}
}
/// <summary>
/// The least common multiple of the denominators of a set of fractions
/// </summary>
/// <param name="a">The first decimal.</param>
/// <param name="b">The second decimal.</param>
/// <returns>The lowest common denominator.</returns>
private static decimal Lcd(decimal a, decimal b)
{
if (a == 0m && b == 0m)
{
return 0m;
}
return (a * b) / Gcd(a, b);
}
/// <summary>
/// The largest positive decimal that divides the numbers without a remainder
/// </summary>
/// <param name="a">The first decimal.</param>
/// <param name="b">The second decimal.</param>
/// <returns>The greatest common divisor.</returns>
private static decimal Gcd(decimal a, decimal b)
{
if (a < 0m)
{
a = -a;
}
if (b < 0m)
{
b = -b;
}
while (a != b)
{
if (a == 0m)
{
return b;
}
if (b == 0m)
{
return a;
}
if (a > b)
{
a %= b;
}
else
{
b %= a;
}
}
return a;
}
/// <summary>
/// Converts the value of this instance to an equivalent <see cref="T:System.String"/> using the specified
/// culture-specific formatting information.
/// </summary>
/// <returns>
/// A <see cref="T:System.String"/> instance equivalent to the value of this instance.
/// </returns>
/// <param name="provider">
/// An <see cref="T:System.IFormatProvider"/> interface implementation that supplies culture-specific
/// formatting information.
/// </param>
public string ToString(IFormatProvider provider)
{
return string.Concat(
this.numerator.ToString(provider),
Delim,
this.denominator.ToString(provider));
}
/// <summary>
/// Converts the value of this instance to an equivalent <see cref="T:System.Decimal"/> number using the
/// specified culture-specific formatting information.
/// </summary>
/// <returns>
/// A <see cref="T:System.Decimal"/> number equivalent to the value of this instance.
/// </returns>
/// <param name="provider">
/// An <see cref="T:System.IFormatProvider"/> interface implementation that supplies culture-specific
/// formatting information.
/// </param>
public decimal ToDecimal(IFormatProvider provider)
{
try
{
decimal d = this.denominator.ToDecimal(provider);
if (d == 0m)
{
return 0m;
}
return this.numerator.ToDecimal(provider) / d;
}
catch (InvalidCastException)
{
long d = this.denominator.ToInt64(provider);
if (d == 0L)
{
return 0L;
}
return ((IConvertible)this.numerator.ToInt64(provider)).ToDecimal(provider)
/ ((IConvertible)d).ToDecimal(provider);
}
}
/// <summary>
/// Converts the value of this instance to an equivalent double-precision floating-point number using
/// the specified culture-specific formatting information.
/// </summary>
/// <returns>
/// A double-precision floating-point number equivalent to the value of this instance.
/// </returns>
/// <param name="provider">
/// An <see cref="T:System.IFormatProvider"/> interface implementation that supplies culture-specific
/// formatting information.
/// </param>
public double ToDouble(IFormatProvider provider)
{
double d = this.denominator.ToDouble(provider);
if (Math.Abs(d) < 0.000001)
{
return 0.0;
}
return this.numerator.ToDouble(provider) / d;
}
/// <summary>
/// Converts the value of this instance to an equivalent single-precision floating-point number
/// using the specified culture-specific formatting information.
/// </summary>
/// <returns>
/// A single-precision floating-point number equivalent to the value of this instance.
/// </returns>
/// <param name="provider">
/// An <see cref="T:System.IFormatProvider"/> interface implementation that supplies culture-specific
/// formatting information.
/// </param>
public float ToSingle(IFormatProvider provider)
{
float d = this.denominator.ToSingle(provider);
if (Math.Abs(d) < 0.000001)
{
return 0.0f;
}
return this.numerator.ToSingle(provider) / d;
}
/// <summary>
/// Converts the value of this instance to an equivalent Boolean value using the specified
/// culture-specific formatting information.
/// </summary>
/// <returns>
/// A Boolean value equivalent to the value of this instance.
/// </returns>
/// <param name="provider">
/// An <see cref="T:System.IFormatProvider"/> interface implementation that supplies culture-specific
/// formatting information.
/// </param>
bool IConvertible.ToBoolean(IFormatProvider provider) => ((IConvertible)this.ToDecimal(provider)).ToBoolean(provider);
/// <summary>
/// Converts the value of this instance to an equivalent 8-bit unsigned integer using the specified
/// culture-specific formatting information.
/// </summary>
/// <returns>
/// An 8-bit unsigned integer equivalent to the value of this instance.
/// </returns>
/// <param name="provider">
/// An <see cref="T:System.IFormatProvider"/> interface implementation that
/// supplies culture-specific formatting information.
/// </param>
byte IConvertible.ToByte(IFormatProvider provider) => ((IConvertible)this.ToDecimal(provider)).ToByte(provider);
/// <summary>
/// Converts the value of this instance to an equivalent Unicode character using the specified
/// culture-specific formatting information.
/// </summary>
/// <returns>
/// A Unicode character equivalent to the value of this instance.
/// </returns>
/// <param name="provider">
/// An <see cref="T:System.IFormatProvider"/> interface implementation that supplies culture-specific
/// formatting information.
/// </param>
char IConvertible.ToChar(IFormatProvider provider) => ((IConvertible)this.ToDecimal(provider)).ToChar(provider);
/// <summary>
/// Converts the value of this instance to an equivalent 16-bit signed integer using the specified
/// culture-specific formatting information.
/// </summary>
/// <returns>
/// An 16-bit signed integer equivalent to the value of this instance.
/// </returns>
/// <param name="provider">
/// An <see cref="T:System.IFormatProvider"/> interface implementation that supplies culture-specific
/// formatting information.
/// </param>
short IConvertible.ToInt16(IFormatProvider provider) => ((IConvertible)this.ToDecimal(provider)).ToInt16(provider);
/// <summary>
/// Converts the value of this instance to an equivalent 32-bit signed integer using the specified
/// culture-specific formatting information.
/// </summary>
/// <returns>
/// An 32-bit signed integer equivalent to the value of this instance.
/// </returns>
/// <param name="provider">
/// An <see cref="T:System.IFormatProvider"/> interface implementation that supplies culture-specific
/// formatting information.
/// </param>
int IConvertible.ToInt32(IFormatProvider provider) => ((IConvertible)this.ToDecimal(provider)).ToInt32(provider);
/// <summary>
/// Converts the value of this instance to an equivalent 64-bit signed integer using the specified
/// culture-specific formatting information.
/// </summary>
/// <returns>
/// An 64-bit signed integer equivalent to the value of this instance.
/// </returns>
/// <param name="provider">
/// An <see cref="T:System.IFormatProvider"/> interface implementation that supplies culture-specific
/// formatting information.
/// </param>
long IConvertible.ToInt64(IFormatProvider provider) => ((IConvertible)this.ToDecimal(provider)).ToInt64(provider);
/// <summary>
/// Converts the value of this instance to an equivalent 8-bit signed integer using the specified
/// culture-specific formatting information.
/// </summary>
/// <returns>
/// An 8-bit signed integer equivalent to the value of this instance.
/// </returns>
/// <param name="provider">
/// An <see cref="T:System.IFormatProvider"/> interface implementation that supplies culture-specific
/// formatting information.
/// </param>
sbyte IConvertible.ToSByte(IFormatProvider provider) => ((IConvertible)this.ToDecimal(provider)).ToSByte(provider);
/// <summary>
/// Converts the value of this instance to an equivalent 16-bit unsigned integer using the specified
/// culture-specific formatting information.
/// </summary>
/// <returns>
/// An 16-bit unsigned integer equivalent to the value of this instance.
/// </returns>
/// <param name="provider">
/// An <see cref="T:System.IFormatProvider"/> interface implementation that supplies culture-specific
/// formatting information.
/// </param>
ushort IConvertible.ToUInt16(IFormatProvider provider) => ((IConvertible)this.ToDecimal(provider)).ToUInt16(provider);
/// <summary>
/// Converts the value of this instance to an equivalent 32-bit unsigned integer using the specified
/// culture-specific formatting information.
/// </summary>
/// <returns>
/// An 32-bit unsigned integer equivalent to the value of this instance.
/// </returns>
/// <param name="provider">
/// An <see cref="T:System.IFormatProvider"/> interface implementation that supplies culture-specific
/// formatting information.
/// </param>
uint IConvertible.ToUInt32(IFormatProvider provider) => ((IConvertible)this.ToDecimal(provider)).ToUInt32(provider);
/// <summary>
/// Converts the value of this instance to an equivalent 64-bit unsigned integer using the specified
/// culture-specific formatting information.
/// </summary>
/// <returns>
/// An 64-bit unsigned integer equivalent to the value of this instance.
/// </returns>
/// <param name="provider">
/// An <see cref="T:System.IFormatProvider"/> interface implementation that
/// supplies culture-specific formatting information.
/// </param>
ulong IConvertible.ToUInt64(IFormatProvider provider) => ((IConvertible)this.ToDecimal(provider)).ToUInt64(provider);
/// <summary>
/// Converts the value of this instance to an equivalent <see cref="T:System.DateTime"/> using the specified
/// culture-specific formatting information.
/// </summary>
/// <returns>
/// A <see cref="T:System.DateTime"/> instance equivalent to the value of this instance.
/// </returns>
/// <param name="provider">
/// An <see cref="T:System.IFormatProvider"/> interface implementation that supplies culture-specific
/// formatting information.
/// </param>
DateTime IConvertible.ToDateTime(IFormatProvider provider) => new DateTime(((IConvertible)this).ToInt64(provider));
/// <summary>
/// Returns the <see cref="T:System.TypeCode"/> for this instance.
/// </summary>
/// <returns>
/// The enumerated constant that is the <see cref="T:System.TypeCode"/> of the class or value type that
/// implements this interface.
/// </returns>
TypeCode IConvertible.GetTypeCode() => this.numerator.GetTypeCode();
/// <summary>
/// Converts the value of this instance to an <see cref="T:System.Object"/> of the specified
/// <see cref="T:System.Type"/> that has an equivalent value, using the specified culture-specific
/// formatting information.
/// </summary>
/// <returns>
/// An <see cref="T:System.Object"/> instance of type <paramref name="conversionType"/> whose value is
/// equivalent to the value of this instance.
/// </returns>
/// <param name="conversionType">
/// The <see cref="T:System.Type"/> to which the value of this instance is converted.
/// </param>
/// <param name="provider">
/// An <see cref="T:System.IFormatProvider"/> interface implementation that supplies culture-specific
/// formatting information.
/// </param>
object IConvertible.ToType(Type conversionType, IFormatProvider provider)
{
if (conversionType == null)
{
throw new ArgumentNullException(nameof(conversionType));
}
Type thisType = this.GetType();
if (thisType == conversionType)
{
// no conversion needed
return this;
}
if (!conversionType.IsGenericType
|| typeof(Rational<>) != conversionType.GetGenericTypeDefinition())
{
// fall back to basic conversion
return Convert.ChangeType(this, conversionType, provider);
}
// auto-convert between Rational<T> types by converting Numerator/Denominator
Type genericArg = conversionType.GetGenericArguments()[0];
object[] ctorArgs =
{
Convert.ChangeType(this.Numerator, genericArg, provider),
Convert.ChangeType(this.Denominator, genericArg, provider)
};
ConstructorInfo ctor = conversionType.GetConstructor(new[] { genericArg, genericArg });
if (ctor == null)
{
throw new InvalidCastException("Unable to find constructor for Rational<" + genericArg.Name + ">.");
}
return ctor.Invoke(ctorArgs);
}
/// <summary>
/// Compares the current instance with another object of the same type and returns an integer that indicates
/// whether the current instance precedes, follows, or occurs in the same position in the sort order as the
/// other object.
/// </summary>
/// <returns>
/// A value that indicates the relative order of the objects being compared.
/// The return value has these meanings: Value Meaning Less than zero This instance precedes
/// <paramref name="obj"/> in the sort order. Zero This instance occurs in the same position in the sort order
/// as <paramref name="obj"/>. Greater than zero This instance follows <paramref name="obj"/> in the sort order.
/// </returns>
/// <param name="obj">An object to compare with this instance. </param>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="obj"/> is not the same type as this instance.
/// </exception>
public int CompareTo(object obj)
{
if (obj is Rational<T> rational)
{
// Differentiate between a real zero and a divide by zero
// work around divide by zero value to get meaningful comparisons
var other = rational;
if (Convert.ToDecimal(this.denominator) == 0m)
{
if (Convert.ToDecimal(other.denominator) == 0m)
{
return Convert.ToDecimal(this.numerator).CompareTo(Convert.ToDecimal(other.numerator));
}
if (Convert.ToDecimal(other.numerator) == 0m)
{
return Convert.ToDecimal(this.denominator).CompareTo(Convert.ToDecimal(other.denominator));
}
}
else if (Convert.ToDecimal(other.denominator) == 0m)
{
if (Convert.ToDecimal(this.numerator) == 0m)
{
return Convert.ToDecimal(this.denominator).CompareTo(Convert.ToDecimal(other.denominator));
}
}
}
return Convert.ToDecimal(this).CompareTo(Convert.ToDecimal(obj));
}
/// <summary>
/// Compares the current instance with another object of the same type and returns an integer that indicates
/// whether the current instance precedes, follows, or occurs in the same position in the sort order as the
/// other object.
/// </summary>
/// <returns>
/// A value that indicates the relative order of the objects being compared. The return value has these
/// meanings: Value Meaning Less than zero This instance precedes <paramref name="other"/> in the sort order.
/// Zero This instance occurs in the same position in the sort order as <paramref name="other"/>. Greater than
/// zero This instance follows <paramref name="other"/> in the sort order.
/// </returns>
/// <param name="other">An object to compare with this instance. </param>
public int CompareTo(T other) => decimal.Compare(Convert.ToDecimal(this), Convert.ToDecimal(other));
/// <summary>
/// Performs a numeric negation of the operand.
/// </summary>
/// <param name="rational">The rational to negate.</param>
/// <returns>
/// The negated rational.
/// </returns>
public static Rational<T> operator -(Rational<T> rational)
{
var numerator = (T)Convert.ChangeType(-Convert.ToDecimal(rational.numerator), typeof(T));
return new Rational<T>(numerator, rational.denominator);
}
/// <summary>
/// Computes the sum of two rational instances.
/// </summary>
/// <param name="r1">The first rational operand.</param>
/// <param name="r2">The second rational operand.</param>
/// <returns>The computed sum.</returns>
public static Rational<T> operator +(Rational<T> r1, Rational<T> r2)
{
decimal n1 = Convert.ToDecimal(r1.numerator);
decimal d1 = Convert.ToDecimal(r1.denominator);
decimal n2 = Convert.ToDecimal(r2.numerator);
decimal d2 = Convert.ToDecimal(r2.denominator);
decimal denominator = Lcd(d1, d2);
if (denominator > d1)
{
n1 *= denominator / d1;
}
if (denominator > d2)
{
n2 *= denominator / d2;
}
decimal numerator = n1 + n2;
return new Rational<T>((T)Convert.ChangeType(numerator, typeof(T)), (T)Convert.ChangeType(denominator, typeof(T)));
}
/// <summary>
/// Computes the subtraction of one rational instance from another.
/// </summary>
/// <param name="r1">The first rational operand.</param>
/// <param name="r2">The second rational operand.</param>
/// <returns>The computed result.</returns>
public static Rational<T> operator -(Rational<T> r1, Rational<T> r2) => r1 + (-r2);
/// <summary>
/// Computes the product of multiplying two rational instances.
/// </summary>
/// <param name="r1">The first rational operand.</param>
/// <param name="r2">The second rational operand.</param>
/// <returns>The computed product.</returns>
public static Rational<T> operator *(Rational<T> r1, Rational<T> r2)
{
decimal numerator = Convert.ToDecimal(r1.numerator) * Convert.ToDecimal(r2.numerator);
decimal denominator = Convert.ToDecimal(r1.denominator) * Convert.ToDecimal(r2.denominator);
return new Rational<T>((T)Convert.ChangeType(numerator, typeof(T)), (T)Convert.ChangeType(denominator, typeof(T)));
}
/// <summary>
/// Computes the product of dividing two rational instances.
/// </summary>
/// <param name="r1">The first rational operand.</param>
/// <param name="r2">The second rational operand.</param>
/// <returns>The computed product.</returns>
public static Rational<T> operator /(Rational<T> r1, Rational<T> r2) => r1 * new Rational<T>(r2.denominator, r2.numerator);
/// <summary>
/// Determines whether the first rational operand is less than the second.
/// </summary>
/// <param name="r1">The first rational operand.</param>
/// <param name="r2">The second rational operand.</param>
/// <returns>The computed result.</returns>
public static bool operator <(Rational<T> r1, Rational<T> r2) => r1.CompareTo(r2) < 0;
/// <summary>
/// Determines whether the first rational operand is less than or equal to the second.
/// </summary>
/// <param name="r1">The first rational operand.</param>
/// <param name="r2">The second rational operand.</param>
/// <returns>The computed result.</returns>
public static bool operator <=(Rational<T> r1, Rational<T> r2) => r1.CompareTo(r2) <= 0;
/// <summary>
/// Determines whether the first rational operand is greater than the second.
/// </summary>
/// <param name="r1">The first rational operand.</param>
/// <param name="r2">The second rational operand.</param>
/// <returns>The computed result.</returns>
public static bool operator >(Rational<T> r1, Rational<T> r2) => r1.CompareTo(r2) > 0;
/// <summary>
/// Determines whether the first rational operand is greater than or equal to the second.
/// </summary>
/// <param name="r1">The first rational operand.</param>
/// <param name="r2">The second rational operand.</param>
/// <returns>The computed result.</returns>
public static bool operator >=(Rational<T> r1, Rational<T> r2) => r1.CompareTo(r2) >= 0;
/// <summary>
/// Determines whether the first rational operand is equal to the second.
/// </summary>
/// <param name="r1">The first rational operand.</param>
/// <param name="r2">The second rational operand.</param>
/// <returns>The computed result.</returns>
public static bool operator ==(Rational<T> r1, Rational<T> r2) => r1.CompareTo(r2) == 0;
/// <summary>
/// Determines whether the first rational operand is not equal to the second.
/// </summary>
/// <param name="r1">The first rational operand.</param>
/// <param name="r2">The second rational operand.</param>
/// <returns>The computed result.</returns>
public static bool operator !=(Rational<T> r1, Rational<T> r2) => r1.CompareTo(r2) != 0;
/// <summary>
/// Returns the fully qualified type name of this instance.
/// </summary>
/// <returns>
/// A <see cref="T:System.String"/> containing a fully qualified type name.
/// </returns>
public override string ToString() => Convert.ToString(this, CultureInfo.InvariantCulture);
/// <summary>
/// Determines whether the specified <see cref="System.Object" />, is equal to this instance.
/// </summary>
/// <param name="obj">The <see cref="System.Object" /> to compare with this instance.</param>
/// <returns>
/// <c>true</c> if the specified <see cref="System.Object" /> is equal to this instance; otherwise, <c>false</c>.
/// </returns>
public override bool Equals(object obj) => this.CompareTo(obj) == 0;
/// <summary>
/// Returns a hash code for this instance.
/// </summary>
/// <returns>
/// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
/// </returns>
public override int GetHashCode() => (this.Numerator, this.Denominator).GetHashCode();
}
}
| 39.822549 | 167 | 0.542997 | [
"MIT"
] | BLACKOB/SilverBullet | SilverBullet.ImageProcessor/Imaging/MetaData/Rational.cs | 40,621 | C# |
using mssql_exporter.core;
namespace mssql_exporter.server
{
public class ConfigurationOptions : IConfigure
{
public string DataSource { get; set; }
public string ConfigFile { get; set; } = "metrics.json";
public string ConfigText { get; set; }
public string ServerPath { get; set; } = "metrics";
public int ServerPort { get; set; } = 80;
public bool AddExporterMetrics { get; set; } = false;
public string LogLevel { get; set; }
public string LogFilePath { get; set; } = "mssqlexporter-log.txt";
}
}
| 24.75 | 74 | 0.611111 | [
"MIT"
] | DanielOliver/mssql_exporter | src/server/ConfigurationOptions.cs | 596 | C# |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("CollectionExtensions.Test")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CollectionExtensions.Test")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: Guid("ca262f71-dbf6-4863-ac69-43eb37085b45")]
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
| 30.952381 | 56 | 0.761538 | [
"MIT"
] | mandarBadve/c-sharp-extension-methods | CSharpExtensionMethods/CollectionExtensions.Test/Properties/AssemblyInfo.cs | 651 | C# |
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Otter.Converters.Json;
using Otter.Converters.QueryString;
namespace Otter.Models
{
[DataContract]
public class CreateContainerParameters // (main.CreateContainerParameters)
{
public CreateContainerParameters()
{
}
public CreateContainerParameters(Config Config)
{
if (Config != null)
{
this.Hostname = Config.Hostname;
this.Domainname = Config.Domainname;
this.User = Config.User;
this.AttachStdin = Config.AttachStdin;
this.AttachStdout = Config.AttachStdout;
this.AttachStderr = Config.AttachStderr;
this.ExposedPorts = Config.ExposedPorts;
this.Tty = Config.Tty;
this.OpenStdin = Config.OpenStdin;
this.StdinOnce = Config.StdinOnce;
this.Env = Config.Env;
this.Cmd = Config.Cmd;
this.Healthcheck = Config.Healthcheck;
this.ArgsEscaped = Config.ArgsEscaped;
this.Image = Config.Image;
this.Volumes = Config.Volumes;
this.WorkingDir = Config.WorkingDir;
this.Entrypoint = Config.Entrypoint;
this.NetworkDisabled = Config.NetworkDisabled;
this.MacAddress = Config.MacAddress;
this.OnBuild = Config.OnBuild;
this.Labels = Config.Labels;
this.StopSignal = Config.StopSignal;
this.StopTimeout = Config.StopTimeout;
this.Shell = Config.Shell;
}
}
[QueryStringParameter("name", false)]
public string Name { get; set; }
[DataMember(Name = "Hostname", EmitDefaultValue = false)]
public string Hostname { get; set; }
[DataMember(Name = "Domainname", EmitDefaultValue = false)]
public string Domainname { get; set; }
[DataMember(Name = "User", EmitDefaultValue = false)]
public string User { get; set; }
[DataMember(Name = "AttachStdin", EmitDefaultValue = false)]
public bool AttachStdin { get; set; }
[DataMember(Name = "AttachStdout", EmitDefaultValue = false)]
public bool AttachStdout { get; set; }
[DataMember(Name = "AttachStderr", EmitDefaultValue = false)]
public bool AttachStderr { get; set; }
[DataMember(Name = "ExposedPorts", EmitDefaultValue = false)]
public IDictionary<string, EmptyStruct> ExposedPorts { get; set; }
[DataMember(Name = "Tty", EmitDefaultValue = false)]
public bool Tty { get; set; }
[DataMember(Name = "OpenStdin", EmitDefaultValue = false)]
public bool OpenStdin { get; set; }
[DataMember(Name = "StdinOnce", EmitDefaultValue = false)]
public bool StdinOnce { get; set; }
[DataMember(Name = "Env", EmitDefaultValue = false)]
public IList<string> Env { get; set; }
[DataMember(Name = "Cmd", EmitDefaultValue = false)]
public IList<string> Cmd { get; set; }
[DataMember(Name = "Healthcheck", EmitDefaultValue = false)]
public HealthConfig Healthcheck { get; set; }
[DataMember(Name = "ArgsEscaped", EmitDefaultValue = false)]
public bool ArgsEscaped { get; set; }
[DataMember(Name = "Image", EmitDefaultValue = false)]
public string Image { get; set; }
[DataMember(Name = "Volumes", EmitDefaultValue = false)]
public IDictionary<string, EmptyStruct> Volumes { get; set; }
[DataMember(Name = "WorkingDir", EmitDefaultValue = false)]
public string WorkingDir { get; set; }
[DataMember(Name = "Entrypoint", EmitDefaultValue = false)]
public IList<string> Entrypoint { get; set; }
[DataMember(Name = "NetworkDisabled", EmitDefaultValue = false)]
public bool NetworkDisabled { get; set; }
[DataMember(Name = "MacAddress", EmitDefaultValue = false)]
public string MacAddress { get; set; }
[DataMember(Name = "OnBuild", EmitDefaultValue = false)]
public IList<string> OnBuild { get; set; }
[DataMember(Name = "Labels", EmitDefaultValue = false)]
public IDictionary<string, string> Labels { get; set; }
[DataMember(Name = "StopSignal", EmitDefaultValue = false)]
public string StopSignal { get; set; }
[DataMember(Name = "StopTimeout", EmitDefaultValue = false)]
[JsonConverter(typeof(TimeSpanSecondsConverter))]
public TimeSpan? StopTimeout { get; set; }
[DataMember(Name = "Shell", EmitDefaultValue = false)]
public IList<string> Shell { get; set; }
[DataMember(Name = "HostConfig", EmitDefaultValue = false)]
public HostConfig HostConfig { get; set; }
[DataMember(Name = "NetworkingConfig", EmitDefaultValue = false)]
public NetworkingConfig NetworkingConfig { get; set; }
}
}
| 37.748148 | 78 | 0.608909 | [
"MIT"
] | MirzaMerdovic/Docker.DotNet | src/Otter/Models/CreateContainerParameters.Generated.cs | 5,096 | C# |
using BlazorContextMenu;
using Microsoft.AspNetCore.Components;
using PipelineCacher.Client.Models;
using PipelineCacher.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Json;
using System.Threading.Tasks;
namespace PipelineCacher.Client.Pages
{
public partial class Pipelines
{
[Parameter]
public string Id { get; set; }
[Inject] HttpClient Http { get; set; }
RestCallStatusEnum pipelines_loadingStatus = RestCallStatusEnum.NotStarted;
List<PipelinesItemModel> pipelines;
string ResultMessage;
PipelinesTableModel pipelinesTableModel = new PipelinesTableModel();
protected override async Task OnInitializedAsync()
{
pipelines_loadingStatus = RestCallStatusEnum.Getting;
StateHasChanged();
try
{
var result = await Http.GetFromJsonAsync<Pipeline[]>($"api/pipeline");
pipelines = result.Select(p => new PipelinesItemModel
{
Pipeline = p
}).ToList();
pipelines_loadingStatus = RestCallStatusEnum.Ok;
}
catch (Exception e)
{
pipelines_loadingStatus = RestCallStatusEnum.Failed;
ResultMessage = e.ToString();//.Message;
}
}
void OpenInAzurePipelinesClicked()
{
if (pipelinesTableModel.SelectedPipeline == null) return;
var pipeline = pipelines.Find(p => p.Pipeline.Id == pipelinesTableModel.SelectedPipeline);
NavigateToAzureDevOpsPipeline(pipeline.Pipeline);
}
void NavigateToAzureDevOpsPipeline(Pipeline pipeline)
{
NavigationManager.NavigateTo($"https://dev.azure.com/{pipeline.OrganizationName}/{pipeline.ProjectName}/_build?definitionId={pipeline.AzdoId}");
}
async Task PullDataFromAzurePipelinesClicked(ItemClickEventArgs e)
{
var pipelineItem = e.Data as PipelinesItemModel;
var pipeline = pipelineItem.Pipeline;
pipelineItem.LoadingStatus = RestCallStatusEnum.Posting;
StateHasChanged();
var result = await Http.PostAsync($"api/pipeline/{pipeline.Id}/populate?PatId=1", null);
pipelineItem.LoadingStatus = RestCallStatusEnum.Ok;
var updatedPipeline = await result.Content.ReadFromJsonAsync<Pipeline>();
pipelineItem.Pipeline = updatedPipeline;
}
}
}
| 36.901408 | 156 | 0.629389 | [
"MIT"
] | cveld/PipelineCacher | PipelineCacher/Client/Pages/Pipelines.Razor.cs | 2,622 | C# |
// <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace UiPath.Web.Client20191
{
using Microsoft.Rest;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
/// <summary>
/// MessageTemplates operations.
/// </summary>
public partial interface IMessageTemplates
{
/// <summary>
/// Gets the message templates.
/// </summary>
/// <remarks>
/// Host only. Requires authentication.
/// </remarks>
/// <param name='expand'>
/// Expands related entities inline.
/// </param>
/// <param name='filter'>
/// Filters the results, based on a Boolean condition.
/// </param>
/// <param name='select'>
/// Selects which properties to include in the response.
/// </param>
/// <param name='orderby'>
/// Sorts the results.
/// </param>
/// <param name='top'>
/// Returns only the first n results.
/// </param>
/// <param name='skip'>
/// Skips the first n results.
/// </param>
/// <param name='count'>
/// Includes a count of the matching results in the response.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.HttpOperationException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
Task<HttpOperationResponse<ODataResponseListMessageTemplateDto>> GetMessageTemplatesWithHttpMessagesAsync(string expand = default(string), string filter = default(string), string select = default(string), string orderby = default(string), int? top = default(int?), int? skip = default(int?), bool? count = default(bool?), Dictionary<string, List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
/// <summary>
/// Edits a message template.
/// </summary>
/// <remarks>
/// Host only. Requires authentication.
/// </remarks>
/// <param name='id'>
/// key: Id
/// </param>
/// <param name='messageTemplateDto'>
/// The entity to put
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.HttpOperationException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<HttpOperationResponse<MessageTemplateDto>> PutByIdWithHttpMessagesAsync(string id, MessageTemplateDto messageTemplateDto, Dictionary<string, List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
}
}
| 41.637363 | 485 | 0.608604 | [
"MIT"
] | AFWberlin/orchestrator-powershell | UiPath.Web.Client/generated20191/IMessageTemplates.cs | 3,789 | C# |
#nullable enable
using System;
using System.Threading.Tasks;
using Content.Server.GameObjects.Components.Interactable;
using Content.Server.GameObjects.Components.Pulling;
using Content.Server.Utility;
using Content.Shared.GameObjects.Components.Interactable;
using Content.Shared.Interfaces.GameObjects.Components;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.Physics;
using Robust.Shared.ViewVariables;
namespace Content.Server.GameObjects.Components
{
// TODO: Move this component's logic to an EntitySystem.
[RegisterComponent]
public class AnchorableComponent : Component, IInteractUsing
{
public override string Name => "Anchorable";
[ComponentDependency] private PhysicsComponent? _physicsComponent = default!;
[ViewVariables]
[DataField("tool")]
public ToolQuality Tool { get; private set; } = ToolQuality.Anchoring;
[ViewVariables]
int IInteractUsing.Priority => 1;
[ViewVariables(VVAccess.ReadWrite)]
[DataField("snap")]
public bool Snap { get; private set; } = true;
/// <summary>
/// Checks if a tool can change the anchored status.
/// </summary>
/// <param name="user">The user doing the action</param>
/// <param name="utilizing">The tool being used</param>
/// <param name="anchoring">True if we're anchoring, and false if we're unanchoring.</param>
/// <returns>true if it is valid, false otherwise</returns>
private async Task<bool> Valid(IEntity user, IEntity utilizing, bool anchoring)
{
if (!Owner.HasComponent<IPhysBody>())
{
return false;
}
BaseAnchoredAttemptEvent attempt =
anchoring ? new AnchorAttemptEvent(user, utilizing) : new UnanchorAttemptEvent(user, utilizing);
// Need to cast the event or it will be raised as BaseAnchoredAttemptEvent.
if (anchoring)
Owner.EntityManager.EventBus.RaiseLocalEvent(Owner.Uid, (AnchorAttemptEvent) attempt, false);
else
Owner.EntityManager.EventBus.RaiseLocalEvent(Owner.Uid, (UnanchorAttemptEvent) attempt, false);
if (attempt.Cancelled)
return false;
return utilizing.TryGetComponent(out ToolComponent? tool) && await tool.UseTool(user, Owner, 0.5f + attempt.Delay, Tool);
}
/// <summary>
/// Tries to anchor the owner of this component.
/// </summary>
/// <param name="user">The entity doing the anchoring</param>
/// <param name="utilizing">The tool being used</param>
/// <returns>true if anchored, false otherwise</returns>
public async Task<bool> TryAnchor(IEntity user, IEntity utilizing)
{
if (!(await Valid(user, utilizing, true)))
{
return false;
}
if (_physicsComponent == null)
return false;
// Snap rotation to cardinal (multiple of 90)
var rot = Owner.Transform.LocalRotation;
Owner.Transform.LocalRotation = Math.Round(rot / (Math.PI / 2)) * (Math.PI / 2);
if (Owner.TryGetComponent(out PullableComponent? pullableComponent))
{
if (pullableComponent.Puller != null)
{
pullableComponent.TryStopPull();
}
}
if (Snap)
Owner.SnapToGrid(Owner.EntityManager);
Owner.EntityManager.EventBus.RaiseLocalEvent(Owner.Uid, new BeforeAnchoredEvent(user, utilizing), false);
_physicsComponent.BodyType = BodyType.Static;
Owner.EntityManager.EventBus.RaiseLocalEvent(Owner.Uid, new AnchoredEvent(user, utilizing), false);
return true;
}
/// <summary>
/// Tries to unanchor the owner of this component.
/// </summary>
/// <param name="user">The entity doing the unanchoring</param>
/// <param name="utilizing">The tool being used, if any</param>
/// <param name="force">Whether or not to ignore valid tool checks</param>
/// <returns>true if unanchored, false otherwise</returns>
public async Task<bool> TryUnAnchor(IEntity user, IEntity utilizing)
{
if (!(await Valid(user, utilizing, false)))
{
return false;
}
if (_physicsComponent == null)
return false;
Owner.EntityManager.EventBus.RaiseLocalEvent(Owner.Uid, new BeforeUnanchoredEvent(user, utilizing), false);
_physicsComponent.BodyType = BodyType.Dynamic;
Owner.EntityManager.EventBus.RaiseLocalEvent(Owner.Uid, new UnanchoredEvent(user, utilizing), false);
return true;
}
/// <summary>
/// Tries to toggle the anchored status of this component's owner.
/// </summary>
/// <param name="user">The entity doing the unanchoring</param>
/// <param name="utilizing">The tool being used</param>
/// <returns>true if toggled, false otherwise</returns>
public async Task<bool> TryToggleAnchor(IEntity user, IEntity utilizing)
{
if (_physicsComponent == null)
return false;
return _physicsComponent.BodyType == BodyType.Static ?
await TryUnAnchor(user, utilizing) :
await TryAnchor(user, utilizing);
}
async Task<bool> IInteractUsing.InteractUsing(InteractUsingEventArgs eventArgs)
{
return await TryToggleAnchor(eventArgs.User, eventArgs.Using);
}
}
public abstract class BaseAnchoredAttemptEvent : CancellableEntityEventArgs
{
public IEntity User { get; }
public IEntity Tool { get; }
/// <summary>
/// Extra delay to add to the do_after.
/// Add to this, don't replace it.
/// Output parameter.
/// </summary>
public float Delay { get; set; } = 0f;
protected BaseAnchoredAttemptEvent(IEntity user, IEntity tool)
{
User = user;
Tool = tool;
}
}
public class AnchorAttemptEvent : BaseAnchoredAttemptEvent
{
public AnchorAttemptEvent(IEntity user, IEntity tool) : base(user, tool) { }
}
public class UnanchorAttemptEvent : BaseAnchoredAttemptEvent
{
public UnanchorAttemptEvent(IEntity user, IEntity tool) : base(user, tool) { }
}
public abstract class BaseAnchoredEvent : EntityEventArgs
{
public IEntity User { get; }
public IEntity Tool { get; }
protected BaseAnchoredEvent(IEntity user, IEntity tool)
{
User = user;
Tool = tool;
}
}
/// <summary>
/// Raised just before the entity's body type is changed.
/// </summary>
public class BeforeAnchoredEvent : BaseAnchoredEvent
{
public BeforeAnchoredEvent(IEntity user, IEntity tool) : base(user, tool) { }
}
public class AnchoredEvent : BaseAnchoredEvent
{
public AnchoredEvent(IEntity user, IEntity tool) : base(user, tool) { }
}
/// <summary>
/// Raised just before the entity's body type is changed.
/// </summary>
public class BeforeUnanchoredEvent : BaseAnchoredEvent
{
public BeforeUnanchoredEvent(IEntity user, IEntity tool) : base(user, tool) { }
}
public class UnanchoredEvent : BaseAnchoredEvent
{
public UnanchoredEvent(IEntity user, IEntity tool) : base(user, tool) { }
}
}
| 35.410959 | 133 | 0.61354 | [
"MIT"
] | FoundVivo/space-station-14 | Content.Server/GameObjects/Components/AnchorableComponent.cs | 7,755 | C# |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using LightningDevelopment;
namespace Tools.Tools
{
public class Exit : IQuickAction
{
public string Command
{
get { return "exit"; }
}
public void Execute(string[] arguments)
{
Environment.Exit(0);
}
}
}
| 18.130435 | 48 | 0.561151 | [
"MIT"
] | mhgamework/LightningDevelopment | src/Modules/Exit.cs | 419 | C# |
using System;
using System.Diagnostics;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using System.Net;
using Mono.Debugging.Client;
using Mono.Debugging.Soft;
using NUnit.Framework;
using Xamarin.ProjectTools;
namespace Xamarin.Android.Build.Tests
{
[Category ("UsesDevices")]
public class DebuggingTest : DeviceTest {
[TearDown]
public void ClearDebugProperties ()
{
ClearDebugProperty ();
}
void SetTargetFrameworkAndManifest(XamarinAndroidApplicationProject proj, Builder builder)
{
string apiLevel;
proj.TargetFrameworkVersion = builder.LatestTargetFrameworkVersion (out apiLevel);
proj.AndroidManifest = $@"<?xml version=""1.0"" encoding=""utf-8""?>
<manifest xmlns:android=""http://schemas.android.com/apk/res/android"" android:versionCode=""1"" android:versionName=""1.0"" package=""UnnamedProject.UnnamedProject"">
<uses-sdk android:minSdkVersion=""24"" android:targetSdkVersion=""{apiLevel}"" />
<application android:label=""${{PROJECT_NAME}}"">
</application >
</manifest>";
}
[Test]
public void ApplicationRunsWithoutDebugger ([Values (false, true)] bool isRelease, [Values (false, true)] bool extractNativeLibs)
{
AssertHasDevices ();
var proj = new XamarinFormsAndroidApplicationProject () {
IsRelease = isRelease,
};
if (isRelease || !CommercialBuildAvailable) {
proj.SetAndroidSupportedAbis ("armeabi-v7a", "x86");
}
proj.SetDefaultTargetDevice ();
using (var b = CreateApkBuilder (Path.Combine ("temp", TestName))) {
SetTargetFrameworkAndManifest (proj, b);
proj.AndroidManifest = proj.AndroidManifest.Replace ("<application ", $"<application android:extractNativeLibs=\"{extractNativeLibs.ToString ().ToLowerInvariant ()}\" ");
Assert.True (b.Install (proj), "Project should have installed.");
var manifest = Path.Combine (Root, b.ProjectDirectory, proj.IntermediateOutputPath, "android", "AndroidManifest.xml");
AssertExtractNativeLibs (manifest, extractNativeLibs);
ClearAdbLogcat ();
if (CommercialBuildAvailable)
Assert.True (b.RunTarget (proj, "_Run"), "Project should have run.");
else
AdbStartActivity ($"{proj.PackageName}/{proj.JavaPackageName}.MainActivity");
Assert.True (WaitForActivityToStart (proj.PackageName, "MainActivity",
Path.Combine (Root, b.ProjectDirectory, "logcat.log"), 30), "Activity should have started.");
Assert.True (b.Uninstall (proj), "Project should have uninstalled.");
}
}
[Test]
public void ClassLibraryMainLauncherRuns ()
{
AssertHasDevices ();
var path = Path.Combine ("temp", TestName);
var app = new XamarinAndroidApplicationProject {
ProjectName = "MyApp",
};
if (!CommercialBuildAvailable) {
app.SetAndroidSupportedAbis ("armeabi-v7a", "x86");
}
app.SetDefaultTargetDevice ();
var lib = new XamarinAndroidLibraryProject {
ProjectName = "MyLibrary"
};
lib.Sources.Add (new BuildItem.Source ("MainActivity.cs") {
TextContent = () => lib.ProcessSourceTemplate (app.DefaultMainActivity).Replace ("${JAVA_PACKAGENAME}", app.JavaPackageName),
});
lib.AndroidResources.Clear ();
foreach (var resource in app.AndroidResources) {
lib.AndroidResources.Add (resource);
}
var reference = $"..\\{lib.ProjectName}\\{lib.ProjectName}.csproj";
app.References.Add (new BuildItem.ProjectReference (reference, lib.ProjectName, lib.ProjectGuid));
// Remove the default MainActivity.cs & AndroidResources
app.AndroidResources.Clear ();
app.AndroidResources.Add (new AndroidItem.AndroidResource ("Resources\\layout\\foo.xml") {
TextContent = () => "<?xml version=\"1.0\" encoding=\"utf-8\" ?><LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\" />"
});
app.Sources.Remove (app.GetItem ("MainActivity.cs"));
using (var libBuilder = CreateDllBuilder (Path.Combine (path, lib.ProjectName)))
using (var appBuilder = CreateApkBuilder (Path.Combine (path, app.ProjectName))) {
SetTargetFrameworkAndManifest (app, appBuilder);
Assert.IsTrue (libBuilder.Build (lib), "library build should have succeeded.");
Assert.True (appBuilder.Install (app), "app should have installed.");
ClearAdbLogcat ();
if (CommercialBuildAvailable)
Assert.True (appBuilder.RunTarget (app, "_Run"), "Project should have run.");
else
AdbStartActivity ($"{app.PackageName}/{app.JavaPackageName}.MainActivity");
Assert.True (WaitForActivityToStart (app.PackageName, "MainActivity",
Path.Combine (Root, appBuilder.ProjectDirectory, "logcat.log"), 30), "Activity should have started.");
}
}
#pragma warning disable 414
static object [] DebuggerCustomAppTestCases = new object [] {
new object[] {
/* useSharedRuntime */ false,
/* embedAssemblies */ true,
/* fastDevType */ "Assemblies",
/* activityStarts */ true,
},
new object[] {
/* useSharedRuntime */ false,
/* embedAssemblies */ false,
/* fastDevType */ "Assemblies",
/* activityStarts */ true,
},
new object[] {
/* useSharedRuntime */ true,
/* embedAssemblies */ true,
/* fastDevType */ "Assemblies",
/* activityStarts */ true,
},
new object[] {
/* useSharedRuntime */ true,
/* embedAssemblies */ false,
/* fastDevType */ "Assemblies",
/* activityStarts */ true,
},
new object[] {
/* useSharedRuntime */ true,
/* embedAssemblies */ true,
/* fastDevType */ "Assemblies:Dexes",
/* activityStarts */ true,
},
new object[] {
/* useSharedRuntime */ true,
/* embedAssemblies */ false,
/* fastDevType */ "Assemblies:Dexes",
/* activityStarts */ false,
},
};
#pragma warning restore 414
[Test]
[TestCaseSource (nameof (DebuggerCustomAppTestCases))]
public void CustomApplicationRunsWithDebuggerAndBreaks (bool useSharedRuntime, bool embedAssemblies, string fastDevType, bool activityStarts)
{
AssertCommercialBuild ();
AssertHasDevices ();
var proj = new XamarinAndroidApplicationProject () {
IsRelease = false,
AndroidFastDeploymentType = fastDevType,
};
proj.SetAndroidSupportedAbis ("armeabi-v7a", "x86");
proj.SetProperty (KnownProperties.AndroidUseSharedRuntime, useSharedRuntime.ToString ());
proj.SetProperty ("EmbedAssembliesIntoApk", embedAssemblies.ToString ());
proj.SetDefaultTargetDevice ();
proj.Sources.Add (new BuildItem.Source ("MyApplication.cs") {
TextContent = () => proj.ProcessSourceTemplate (@"using System;
using Android.App;
using Android.OS;
using Android.Runtime;
using Android.Widget;
namespace ${ROOT_NAMESPACE} {
[Application]
public class MyApplication : Application {
public MyApplication (IntPtr handle, JniHandleOwnership jniHandle)
: base (handle, jniHandle)
{
}
public override void OnCreate ()
{
base.OnCreate ();
}
}
}
"),
});
using (var b = CreateApkBuilder (Path.Combine ("temp", TestName))) {
SetTargetFrameworkAndManifest (proj, b);
Assert.True (b.Install (proj), "Project should have installed.");
int breakcountHitCount = 0;
ManualResetEvent resetEvent = new ManualResetEvent (false);
var sw = new Stopwatch ();
// setup the debugger
var session = new SoftDebuggerSession ();
session.Breakpoints = new BreakpointStore {
{ Path.Combine (Root, b.ProjectDirectory, "MainActivity.cs"), 19 },
{ Path.Combine (Root, b.ProjectDirectory, "MyApplication.cs"), 17 },
};
session.TargetHitBreakpoint += (sender, e) => {
TestContext.WriteLine ($"BREAK {e.Type}, {e.Backtrace.GetFrame (0)}");
breakcountHitCount++;
session.Continue ();
};
var rnd = new Random ();
int port = rnd.Next (10000, 20000);
TestContext.Out.WriteLine ($"{port}");
var args = new SoftDebuggerConnectArgs ("", IPAddress.Loopback, port) {
MaxConnectionAttempts = 10,
};
var startInfo = new SoftDebuggerStartInfo (args) {
WorkingDirectory = Path.Combine (b.ProjectDirectory, proj.IntermediateOutputPath, "android", "assets"),
};
var options = new DebuggerSessionOptions () {
EvaluationOptions = EvaluationOptions.DefaultOptions,
};
options.EvaluationOptions.UseExternalTypeResolver = true;
ClearAdbLogcat ();
Assert.True (b.RunTarget (proj, "_Run", parameters: new string [] {
$"AndroidSdbTargetPort={port}",
$"AndroidSdbHostPort={port}",
"AndroidAttachDebugger=True",
}), "Project should have run.");
// do we expect the app to start?
Assert.AreEqual (activityStarts, WaitForDebuggerToStart (Path.Combine (Root, b.ProjectDirectory, "logcat.log")), "Activity should have started");
if (!activityStarts)
return;
// we need to give a bit of time for the debug server to start up.
WaitFor (2000);
session.LogWriter += (isStderr, text) => { Console.WriteLine (text); };
session.OutputWriter += (isStderr, text) => { Console.WriteLine (text); };
session.DebugWriter += (level, category, message) => { Console.WriteLine (message); };
session.Run (startInfo, options);
var expectedTime = TimeSpan.FromSeconds (1);
var actualTime = ProfileFor (() => session.IsConnected);
TestContext.Out.WriteLine ($"Debugger connected in {actualTime}");
Assert.LessOrEqual (actualTime, expectedTime, $"Debugger should have connected within {expectedTime} but it took {actualTime}.");
// we need to wait here for a while to allow the breakpoints to hit
// but we need to timeout
TimeSpan timeout = TimeSpan.FromSeconds (60);
while (session.IsConnected && breakcountHitCount < 2 && timeout >= TimeSpan.Zero) {
Thread.Sleep (10);
timeout = timeout.Subtract (TimeSpan.FromMilliseconds (10));
}
WaitFor (2000);
int expected = 2;
Assert.AreEqual (expected, breakcountHitCount, $"Should have hit {expected} breakpoints. Only hit {breakcountHitCount}");
Assert.True (b.Uninstall (proj), "Project should have uninstalled.");
session.Exit ();
}
}
#pragma warning disable 414
static object [] DebuggerTestCases = new object [] {
new object[] {
/* useSharedRuntime */ false,
/* embedAssemblies */ true,
/* fastDevType */ "Assemblies",
/* allowDeltaInstall */ false,
},
new object[] {
/* useSharedRuntime */ false,
/* embedAssemblies */ false,
/* fastDevType */ "Assemblies",
/* allowDeltaInstall */ false,
},
new object[] {
/* useSharedRuntime */ true,
/* embedAssemblies */ true,
/* fastDevType */ "Assemblies",
/* allowDeltaInstall */ false,
},
new object[] {
/* useSharedRuntime */ true,
/* embedAssemblies */ false,
/* fastDevType */ "Assemblies",
/* allowDeltaInstall */ false,
},
new object[] {
/* useSharedRuntime */ true,
/* embedAssemblies */ true,
/* fastDevType */ "Assemblies:Dexes",
/* allowDeltaInstall */ false,
},
new object[] {
/* useSharedRuntime */ true,
/* embedAssemblies */ false,
/* fastDevType */ "Assemblies:Dexes",
/* allowDeltaInstall */ false,
},
new object[] {
/* useSharedRuntime */ true,
/* embedAssemblies */ false,
/* fastDevType */ "Assemblies",
/* allowDeltaInstall */ true,
},
};
#pragma warning restore 414
[Test]
[TestCaseSource (nameof(DebuggerTestCases))]
public void ApplicationRunsWithDebuggerAndBreaks (bool useSharedRuntime, bool embedAssemblies, string fastDevType, bool allowDeltaInstall)
{
AssertCommercialBuild ();
AssertHasDevices ();
var proj = new XamarinFormsAndroidApplicationProject () {
IsRelease = false,
AndroidUseSharedRuntime = useSharedRuntime,
EmbedAssembliesIntoApk = embedAssemblies,
AndroidFastDeploymentType = fastDevType
};
proj.SetAndroidSupportedAbis ("armeabi-v7a", "x86");
if (allowDeltaInstall)
proj.SetProperty (KnownProperties._AndroidAllowDeltaInstall, "true");
proj.SetDefaultTargetDevice ();
using (var b = CreateApkBuilder (Path.Combine ("temp", TestName))) {
SetTargetFrameworkAndManifest (proj, b);
Assert.True (b.Install (proj), "Project should have installed.");
int breakcountHitCount = 0;
ManualResetEvent resetEvent = new ManualResetEvent (false);
var sw = new Stopwatch ();
// setup the debugger
var session = new SoftDebuggerSession ();
session.Breakpoints = new BreakpointStore {
{ Path.Combine (Root, b.ProjectDirectory, "MainActivity.cs"), 20 },
{ Path.Combine (Root, b.ProjectDirectory, "MainPage.xaml.cs"), 14 },
{ Path.Combine (Root, b.ProjectDirectory, "MainPage.xaml.cs"), 19 },
{ Path.Combine (Root, b.ProjectDirectory, "App.xaml.cs"), 12 },
};
session.TargetHitBreakpoint += (sender, e) => {
TestContext.WriteLine ($"BREAK {e.Type}, {e.Backtrace.GetFrame (0)}");
breakcountHitCount++;
session.Continue ();
};
var rnd = new Random ();
int port = rnd.Next (10000, 20000);
TestContext.Out.WriteLine ($"{port}");
var args = new SoftDebuggerConnectArgs ("", IPAddress.Loopback, port) {
MaxConnectionAttempts = 10,
};
var startInfo = new SoftDebuggerStartInfo (args) {
WorkingDirectory = Path.Combine (b.ProjectDirectory, proj.IntermediateOutputPath, "android", "assets"),
};
var options = new DebuggerSessionOptions () {
EvaluationOptions = EvaluationOptions.DefaultOptions,
};
options.EvaluationOptions.UseExternalTypeResolver = true;
ClearAdbLogcat ();
Assert.True (b.RunTarget (proj, "_Run", parameters: new string [] {
$"AndroidSdbTargetPort={port}",
$"AndroidSdbHostPort={port}",
"AndroidAttachDebugger=True",
}), "Project should have run.");
Assert.IsTrue (WaitForDebuggerToStart (Path.Combine (Root, b.ProjectDirectory, "logcat.log")), "Activity should have started");
// we need to give a bit of time for the debug server to start up.
WaitFor (2000);
session.LogWriter += (isStderr, text) => { Console.WriteLine (text); };
session.OutputWriter += (isStderr, text) => { Console.WriteLine (text); };
session.DebugWriter += (level, category, message) => { Console.WriteLine (message); };
session.Run (startInfo, options);
WaitFor (TimeSpan.FromSeconds (30), () => session.IsConnected);
Assert.True (session.IsConnected, "Debugger should have connected but it did not.");
// we need to wait here for a while to allow the breakpoints to hit
// but we need to timeout
TimeSpan timeout = TimeSpan.FromSeconds (60);
int expected = 3;
while (session.IsConnected && breakcountHitCount < 3 && timeout >= TimeSpan.Zero) {
Thread.Sleep (10);
timeout = timeout.Subtract (TimeSpan.FromMilliseconds (10));
}
WaitFor (2000);
Assert.AreEqual (expected, breakcountHitCount, $"Should have hit {expected} breakpoints. Only hit {breakcountHitCount}");
breakcountHitCount = 0;
ClearAdbLogcat ();
ClickButton (proj.PackageName, "myXFButton", "CLICK ME");
while (session.IsConnected && breakcountHitCount < 1 && timeout >= TimeSpan.Zero) {
Thread.Sleep (10);
timeout = timeout.Subtract (TimeSpan.FromMilliseconds (10));
}
expected = 1;
Assert.AreEqual (expected, breakcountHitCount, $"Should have hit {expected} breakpoints. Only hit {breakcountHitCount}");
Assert.True (b.Uninstall (proj), "Project should have uninstalled.");
session.Exit ();
}
}
}
}
| 39.168766 | 174 | 0.67537 | [
"MIT"
] | MrAlbin/xamarin-android | tests/MSBuildDeviceIntegration/Tests/DebuggingTest.cs | 15,550 | C# |
/*
* Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the ssm-2014-11-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.SimpleSystemsManagement.Model
{
/// <summary>
/// This is the response object from the DescribeActivations operation.
/// </summary>
public partial class DescribeActivationsResponse : AmazonWebServiceResponse
{
private List<Activation> _activationList = new List<Activation>();
private string _nextToken;
/// <summary>
/// Gets and sets the property ActivationList.
/// <para>
/// A list of activations for your AWS account.
/// </para>
/// </summary>
public List<Activation> ActivationList
{
get { return this._activationList; }
set { this._activationList = value; }
}
// Check to see if ActivationList property is set
internal bool IsSetActivationList()
{
return this._activationList != null && this._activationList.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token for the next set of items to return. Use this token to get the next set
/// of results.
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
} | 31.039474 | 101 | 0.630352 | [
"Apache-2.0"
] | Bynder/aws-sdk-net | sdk/src/Services/SimpleSystemsManagement/Generated/Model/DescribeActivationsResponse.cs | 2,359 | C# |
using System;
using System.Collections.Generic;
using Windows.Foundation;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Media.Imaging;
using Windows.UI.Xaml.Shapes;
namespace MoveShapeFilledByImageBrush
{
public class ImageWithMask
{
private List<Point> m_maskInkStroke;
private Shape m_renderImage;
private Uri m_originalImageUri;
private readonly Canvas m_parent;
private Size m_desiredSize;
public ImageWithMask(Canvas parentView, Uri imgUri, List<Point> maskInkStroke, Size desiredSize)
{
m_parent = parentView;
m_originalImageUri = imgUri;
m_desiredSize = desiredSize;
if (!IsValidSize(m_desiredSize.Width))
m_desiredSize.Width = 100;
if (!IsValidSize(m_desiredSize.Height))
m_desiredSize.Height = 30;
SetMaskPath(maskInkStroke);
}
public Path MaskPath => m_renderImage as Path;
public void SetImage(Uri imageUri, bool newMask = false)
{
// check if we are already in a good configuration:
if (!newMask && (imageUri == m_originalImageUri))
return;
m_originalImageUri = imageUri;
// check if there is a custom mask to apply:
if (newMask)
{
bool imageAlreadyAttached = (m_renderImage != null) &&
m_parent.Children.Contains(m_renderImage);
if (m_maskInkStroke != null)
m_renderImage = ToPath(m_maskInkStroke, m_desiredSize);
else // otherwise we just paint a rectangle:
m_renderImage = new Rectangle();
if (!imageAlreadyAttached)
m_parent.Children.Add(m_renderImage);
}
// create the new background brush, for the shape with the desired size:
m_renderImage.Width = m_desiredSize.Width;
m_renderImage.Height = m_desiredSize.Height;
SetImageBrush();
}
private void SetImageBrush()
{
m_renderImage.Fill = new ImageBrush
{
ImageSource = new BitmapImage(m_originalImageUri)
};
}
public void SetMaskPath(List<Point> maskStroke)
{
// check if we are already in a good configuration:
if (maskStroke == null)
{
if (m_maskInkStroke == null)
return;
}
else if (maskStroke.Equals(m_maskInkStroke))
return;
m_maskInkStroke = maskStroke;
SetImage(m_originalImageUri, true);
}
public void SetFrame(double newX, double newY)
{
if (m_renderImage != null)
{
SetMargin(m_renderImage, newX, newY);
//SetImageBrush();
}
}
public static bool IsValidSize(double arg)
{
return (arg > 0) && !double.IsNaN(arg);
}
public static void SetMargin(FrameworkElement panel, double? left, double? top)
{
if (panel == null)
return;
Thickness margin = panel.Margin;
if (top.HasValue && !double.IsNaN(top.Value))
margin.Top = top.Value;
if (left.HasValue && !double.IsNaN(left.Value))
margin.Left = left.Value;
panel.Margin = margin;
}
/// <summary>
/// Transforms the given InkStroke into a Path shape.
/// </summary>
/// <param name="pl"></param>
/// <param name="container">the size of the rectangle that contains this path</param>
/// <returns></returns>
public static Path ToPath(List<Point> pl, Size container)
{
if ((pl == null) || (pl.Count < 3))
return null;
double contW = container.Width;
double contH = container.Height;
PathGeometry pGeom = new PathGeometry();
Point pt0Unit = pl[0];
PathFigure pathFigure = new PathFigure
{
StartPoint = new Point(pt0Unit.X * contW, pt0Unit.Y * contH)
};
// Add the points to the path:
for (int c = 2; c < pl.Count; c += 2)
{
Point pt1Unit = pl[c - 1];
Point pt1Self = new Point(pt1Unit.X * contW, pt1Unit.Y * contH);
Point pt2Unit = pl[c];
Point pt2Self = new Point(pt2Unit.X * contW, pt2Unit.Y * contH);
pathFigure.Segments.Add(new QuadraticBezierSegment
{
Point1 = pt1Self,
Point2 = pt2Self
});
}
pGeom.Figures.Add(pathFigure);
return new Path { Data = pGeom };
}
}
}
| 26.12 | 98 | 0.68096 | [
"MIT"
] | cghersi/UWPExamples | MoveShapeFilledByImageBrush/MoveShapeFilledByImageBrush/ImageWithMask.cs | 3,920 | C# |
/* Poly2Tri
* Copyright (c) 2009-2010, Poly2Tri Contributors
* http://code.google.com/p/poly2tri/
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* * Neither the name of Poly2Tri nor the names of its contributors may be
* used to endorse or promote products derived from this software without specific
* prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
using System;
using System.Collections;
using System.Collections.Generic;
namespace Poly2Tri
{
public struct FixedBitArray3 : IEnumerable<bool>
{
public bool _0, _1, _2;
public bool this[int index]
{
get
{
switch (index)
{
case 0:
return _0;
case 1:
return _1;
case 2:
return _2;
default:
throw new IndexOutOfRangeException();
}
}
set
{
switch (index)
{
case 0:
_0 = value;
break;
case 1:
_1 = value;
break;
case 2:
_2 = value;
break;
default:
throw new IndexOutOfRangeException();
}
}
}
public bool Contains(bool value)
{
for (int i = 0; i < 3; ++i)
{
if (this[i] == value)
{
return true;
}
}
return false;
}
public int IndexOf(bool value)
{
for (int i = 0; i < 3; ++i)
{
if (this[i] == value)
{
return i;
}
}
return -1;
}
public void Clear()
{
_0 = _1 = _2 = false;
}
public void Clear(bool value)
{
for (int i = 0; i < 3; ++i)
{
if (this[i] == value)
{
this[i] = false;
}
}
}
private IEnumerable<bool> Enumerate()
{
for (int i = 0; i < 3; ++i)
{
yield return this[i];
}
}
public IEnumerator<bool> GetEnumerator() { return Enumerate().GetEnumerator(); }
IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); }
}
} | 29.10219 | 88 | 0.498871 | [
"MIT"
] | Charlotte-Air/XLua_Game_Demo | Assets/Plugin/Ultimate Game Tools/Fracturing/CDT/Utility/FixedBitArray3.cs | 3,989 | C# |
/*
* Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the quicksight-2018-04-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.QuickSight.Model
{
/// <summary>
/// Container for the parameters to the UpdateTemplate operation.
/// Updates a template from an existing Amazon QuickSight analysis or another template.
/// </summary>
public partial class UpdateTemplateRequest : AmazonQuickSightRequest
{
private string _awsAccountId;
private string _name;
private TemplateSourceEntity _sourceEntity;
private string _templateId;
private string _versionDescription;
/// <summary>
/// Gets and sets the property AwsAccountId.
/// <para>
/// The ID of the AWS account that contains the template that you're updating.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=12, Max=12)]
public string AwsAccountId
{
get { return this._awsAccountId; }
set { this._awsAccountId = value; }
}
// Check to see if AwsAccountId property is set
internal bool IsSetAwsAccountId()
{
return this._awsAccountId != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name for the template.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property SourceEntity.
/// <para>
/// The source QuickSight entity from which this template is being updated. You can currently
/// update templates from an Analysis or another template.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public TemplateSourceEntity SourceEntity
{
get { return this._sourceEntity; }
set { this._sourceEntity = value; }
}
// Check to see if SourceEntity property is set
internal bool IsSetSourceEntity()
{
return this._sourceEntity != null;
}
/// <summary>
/// Gets and sets the property TemplateId.
/// <para>
/// The ID for the template.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=2048)]
public string TemplateId
{
get { return this._templateId; }
set { this._templateId = value; }
}
// Check to see if TemplateId property is set
internal bool IsSetTemplateId()
{
return this._templateId != null;
}
/// <summary>
/// Gets and sets the property VersionDescription.
/// <para>
/// A description of the current template version that is being updated. Every time you
/// call <code>UpdateTemplate</code>, you create a new version of the template. Each version
/// of the template maintains a description of the version in the <code>VersionDescription</code>
/// field.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=512)]
public string VersionDescription
{
get { return this._versionDescription; }
set { this._versionDescription = value; }
}
// Check to see if VersionDescription property is set
internal bool IsSetVersionDescription()
{
return this._versionDescription != null;
}
}
} | 31.832168 | 108 | 0.5971 | [
"Apache-2.0"
] | Melvinerall/aws-sdk-net | sdk/src/Services/QuickSight/Generated/Model/UpdateTemplateRequest.cs | 4,552 | C# |
using System;
namespace Microsoft.PowerShell.EditorServices.Extensions
{
/// <summary>
/// Provides an attribute that can be used to target PowerShell
/// commands for import as editor commands.
/// </summary>
[AttributeUsage(AttributeTargets.Class)]
public sealed class EditorCommandAttribute : Attribute
{
#region Properties
/// <summary>
/// Gets or sets the name which uniquely identifies the command.
/// </summary>
public string Name { get; set; }
/// <summary>
/// Gets or sets the display name for the command.
/// </summary>
public string DisplayName { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this command's output
/// should be suppressed.
/// </summary>
public bool SuppressOutput { get; set; }
#endregion
}
}
| 26.735294 | 73 | 0.60176 | [
"MIT"
] | APA2527/PowerShellEditorServices | src/PowerShellEditorServices/Extensions/EditorCommandAttribute.cs | 909 | C# |
using System;
using System.Security;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using TestLibrary;
namespace PInvokeTests
{
[StructLayout(LayoutKind.Sequential)]
public class SeqClass
{
public int a;
public bool b;
public string str;
public SeqClass(int _a, bool _b, string _str)
{
a = _a;
b = _b;
str = String.Concat(_str, "");
}
}
[StructLayout(LayoutKind.Explicit)]
public class ExpClass
{
[FieldOffset(0)]
public DialogResult type;
[FieldOffset(8)]
public int i;
[FieldOffset(8)]
public bool b;
[FieldOffset(8)]
public double c;
public ExpClass(DialogResult t, int num)
{
type = t;
b = false;
c = num;
i = num;
}
public ExpClass(DialogResult t, double dnum)
{
type = t;
b = false;
i = 0;
c = dnum;
}
public ExpClass(DialogResult t, bool bnum)
{
type = t;
i = 0;
c = 0;
b = bnum;
}
}
public enum DialogResult
{
None = 0,
OK = 1,
Cancel = 2
}
[StructLayout(LayoutKind.Sequential)]
public class Blittable
{
public int a;
public Blittable(int _a)
{
a = _a;
}
}
public struct NestedLayout
{
public SeqClass value;
}
class StructureTests
{
[DllImport("LayoutClassNative")]
private static extern bool SimpleSeqLayoutClassByRef(SeqClass p);
[DllImport("LayoutClassNative")]
private static extern bool SimpleExpLayoutClassByRef(ExpClass p);
[DllImport("LayoutClassNative")]
private static extern bool SimpleNestedLayoutClassByValue(NestedLayout p);
[DllImport("LayoutClassNative")]
private static extern bool SimpleBlittableSeqLayoutClassByRef(Blittable p);
public static bool SequentialClass()
{
string s = "before";
bool retval = true;
SeqClass p = new SeqClass(0, false, s);
TestFramework.BeginScenario("Test #1 Pass a sequential layout class.");
try
{
retval = SimpleSeqLayoutClassByRef(p);
if (retval == false)
{
TestFramework.LogError("01", "PInvokeTests->SequentialClass : Unexpected error occured on unmanaged side");
return false;
}
}
catch (Exception e)
{
TestFramework.LogError("04", "Unexpected exception: " + e.ToString());
retval = false;
}
return retval;
}
public static bool ExplicitClass()
{
ExpClass p;
bool retval = false;
TestFramework.BeginScenario("Test #2 Pass an explicit layout class.");
try
{
p = new ExpClass(DialogResult.None, 10);
retval = SimpleExpLayoutClassByRef(p);
if (retval == false)
{
TestFramework.LogError("01", "PInvokeTests->ExplicitClass : Unexpected error occured on unmanaged side");
return false;
}
}
catch (Exception e)
{
TestFramework.LogError("03", "Unexpected exception: " + e.ToString());
retval = false;
}
return retval;
}
public static bool BlittableClass()
{
bool retval = true;
Blittable p = new Blittable(10);
TestFramework.BeginScenario("Test #3 Pass a blittable sequential layout class.");
try
{
retval = SimpleBlittableSeqLayoutClassByRef(p);
if (retval == false)
{
TestFramework.LogError("01", "PInvokeTests->Blittable : Unexpected error occured on unmanaged side");
return false;
}
}
catch (Exception e)
{
TestFramework.LogError("04", "Unexpected exception: " + e.ToString());
retval = false;
}
return retval;
}
public static bool NestedLayoutClass()
{
string s = "before";
bool retval = true;
SeqClass p = new SeqClass(0, false, s);
NestedLayout target = new NestedLayout
{
value = p
};
TestFramework.BeginScenario("Test #4 Nested sequential layout class in a structure.");
try
{
retval = SimpleNestedLayoutClassByValue(target);
if (retval == false)
{
TestFramework.LogError("01", "PInvokeTests->NestedLayoutClass : Unexpected error occured on unmanaged side");
return false;
}
}
catch (Exception e)
{
TestFramework.LogError("04", "Unexpected exception: " + e.ToString());
retval = false;
}
return retval;
}
public static int Main(string[] argv)
{
bool retVal = true;
retVal = retVal && SequentialClass();
retVal = retVal && ExplicitClass();
retVal = retVal && BlittableClass();
retVal = retVal && NestedLayoutClass();
return (retVal ? 100 : 101);
}
}
}
| 25.47807 | 129 | 0.493544 | [
"MIT"
] | 3F/coreclr | tests/src/Interop/LayoutClass/LayoutClassTest.cs | 5,809 | C# |
using System.Collections.Generic;
using System.Linq;
using VisioAutomation.Extensions;
using IVisio = Microsoft.Office.Interop.Visio;
using VA = VisioAutomation;
namespace VisioAutomation.Scripting.Commands
{
public class LayerCommands : CommandSet
{
public LayerCommands(Client client) :
base(client)
{
}
public IVisio.Layer Get(string layername)
{
this.AssertApplicationAvailable();
this.AssertDocumentAvailable();
if (layername == null)
{
throw new System.ArgumentNullException("layername");
}
if (layername.Length < 1)
{
throw new System.ArgumentException("layername");
}
var application = this.Client.VisioApplication;
var page = application.ActivePage;
IVisio.Layer layer = null;
try
{
this.Client.WriteVerbose("Trying to find Layer named \"{0}\"",layername);
var layers = page.Layers;
layer = layers.ItemU[layername];
}
catch (System.Runtime.InteropServices.COMException)
{
string msg = string.Format("No such layer \"{0}\"", layername);
throw new VA.Scripting.ScriptingException(msg);
}
return layer;
}
public IList<IVisio.Layer> Get()
{
this.AssertApplicationAvailable();
this.AssertDocumentAvailable();
var application = this.Client.VisioApplication;
var page = application.ActivePage;
return page.Layers.AsEnumerable().ToList();
}
}
} | 29.440678 | 89 | 0.558434 | [
"MIT"
] | saveenr/VisioAutomation2007 | VisioAutomation_2007/VisioAutomation.Scripting/Commands/LayerCommands.cs | 1,737 | C# |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Linq;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Microsoft.Jupyter.Core;
using Microsoft.Quantum.IQSharp.Common;
using Microsoft.Quantum.IQSharp.Jupyter;
using Microsoft.Extensions.DependencyInjection;
using System.Diagnostics;
using System.Collections.Generic;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Converters;
using Microsoft.Jupyter.Core.Protocol;
using Newtonsoft.Json;
using System.Threading.Tasks;
using System.Collections.Immutable;
using Microsoft.Quantum.IQSharp.AzureClient;
namespace Microsoft.Quantum.IQSharp.Kernel
{
/// <summary>
/// The IQsharpEngine, used to expose Q# as a Jupyter kernel.
/// </summary>
public class IQSharpEngine : BaseEngine
{
private readonly PerformanceMonitor performanceMonitor;
/// <summary>
/// The main constructor. It expects an `ISnippets` instance that takes care
/// of compiling and keeping track of the code Snippets provided by users.
/// </summary>
public IQSharpEngine(
IShellServer shell,
IOptions<KernelContext> context,
ILogger<IQSharpEngine> logger,
IServiceProvider services,
IConfigurationSource configurationSource,
PerformanceMonitor performanceMonitor,
IShellRouter shellRouter,
IEventService eventService,
IMagicSymbolResolver magicSymbolResolver,
IReferences references
) : base(shell, shellRouter, context, logger, services)
{
this.performanceMonitor = performanceMonitor;
performanceMonitor.Start();
this.Snippets = services.GetService<ISnippets>();
this.SymbolsResolver = services.GetService<ISymbolResolver>();
this.MagicResolver = magicSymbolResolver;
RegisterDisplayEncoder(new IQSharpSymbolToHtmlResultEncoder());
RegisterDisplayEncoder(new IQSharpSymbolToTextResultEncoder());
RegisterDisplayEncoder(new TaskStatusToTextEncoder());
RegisterDisplayEncoder(new StateVectorToHtmlResultEncoder(configurationSource));
RegisterDisplayEncoder(new StateVectorToTextResultEncoder(configurationSource));
RegisterDisplayEncoder(new DataTableToHtmlEncoder());
RegisterDisplayEncoder(new DataTableToTextEncoder());
RegisterDisplayEncoder(new DisplayableExceptionToHtmlEncoder());
RegisterDisplayEncoder(new DisplayableExceptionToTextEncoder());
RegisterDisplayEncoder(new DisplayableHtmlElementEncoder());
RegisterJsonEncoder(
JsonConverters.AllConverters
.Concat(AzureClient.JsonConverters.AllConverters)
.ToArray());
RegisterSymbolResolver(this.SymbolsResolver);
RegisterSymbolResolver(this.MagicResolver);
RegisterPackageLoadedEvent(services, logger, references);
// Handle new shell messages.
shellRouter.RegisterHandlers<IQSharpEngine>();
// Report performance after completing startup.
performanceMonitor.Report();
logger.LogInformation(
"IQ# engine started successfully as process {Process}.",
Process.GetCurrentProcess().Id
);
eventService?.TriggerServiceInitialized<IExecutionEngine>(this);
}
/// <summary>
/// Registers an event handler that searches newly loaded packages
/// for extensions to this engine (in particular, for result encoders).
/// </summary>
private void RegisterPackageLoadedEvent(IServiceProvider services, ILogger logger, IReferences references)
{
var knownAssemblies = references
.Assemblies
.Select(asm => asm.Assembly.GetName())
.ToImmutableHashSet()
// Except assemblies known at compile-time as well.
.Add(typeof(StateVectorToHtmlResultEncoder).Assembly.GetName())
.Add(typeof(AzureClientErrorToHtmlEncoder).Assembly.GetName());
foreach (var knownAssembly in knownAssemblies) logger.LogDebug("Loaded known assembly {Name}", knownAssembly.FullName);
// Register new display encoders when packages load.
references.PackageLoaded += (sender, args) =>
{
logger.LogDebug("Scanning for display encoders after loading {Package}.", args.PackageId);
foreach (var assembly in references.Assemblies
.Select(asm => asm.Assembly)
.Where(asm => !knownAssemblies.Contains(asm.GetName()))
)
{
// Look for display encoders in the new assembly.
logger.LogDebug("Found new assembly {Name}, looking for display encoders.", assembly.FullName);
// If types from an assembly cannot be loaded, log a warning and continue.
var relevantTypes = Enumerable.Empty<Type>();
try
{
relevantTypes = assembly
.GetTypes()
.Where(type =>
!type.IsAbstract &&
!type.IsInterface &&
typeof(IResultEncoder).IsAssignableFrom(type)
);
}
catch (Exception ex)
{
logger.LogWarning(
ex,
"Encountered exception loading types from {AssemblyName}.",
assembly.FullName
);
continue;
}
foreach (var type in relevantTypes)
{
logger.LogDebug(
"Found display encoder {TypeName} in {AssemblyName}; registering.",
type.FullName,
assembly.FullName
);
// Try and instantiate the new result encoder, but if it fails, that is likely
// a non-critical failure that should result in a warning.
try
{
RegisterDisplayEncoder(ActivatorUtilities.CreateInstance(services, type) as IResultEncoder);
}
catch (Exception ex)
{
logger.LogWarning(
ex,
"Encountered exception loading result encoder {TypeName} from {AssemblyName}.",
type.FullName, assembly.FullName
);
}
}
knownAssemblies = knownAssemblies.Add(assembly.GetName());
}
};
}
internal ISnippets Snippets { get; }
internal ISymbolResolver SymbolsResolver { get; }
internal ISymbolResolver MagicResolver { get; }
/// <summary>
/// This is the method used to execute Jupyter "normal" cells. In this case, a normal
/// cell is expected to have a Q# snippet, which gets compiled and we return the name of
/// the operations found. These operations are then available for simulation and estimate.
/// </summary>
public override async Task<ExecutionResult> ExecuteMundane(string input, IChannel channel)
{
channel = channel.WithNewLines();
return await Task.Run(() =>
{
try
{
var code = Snippets.Compile(input);
foreach (var m in code.warnings) { channel.Stdout(m); }
// Gets the names of all the operations found for this snippet
var opsNames =
code.Elements?
.Where(e => e.IsQsCallable)
.Select(e => e.ToFullName().WithoutNamespace(IQSharp.Snippets.SNIPPETS_NAMESPACE))
.ToArray();
return opsNames.ToExecutionResult();
}
catch (CompilationErrorsException c)
{
foreach (var m in c.Errors) channel.Stderr(m);
return ExecuteStatus.Error.ToExecutionResult();
}
catch (Exception e)
{
Logger.LogWarning(e, "Exception while executing mundane input: {Input}", input);
channel.Stderr(e.Message);
return ExecuteStatus.Error.ToExecutionResult();
}
finally
{
performanceMonitor.Report();
}
});
}
}
}
| 42.0181 | 131 | 0.554598 | [
"MIT"
] | vxfield/iqsharp | src/Kernel/IQSharpEngine.cs | 9,288 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Reflection;
namespace UnofficialCrusaderPatch
{
public class AIVEdit : ChangeEdit
{
string resourceFolder;
public string ResourceFolder => resourceFolder;
public AIVEdit(string resourceFolder)
{
this.resourceFolder = "UnofficialCrusaderPatch." + resourceFolder;
}
public override bool Initialize(ChangeArgs args) => true;
public override void Activate(ChangeArgs args)
{
var aivDir = args.AIVDir;
// create backup
string backupDir = Path.Combine(args.AIVDir.FullName, Patcher.BackupIdent);
Directory.CreateDirectory(backupDir);
foreach (FileInfo fi in aivDir.EnumerateFiles("*.aiv"))
fi.CopyTo(Path.Combine(backupDir, fi.Name));
// copy aiv castles
Assembly asm = Assembly.GetExecutingAssembly();
foreach (string res in asm.GetManifestResourceNames())
{
if (res.StartsWith(resourceFolder, StringComparison.OrdinalIgnoreCase))
{
string path = Path.Combine(aivDir.FullName, res.Substring(resourceFolder.Length + 1));
using (Stream stream = asm.GetManifestResourceStream(res))
using (FileStream fs = new FileStream(path, FileMode.Create, FileAccess.Write, FileShare.Read))
{
stream.CopyTo(fs);
}
}
}
}
public static DefaultHeader Header(string resourceFolder, bool isEnabled)
{
string ident = "aiv_" + resourceFolder;
return new DefaultHeader(ident, isEnabled)
{
new AIVEdit(resourceFolder),
};
}
}
}
| 32.457627 | 115 | 0.584334 | [
"MIT"
] | Lutel05/UnofficialCrusaderPatch | UnofficialCrusaderPatch/Patching/EditTypes/AIVEdit.cs | 1,917 | C# |
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from um/winternl.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
namespace TerraFX.Interop.Windows;
/// <include file='PUBLIC_OBJECT_BASIC_INFORMATION.xml' path='doc/member[@name="PUBLIC_OBJECT_BASIC_INFORMATION"]/*' />
public unsafe partial struct PUBLIC_OBJECT_BASIC_INFORMATION
{
/// <include file='PUBLIC_OBJECT_BASIC_INFORMATION.xml' path='doc/member[@name="PUBLIC_OBJECT_BASIC_INFORMATION.Attributes"]/*' />
[NativeTypeName("ULONG")]
public uint Attributes;
/// <include file='PUBLIC_OBJECT_BASIC_INFORMATION.xml' path='doc/member[@name="PUBLIC_OBJECT_BASIC_INFORMATION.GrantedAccess"]/*' />
[NativeTypeName("ACCESS_MASK")]
public uint GrantedAccess;
/// <include file='PUBLIC_OBJECT_BASIC_INFORMATION.xml' path='doc/member[@name="PUBLIC_OBJECT_BASIC_INFORMATION.HandleCount"]/*' />
[NativeTypeName("ULONG")]
public uint HandleCount;
/// <include file='PUBLIC_OBJECT_BASIC_INFORMATION.xml' path='doc/member[@name="PUBLIC_OBJECT_BASIC_INFORMATION.PointerCount"]/*' />
[NativeTypeName("ULONG")]
public uint PointerCount;
/// <include file='PUBLIC_OBJECT_BASIC_INFORMATION.xml' path='doc/member[@name="PUBLIC_OBJECT_BASIC_INFORMATION.Reserved"]/*' />
[NativeTypeName("ULONG [10]")]
public fixed uint Reserved[10];
}
| 48.580645 | 145 | 0.752324 | [
"MIT"
] | IngmarBitter/terrafx.interop.windows | sources/Interop/Windows/Windows/um/winternl/PUBLIC_OBJECT_BASIC_INFORMATION.cs | 1,508 | C# |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.AzureNative.HybridCompute.V20210325Preview
{
/// <summary>
/// A private endpoint connection
/// </summary>
[AzureNativeResourceType("azure-native:hybridcompute/v20210325preview:PrivateEndpointConnection")]
public partial class PrivateEndpointConnection : Pulumi.CustomResource
{
/// <summary>
/// The name of the resource
/// </summary>
[Output("name")]
public Output<string> Name { get; private set; } = null!;
/// <summary>
/// Resource properties.
/// </summary>
[Output("properties")]
public Output<Outputs.PrivateEndpointConnectionPropertiesResponse> Properties { get; private set; } = null!;
/// <summary>
/// The system meta data relating to this resource.
/// </summary>
[Output("systemData")]
public Output<Outputs.SystemDataResponse> SystemData { get; private set; } = null!;
/// <summary>
/// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
/// </summary>
[Output("type")]
public Output<string> Type { get; private set; } = null!;
/// <summary>
/// Create a PrivateEndpointConnection resource with the given unique name, arguments, and options.
/// </summary>
///
/// <param name="name">The unique name of the resource</param>
/// <param name="args">The arguments used to populate this resource's properties</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public PrivateEndpointConnection(string name, PrivateEndpointConnectionArgs args, CustomResourceOptions? options = null)
: base("azure-native:hybridcompute/v20210325preview:PrivateEndpointConnection", name, args ?? new PrivateEndpointConnectionArgs(), MakeResourceOptions(options, ""))
{
}
private PrivateEndpointConnection(string name, Input<string> id, CustomResourceOptions? options = null)
: base("azure-native:hybridcompute/v20210325preview:PrivateEndpointConnection", name, null, MakeResourceOptions(options, id))
{
}
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
{
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
Aliases =
{
new Pulumi.Alias { Type = "azure-nextgen:hybridcompute/v20210325preview:PrivateEndpointConnection"},
new Pulumi.Alias { Type = "azure-native:hybridcompute:PrivateEndpointConnection"},
new Pulumi.Alias { Type = "azure-nextgen:hybridcompute:PrivateEndpointConnection"},
new Pulumi.Alias { Type = "azure-native:hybridcompute/v20200815preview:PrivateEndpointConnection"},
new Pulumi.Alias { Type = "azure-nextgen:hybridcompute/v20200815preview:PrivateEndpointConnection"},
new Pulumi.Alias { Type = "azure-native:hybridcompute/v20210128preview:PrivateEndpointConnection"},
new Pulumi.Alias { Type = "azure-nextgen:hybridcompute/v20210128preview:PrivateEndpointConnection"},
},
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
merged.Id = id ?? merged.Id;
return merged;
}
/// <summary>
/// Get an existing PrivateEndpointConnection resource's state with the given name, ID, and optional extra
/// properties used to qualify the lookup.
/// </summary>
///
/// <param name="name">The unique name of the resulting resource.</param>
/// <param name="id">The unique provider ID of the resource to lookup.</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public static PrivateEndpointConnection Get(string name, Input<string> id, CustomResourceOptions? options = null)
{
return new PrivateEndpointConnection(name, id, options);
}
}
public sealed class PrivateEndpointConnectionArgs : Pulumi.ResourceArgs
{
/// <summary>
/// The name of the private endpoint connection.
/// </summary>
[Input("privateEndpointConnectionName")]
public Input<string>? PrivateEndpointConnectionName { get; set; }
/// <summary>
/// Resource properties.
/// </summary>
[Input("properties")]
public Input<Inputs.PrivateEndpointConnectionPropertiesArgs>? Properties { get; set; }
/// <summary>
/// The name of the resource group. The name is case insensitive.
/// </summary>
[Input("resourceGroupName", required: true)]
public Input<string> ResourceGroupName { get; set; } = null!;
/// <summary>
/// The name of the Azure Arc PrivateLinkScope resource.
/// </summary>
[Input("scopeName", required: true)]
public Input<string> ScopeName { get; set; } = null!;
public PrivateEndpointConnectionArgs()
{
}
}
}
| 45.015873 | 176 | 0.636812 | [
"Apache-2.0"
] | sebtelko/pulumi-azure-native | sdk/dotnet/HybridCompute/V20210325Preview/PrivateEndpointConnection.cs | 5,672 | C# |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
// <auto-generated/>
// Template Source: MethodRequestBuilder.cs.tt
namespace Microsoft.Graph
{
using System;
using System.Collections.Generic;
using System.IO;
/// <summary>
/// The type CallRejectRequestBuilder.
/// </summary>
public partial class CallRejectRequestBuilder : BaseActionMethodRequestBuilder<ICallRejectRequest>, ICallRejectRequestBuilder
{
/// <summary>
/// Constructs a new <see cref="CallRejectRequestBuilder"/>.
/// </summary>
/// <param name="requestUrl">The URL for the request.</param>
/// <param name="client">The <see cref="IBaseClient"/> for handling requests.</param>
/// <param name="reason">A reason parameter for the OData method call.</param>
/// <param name="callbackUri">A callbackUri parameter for the OData method call.</param>
public CallRejectRequestBuilder(
string requestUrl,
IBaseClient client,
RejectReason? reason,
string callbackUri)
: base(requestUrl, client)
{
this.SetParameter("reason", reason, true);
this.SetParameter("callbackUri", callbackUri, true);
}
/// <summary>
/// A method used by the base class to construct a request class instance.
/// </summary>
/// <param name="functionUrl">The request URL to </param>
/// <param name="options">The query and header options for the request.</param>
/// <returns>An instance of a specific request class.</returns>
protected override ICallRejectRequest CreateRequest(string functionUrl, IEnumerable<Option> options)
{
var request = new CallRejectRequest(functionUrl, this.Client, options);
if (this.HasParameter("reason"))
{
request.RequestBody.Reason = this.GetParameter<RejectReason?>("reason");
}
if (this.HasParameter("callbackUri"))
{
request.RequestBody.CallbackUri = this.GetParameter<string>("callbackUri");
}
return request;
}
}
}
| 40.380952 | 153 | 0.587657 | [
"MIT"
] | Aliases/msgraph-sdk-dotnet | src/Microsoft.Graph/Generated/requests/CallRejectRequestBuilder.cs | 2,544 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TestClasses;
using System.Diagnostics;
namespace NewtonSoftTest
{
public class TestNewtonSoft
{
public static string SerializeData(List<Human> People)
{
Stopwatch stopWatch = new Stopwatch();
stopWatch.Start();
string data = Newtonsoft.Json.JsonConvert.SerializeObject(People, Newtonsoft.Json.Formatting.Indented);
stopWatch.Stop();
// Get the elapsed time as a TimeSpan value.
TimeSpan ts = stopWatch.Elapsed;
// Format and display the TimeSpan value.
string elapsedTime = String.Format("{0:00}:{1:00}:{2:00}.{3:00}", ts.Hours, ts.Minutes, ts.Seconds, ts.Milliseconds / 10);
Console.WriteLine("NewtonSoft RunTime " + elapsedTime);
return data;
}
}
}
| 26.8 | 134 | 0.638593 | [
"MIT"
] | Crashnorun/Coding_Sketchbook_dotNet | dotNet/JSON_Comparison/NewtonSoftTest/TestNewtonSoft.cs | 940 | C# |
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection.PortableExecutable;
using System.Reflection.Metadata;
namespace Microsoft.Framework.Project
{
public class AssemblyInformation
{
public static readonly IEqualityComparer<AssemblyInformation> NameComparer = new AssemblyNameComparer();
public AssemblyInformation(string path, string processorArchitecture)
{
path = Path.GetFullPath(path);
Name = Path.GetFileNameWithoutExtension(path);
AssemblyPath = path;
ProcessorArchitecture = processorArchitecture;
}
public bool IsRuntimeAssembly { get; set; }
public string Name { get; private set; }
public string AssemblyPath { get; private set; }
public string ProcessorArchitecture { get; private set; }
public string NativeImageDirectory
{
get
{
var assemblyDirectory = Path.GetDirectoryName(AssemblyPath);
if (IsRuntimeAssembly)
{
return assemblyDirectory;
}
return Path.Combine(assemblyDirectory, ProcessorArchitecture);
}
}
public string NativeImagePath
{
get
{
return Path.Combine(NativeImageDirectory, Name + ".ni.dll");
}
}
public string NativePdbPath
{
get
{
return Path.Combine(NativeImageDirectory, Name + ".ni.pdb");
}
}
public IEnumerable<AssemblyInformation> Closure { get; set; }
public bool Generated { get; set; }
public ICollection<string> GetDependencies()
{
var dependencies = new HashSet<string>();
using (var stream = File.OpenRead(AssemblyPath))
{
var peReader = new PEReader(stream);
var reader = peReader.GetMetadataReader();
foreach (var a in reader.AssemblyReferences)
{
var reference = reader.GetAssemblyReference(a);
var referenceName = reader.GetString(reference.Name);
dependencies.Add(referenceName);
}
}
return dependencies;
}
public static bool IsValidImage(string path)
{
// Skip native images
if (path.EndsWith(".ni.dll", StringComparison.OrdinalIgnoreCase))
{
return false;
}
using (var stream = File.OpenRead(path))
{
var peReader = new PEReader(stream);
return peReader.HasMetadata;
}
}
public override bool Equals(object obj)
{
return ((AssemblyInformation)obj).AssemblyPath.Equals(AssemblyPath, StringComparison.OrdinalIgnoreCase);
}
public override int GetHashCode()
{
return AssemblyPath.GetHashCode();
}
public override string ToString()
{
return Name;
}
private class AssemblyNameComparer : IEqualityComparer<AssemblyInformation>
{
public bool Equals(AssemblyInformation x, AssemblyInformation y)
{
return x.Name.Equals(y.Name, StringComparison.OrdinalIgnoreCase);
}
public int GetHashCode(AssemblyInformation obj)
{
return obj.Name.ToLowerInvariant().GetHashCode();
}
}
}
}
| 28.641791 | 116 | 0.565138 | [
"Apache-2.0"
] | virajs/KRuntime | src/Microsoft.Framework.Project/AssemblyInformation.cs | 3,838 | C# |
using System;
using System.IO;
using JetBrains.Annotations;
namespace Testosterone {
// Class used to count bytes read-from/written-to non-seekable streams.
internal class LoggingStream : Stream {
public event EventHandler<DataTransferEventArgs> DataRead;
public event EventHandler<DataTransferEventArgs> DataWritten;
public event EventHandler<DataRequestedEventArgs> ReadRequested;
public event EventHandler<DataTransferEventArgs> WriteRequested;
readonly Stream baseStream;
// These are necessary to avoid counting bytes twice if ReadByte/WriteByte call Read/Write internally.
bool readingOneByte, writingOneByte;
// These are necessary to avoid counting bytes twice if Read/Write call ReadByte/WriteByte internally.
bool readingManyBytes, writingManyBytes;
public LoggingStream([NotNull] Stream stream) {
if (stream == null) throw new ArgumentNullException("stream");
baseStream = stream;
}
public override void Flush() {
baseStream.Flush();
}
public override long Seek(long offset, SeekOrigin origin) {
return baseStream.Seek(offset, origin);
}
public override void SetLength(long value) {
baseStream.SetLength(value);
}
public override int Read(byte[] buffer, int offset, int count) {
readingManyBytes = true;
int bytesActuallyRead;
if (readingOneByte) {
// This is WriteByte backed by Read: don't raise events
bytesActuallyRead = baseStream.Read(buffer, offset, count);
} else {
// Not a single-read op. Raise ReadRequested/DataRead events!
ReadRequested.Raise(this, new DataRequestedEventArgs(count));
bytesActuallyRead = baseStream.Read(buffer, offset, count);
BytesRead += bytesActuallyRead;
byte[] readData = new byte[bytesActuallyRead];
Buffer.BlockCopy(buffer, offset, readData, 0, bytesActuallyRead);
DataRead.Raise(this, new DataTransferEventArgs(readData));
}
readingManyBytes = false;
return bytesActuallyRead;
}
public override void Write(byte[] buffer, int offset, int count) {
writingManyBytes = true;
if (writingOneByte) {
// This is WriteByte backed by Write: don't raise events
baseStream.Write(buffer, offset, count);
} else {
// Not a single-write op. Raise WriteRequested/DataWritten events!
byte[] dataToWrite = new byte[count];
Buffer.BlockCopy(buffer, offset, dataToWrite, 0, count);
WriteRequested.Raise(this, new DataTransferEventArgs(dataToWrite));
baseStream.Write(buffer, offset, count);
BytesWritten += count;
DataWritten.Raise(this, new DataTransferEventArgs(dataToWrite));
}
writingManyBytes = false;
}
public override int ReadByte() {
// Raise ReadRequested event, unless this is part of a multi-byte read op
if (!readingManyBytes) {
ReadRequested.Raise(this, new DataRequestedEventArgs(1));
}
readingOneByte = true;
int value = base.ReadByte();
readingOneByte = false;
// Raise DataRead event, unless this is part of a multi-byte read op
if (!readingManyBytes) {
byte[] readData;
if (value >= 0) {
readData = new[] { (byte)value };
BytesRead++;
} else {
// a 0-byte read op indicates end-of-stream
readData = new byte[0];
}
DataRead.Raise(this, new DataTransferEventArgs(readData));
}
return value;
}
public override void WriteByte(byte value) {
if (!writingManyBytes) {
WriteRequested.Raise(this, new DataTransferEventArgs(new[] { value }));
}
writingOneByte = true;
base.WriteByte(value);
writingOneByte = false;
if (!writingManyBytes) {
BytesWritten++;
DataWritten.Raise(this, new DataTransferEventArgs(new[] { value }));
}
}
public override bool CanRead {
get { return baseStream.CanRead; }
}
public override bool CanSeek {
get { return baseStream.CanSeek; }
}
public override bool CanWrite {
get { return baseStream.CanWrite; }
}
public override long Length {
get { return baseStream.Length; }
}
public override long Position {
get { return baseStream.Position; }
set { baseStream.Position = value; }
}
public long BytesRead { get; private set; }
public long BytesWritten { get; private set; }
}
internal class DataTransferEventArgs : EventArgs {
public DataTransferEventArgs(byte[] data) {
Data = data;
}
public byte[] Data { get; private set; }
}
internal class DataRequestedEventArgs : EventArgs {
public DataRequestedEventArgs(int bytesRequested) {
BytesRequested = bytesRequested;
}
public int BytesRequested { get; private set; }
}
}
| 32.462428 | 110 | 0.577635 | [
"BSD-3-Clause"
] | MCClassicServerArchive/Testosterone | Testosterone/Networking/LoggingStream.cs | 5,618 | C# |
using System;
using System.Collections;
using JetBrains.Annotations;
namespace Adnc.Infra.Common.Extensions
{
public static class ArrayExtension
{
/// <summary>
/// An Array extension method that clears the array.
/// </summary>
/// <param name="this">The @this to act on.</param>
public static void ClearAll([NotNull] this Array @this)
{
Array.Clear(@this, 0, @this.Length);
}
/// <summary>
/// Searches an entire one-dimensional sorted for a specific element, using the interface implemented by each
/// element of the and by the specified object.
/// </summary>
/// <param name="array">The sorted one-dimensional to search.</param>
/// <param name="value">The object to search for.</param>
/// <returns>
/// The index of the specified in the specified , if is found. If is not found and is less than one or more
/// elements in , a negative number which is the bitwise complement of the index of the first element that is
/// larger than . If is not found and is greater than any of the elements in , a negative number which is the
/// bitwise complement of (the index of the last element plus 1).
/// </returns>
public static int BinarySearch([NotNull] this Array array, object value)
{
return Array.BinarySearch(array, value);
}
/// <summary>
/// Searches a range of elements in a one-dimensional sorted for a value, using the interface implemented by
/// each element of the and by the specified value.
/// </summary>
/// <param name="array">The sorted one-dimensional to search.</param>
/// <param name="index">The starting index of the range to search.</param>
/// <param name="length">The length of the range to search.</param>
/// <param name="value">The object to search for.</param>
/// <returns>
/// The index of the specified in the specified , if is found. If is not found and is less than one or more
/// elements in , a negative number which is the bitwise complement of the index of the first element that is
/// larger than . If is not found and is greater than any of the elements in , a negative number which is the
/// bitwise complement of (the index of the last element plus 1).
/// </returns>
public static int BinarySearch([NotNull] this Array array, int index, int length, object value)
{
return Array.BinarySearch(array, index, length, value);
}
/// <summary>
/// Searches an entire one-dimensional sorted for a value using the specified interface.
/// </summary>
/// <param name="array">The sorted one-dimensional to search.</param>
/// <param name="value">The object to search for.</param>
/// <param name="comparer">
/// The implementation to use when comparing elements.-or- null to use the implementation
/// of each element.
/// </param>
/// <returns>
/// The index of the specified in the specified , if is found. If is not found and is less than one or more
/// elements in , a negative number which is the bitwise complement of the index of the first element that is
/// larger than . If is not found and is greater than any of the elements in , a negative number which is the
/// bitwise complement of (the index of the last element plus 1).
/// </returns>
public static int BinarySearch([NotNull] this Array array, object value, IComparer comparer)
{
return Array.BinarySearch(array, value, comparer);
}
/// <summary>
/// Searches a range of elements in a one-dimensional sorted for a value, using the specified interface.
/// </summary>
/// <param name="array">The sorted one-dimensional to search.</param>
/// <param name="index">The starting index of the range to search.</param>
/// <param name="length">The length of the range to search.</param>
/// <param name="value">The object to search for.</param>
/// <param name="comparer">
/// The implementation to use when comparing elements.-or- null to use the implementation
/// of each element.
/// </param>
/// <returns>
/// The index of the specified in the specified , if is found. If is not found and is less than one or more
/// elements in , a negative number which is the bitwise complement of the index of the first element that is
/// larger than . If is not found and is greater than any of the elements in , a negative number which is the
/// bitwise complement of (the index of the last element plus 1).
/// </returns>
public static int BinarySearch([NotNull] this Array array, int index, int length, object value, IComparer comparer)
{
return Array.BinarySearch(array, index, length, value, comparer);
}
/// <summary>
/// Sets a range of elements in the to zero, to false, or to null, depending on the element type.
/// </summary>
/// <param name="array">The whose elements need to be cleared.</param>
/// <param name="index">The starting index of the range of elements to clear.</param>
/// <param name="length">The number of elements to clear.</param>
public static void Clear([NotNull] this Array array, int index, int length)
{
Array.Clear(array, index, length);
}
/// <summary>
/// Copies a range of elements from an starting at the first element and pastes them into another starting at
/// the first element. The length is specified as a 32-bit integer.
/// </summary>
/// <param name="sourceArray">The that contains the data to copy.</param>
/// <param name="destinationArray">The that receives the data.</param>
/// <param name="length">A 32-bit integer that represents the number of elements to copy.</param>
public static void Copy([NotNull] this Array sourceArray, Array destinationArray, int length)
{
Array.Copy(sourceArray, destinationArray, length);
}
/// <summary>
/// Copies a range of elements from an starting at the specified source index and pastes them to another
/// starting at the specified destination index. The length and the indexes are specified as 32-bit integers.
/// </summary>
/// <param name="sourceArray">The that contains the data to copy.</param>
/// <param name="sourceIndex">A 32-bit integer that represents the index in the at which copying begins.</param>
/// <param name="destinationArray">The that receives the data.</param>
/// <param name="destinationIndex">A 32-bit integer that represents the index in the at which storing begins.</param>
/// <param name="length">A 32-bit integer that represents the number of elements to copy.</param>
public static void Copy([NotNull] this Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length)
{
Array.Copy(sourceArray, sourceIndex, destinationArray, destinationIndex, length);
}
/// <summary>
/// Copies a range of elements from an starting at the first element and pastes them into another starting at
/// the first element. The length is specified as a 64-bit integer.
/// </summary>
/// <param name="sourceArray">The that contains the data to copy.</param>
/// <param name="destinationArray">The that receives the data.</param>
/// <param name="length">
/// A 64-bit integer that represents the number of elements to copy. The integer must be between
/// zero and , inclusive.
/// </param>
public static void Copy([NotNull] this Array sourceArray, Array destinationArray, long length)
{
Array.Copy(sourceArray, destinationArray, length);
}
/// <summary>
/// Copies a range of elements from an starting at the specified source index and pastes them to another
/// starting at the specified destination index. The length and the indexes are specified as 64-bit integers.
/// </summary>
/// <param name="sourceArray">The that contains the data to copy.</param>
/// <param name="sourceIndex">A 64-bit integer that represents the index in the at which copying begins.</param>
/// <param name="destinationArray">The that receives the data.</param>
/// <param name="destinationIndex">A 64-bit integer that represents the index in the at which storing begins.</param>
/// <param name="length">
/// A 64-bit integer that represents the number of elements to copy. The integer must be between
/// zero and , inclusive.
/// </param>
public static void Copy([NotNull] this Array sourceArray, long sourceIndex, Array destinationArray, long destinationIndex, long length)
{
Array.Copy(sourceArray, sourceIndex, destinationArray, destinationIndex, length);
}
/// <summary>
/// Searches for the specified object and returns the index of the first occurrence within the entire one-
/// dimensional .
/// </summary>
/// <param name="array">The one-dimensional to search.</param>
/// <param name="value">The object to locate in .</param>
/// <returns>
/// The index of the first occurrence of within the entire , if found; otherwise, the lower bound of the array
/// minus 1.
/// </returns>
public static int IndexOf([NotNull] this Array array, object value)
{
return Array.IndexOf(array, value);
}
/// <summary>
/// Searches for the specified object and returns the index of the first occurrence within the range of elements
/// in the one-dimensional that extends from the specified index to the last element.
/// </summary>
/// <param name="array">The one-dimensional to search.</param>
/// <param name="value">The object to locate in .</param>
/// <param name="startIndex">The starting index of the search. 0 (zero) is valid in an empty array.</param>
/// <returns>
/// The index of the first occurrence of within the range of elements in that extends from to the last element,
/// if found; otherwise, the lower bound of the array minus 1.
/// </returns>
public static int IndexOf([NotNull] this Array array, object value, int startIndex)
{
return Array.IndexOf(array, value, startIndex);
}
/// <summary>
/// Searches for the specified object and returns the index of the first occurrence within the range of elements
/// in the one-dimensional that starts at the specified index and contains the specified number of elements.
/// </summary>
/// <param name="array">The one-dimensional to search.</param>
/// <param name="value">The object to locate in .</param>
/// <param name="startIndex">The starting index of the search. 0 (zero) is valid in an empty array.</param>
/// <param name="count">The number of elements in the section to search.</param>
/// <returns>
/// The index of the first occurrence of within the range of elements in that starts at and contains the
/// number of elements specified in , if found; otherwise, the lower bound of the array minus 1.
/// </returns>
public static int IndexOf([NotNull] this Array array, object value, int startIndex, int count)
{
return Array.IndexOf(array, value, startIndex, count);
}
/// <summary>
/// Searches for the specified object and returns the index of the last occurrence within the entire one-
/// dimensional .
/// </summary>
/// <param name="array">The one-dimensional to search.</param>
/// <param name="value">The object to locate in .</param>
/// <returns>
/// The index of the last occurrence of within the entire , if found; otherwise, the lower bound of the array
/// minus 1.
/// </returns>
public static int LastIndexOf([NotNull] this Array array, object value)
{
return Array.LastIndexOf(array, value);
}
/// <summary>
/// Searches for the specified object and returns the index of the last occurrence within the range of elements
/// in the one-dimensional that extends from the first element to the specified index.
/// </summary>
/// <param name="array">The one-dimensional to search.</param>
/// <param name="value">The object to locate in .</param>
/// <param name="startIndex">The starting index of the backward search.</param>
/// <returns>
/// The index of the last occurrence of within the range of elements in that extends from the first element to ,
/// if found; otherwise, the lower bound of the array minus 1.
/// </returns>
public static int LastIndexOf([NotNull] this Array array, object value, int startIndex)
{
return Array.LastIndexOf(array, value, startIndex);
}
/// <summary>
/// Searches for the specified object and returns the index of the last occurrence within the range of elements
/// in the one-dimensional that contains the specified number of elements and ends at the specified index.
/// </summary>
/// <param name="array">The one-dimensional to search.</param>
/// <param name="value">The object to locate in .</param>
/// <param name="startIndex">The starting index of the backward search.</param>
/// <param name="count">The number of elements in the section to search.</param>
/// <returns>
/// The index of the last occurrence of within the range of elements in that contains the number of elements
/// specified in and ends at , if found; otherwise, the lower bound of the array minus 1.
/// </returns>
public static int LastIndexOf([NotNull] this Array array, object value, int startIndex, int count)
{
return Array.LastIndexOf(array, value, startIndex, count);
}
/// <summary>
/// Reverses the sequence of the elements in the entire one-dimensional .
/// </summary>
/// <param name="array">The one-dimensional to reverse.</param>
public static void Reverse([NotNull] this Array array)
{
Array.Reverse(array);
}
/// <summary>
/// Reverses the sequence of the elements in a range of elements in the one-dimensional .
/// </summary>
/// <param name="array">The one-dimensional to reverse.</param>
/// <param name="index">The starting index of the section to reverse.</param>
/// <param name="length">The number of elements in the section to reverse.</param>
public static void Reverse([NotNull] this Array array, int index, int length)
{
Array.Reverse(array, index, length);
}
/// <summary>
/// Sorts the elements in an entire one-dimensional using the implementation of each element of the .
/// </summary>
/// <param name="array">The one-dimensional to sort.</param>
public static void Sort([NotNull] this Array array)
{
Array.Sort(array);
}
/// <summary>
/// Sorts a pair of one-dimensional objects (one contains the keys and the other contains the corresponding
/// items) based on the keys in the first using the implementation of each key.
/// </summary>
/// <param name="array">The one-dimensional to sort.</param>
/// <param name="items">
/// The one-dimensional that contains the items that correspond to each of the keys in the .-or-
/// null to sort only the .
/// </param>
public static void Sort([NotNull] this Array array, Array items)
{
Array.Sort(array, items);
}
/// <summary>
/// Sorts the elements in a range of elements in a one-dimensional using the implementation of each element of
/// the .
/// </summary>
/// <param name="array">The one-dimensional to sort.</param>
/// <param name="index">The starting index of the range to sort.</param>
/// <param name="length">The number of elements in the range to sort.</param>
public static void Sort([NotNull] this Array array, int index, int length)
{
Array.Sort(array, index, length);
}
/// <summary>
/// Sorts a range of elements in a pair of one-dimensional objects (one contains the keys and the other contains
/// the corresponding items) based on the keys in the first using the implementation of each key.
/// </summary>
/// <param name="array">The one-dimensional to sort.</param>
/// <param name="items">
/// The one-dimensional that contains the items that correspond to each of the keys in the .-or-
/// null to sort only the .
/// </param>
/// <param name="index">The starting index of the range to sort.</param>
/// <param name="length">The number of elements in the range to sort.</param>
public static void Sort([NotNull] this Array array, Array items, int index, int length)
{
Array.Sort(array, items, index, length);
}
/// <summary>
/// Sorts the elements in a one-dimensional using the specified .
/// </summary>
/// <param name="array">The one-dimensional to sort.</param>
/// <param name="comparer">
/// The implementation to use when comparing elements.-or-null to use the implementation of
/// each element.
/// </param>
public static void Sort([NotNull] this Array array, IComparer comparer)
{
Array.Sort(array, comparer);
}
/// <summary>
/// Sorts a pair of one-dimensional objects (one contains the keys and the other contains the corresponding
/// items) based on the keys in the first using the specified .
/// </summary>
/// <param name="array">The one-dimensional to sort.</param>
/// <param name="items">
/// The one-dimensional that contains the items that correspond to each of the keys in the .-or-
/// null to sort only the .
/// </param>
/// <param name="comparer">
/// The implementation to use when comparing elements.-or-null to use the implementation of
/// each element.
/// </param>
public static void Sort([NotNull] this Array array, Array items, IComparer comparer)
{
Array.Sort(array, items, comparer);
}
/// <summary>
/// Sorts the elements in a range of elements in a one-dimensional using the specified .
/// </summary>
/// <param name="array">The one-dimensional to sort.</param>
/// <param name="index">The starting index of the range to sort.</param>
/// <param name="length">The number of elements in the range to sort.</param>
/// <param name="comparer">
/// The implementation to use when comparing elements.-or-null to use the implementation of
/// each element.
/// </param>
public static void Sort([NotNull] this Array array, int index, int length, IComparer comparer)
{
Array.Sort(array, index, length, comparer);
}
/// <summary>
/// Sorts a range of elements in a pair of one-dimensional objects (one contains the keys and the other contains
/// the corresponding items) based on the keys in the first using the specified .
/// </summary>
/// <param name="array">The one-dimensional to sort.</param>
/// <param name="items">
/// The one-dimensional that contains the items that correspond to each of the keys in the .-or-
/// null to sort only the .
/// </param>
/// <param name="index">The starting index of the range to sort.</param>
/// <param name="length">The number of elements in the range to sort.</param>
/// <param name="comparer">
/// The implementation to use when comparing elements.-or-null to use the implementation of
/// each element.
/// </param>
public static void Sort([NotNull] this Array array, Array items, int index, int length, IComparer comparer)
{
Array.Sort(array, items, index, length, comparer);
}
/// <summary>
/// Copies a specified number of bytes from a source array starting at a particular offset to a destination array
/// starting at a particular offset.
/// </summary>
/// <param name="src">The source buffer.</param>
/// <param name="srcOffset">The zero-based byte offset into .</param>
/// <param name="dst">The destination buffer.</param>
/// <param name="dstOffset">The zero-based byte offset into .</param>
/// <param name="count">The number of bytes to copy.</param>
public static void BlockCopy([NotNull] this Array src, int srcOffset, Array dst, int dstOffset, int count)
{
Buffer.BlockCopy(src, srcOffset, dst, dstOffset, count);
}
}
}
| 54.012107 | 143 | 0.606626 | [
"MIT"
] | 18142552937/Adnc | src/ServerApi/Infrastructures/Adnc.Infra.Common/Extensions/Collection/ArrayExtension.cs | 22,309 | C# |
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v3/resources/feed_mapping.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Google.Ads.GoogleAds.V3.Resources {
/// <summary>Holder for reflection information generated from google/ads/googleads/v3/resources/feed_mapping.proto</summary>
public static partial class FeedMappingReflection {
#region Descriptor
/// <summary>File descriptor for google/ads/googleads/v3/resources/feed_mapping.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static FeedMappingReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjRnb29nbGUvYWRzL2dvb2dsZWFkcy92My9yZXNvdXJjZXMvZmVlZF9tYXBw",
"aW5nLnByb3RvEiFnb29nbGUuYWRzLmdvb2dsZWFkcy52My5yZXNvdXJjZXMa",
"Q2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YzL2VudW1zL2FkX2N1c3RvbWl6ZXJf",
"cGxhY2Vob2xkZXJfZmllbGQucHJvdG8aSGdvb2dsZS9hZHMvZ29vZ2xlYWRz",
"L3YzL2VudW1zL2FmZmlsaWF0ZV9sb2NhdGlvbl9wbGFjZWhvbGRlcl9maWVs",
"ZC5wcm90bxo5Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjMvZW51bXMvYXBwX3Bs",
"YWNlaG9sZGVyX2ZpZWxkLnByb3RvGjpnb29nbGUvYWRzL2dvb2dsZWFkcy92",
"My9lbnVtcy9jYWxsX3BsYWNlaG9sZGVyX2ZpZWxkLnByb3RvGj1nb29nbGUv",
"YWRzL2dvb2dsZWFkcy92My9lbnVtcy9jYWxsb3V0X3BsYWNlaG9sZGVyX2Zp",
"ZWxkLnByb3RvGjxnb29nbGUvYWRzL2dvb2dsZWFkcy92My9lbnVtcy9jdXN0",
"b21fcGxhY2Vob2xkZXJfZmllbGQucHJvdG8aQWdvb2dsZS9hZHMvZ29vZ2xl",
"YWRzL3YzL2VudW1zL2RzYV9wYWdlX2ZlZWRfY3JpdGVyaW9uX2ZpZWxkLnBy",
"b3RvGj9nb29nbGUvYWRzL2dvb2dsZWFkcy92My9lbnVtcy9lZHVjYXRpb25f",
"cGxhY2Vob2xkZXJfZmllbGQucHJvdG8aP2dvb2dsZS9hZHMvZ29vZ2xlYWRz",
"L3YzL2VudW1zL2ZlZWRfbWFwcGluZ19jcml0ZXJpb25fdHlwZS5wcm90bxo3",
"Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjMvZW51bXMvZmVlZF9tYXBwaW5nX3N0",
"YXR1cy5wcm90bxo8Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjMvZW51bXMvZmxp",
"Z2h0X3BsYWNlaG9sZGVyX2ZpZWxkLnByb3RvGjtnb29nbGUvYWRzL2dvb2ds",
"ZWFkcy92My9lbnVtcy9ob3RlbF9wbGFjZWhvbGRlcl9maWVsZC5wcm90bxo5",
"Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjMvZW51bXMvam9iX3BsYWNlaG9sZGVy",
"X2ZpZWxkLnByb3RvGjtnb29nbGUvYWRzL2dvb2dsZWFkcy92My9lbnVtcy9s",
"b2NhbF9wbGFjZWhvbGRlcl9maWVsZC5wcm90bxpQZ29vZ2xlL2Fkcy9nb29n",
"bGVhZHMvdjMvZW51bXMvbG9jYXRpb25fZXh0ZW5zaW9uX3RhcmdldGluZ19j",
"cml0ZXJpb25fZmllbGQucHJvdG8aPmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3Yz",
"L2VudW1zL2xvY2F0aW9uX3BsYWNlaG9sZGVyX2ZpZWxkLnByb3RvGj1nb29n",
"bGUvYWRzL2dvb2dsZWFkcy92My9lbnVtcy9tZXNzYWdlX3BsYWNlaG9sZGVy",
"X2ZpZWxkLnByb3RvGjRnb29nbGUvYWRzL2dvb2dsZWFkcy92My9lbnVtcy9w",
"bGFjZWhvbGRlcl90eXBlLnByb3RvGjtnb29nbGUvYWRzL2dvb2dsZWFkcy92",
"My9lbnVtcy9wcmljZV9wbGFjZWhvbGRlcl9maWVsZC5wcm90bxo/Z29vZ2xl",
"L2Fkcy9nb29nbGVhZHMvdjMvZW51bXMvcHJvbW90aW9uX3BsYWNlaG9sZGVy",
"X2ZpZWxkLnByb3RvGkFnb29nbGUvYWRzL2dvb2dsZWFkcy92My9lbnVtcy9y",
"ZWFsX2VzdGF0ZV9wbGFjZWhvbGRlcl9maWVsZC5wcm90bxo+Z29vZ2xlL2Fk",
"cy9nb29nbGVhZHMvdjMvZW51bXMvc2l0ZWxpbmtfcGxhY2Vob2xkZXJfZmll",
"bGQucHJvdG8aSGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YzL2VudW1zL3N0cnVj",
"dHVyZWRfc25pcHBldF9wbGFjZWhvbGRlcl9maWVsZC5wcm90bxo8Z29vZ2xl",
"L2Fkcy9nb29nbGVhZHMvdjMvZW51bXMvdHJhdmVsX3BsYWNlaG9sZGVyX2Zp",
"ZWxkLnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhln",
"b29nbGUvYXBpL3Jlc291cmNlLnByb3RvGh5nb29nbGUvcHJvdG9idWYvd3Jh",
"cHBlcnMucHJvdG8aHGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8ipAUK",
"C0ZlZWRNYXBwaW5nEkMKDXJlc291cmNlX25hbWUYASABKAlCLOBBBfpBJgok",
"Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0ZlZWRNYXBwaW5nElEKBGZlZWQY",
"AiABKAsyHC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWVCJeBBBfpBHwod",
"Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0ZlZWQSXwoYYXR0cmlidXRlX2Zp",
"ZWxkX21hcHBpbmdzGAUgAygLMjguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjMu",
"cmVzb3VyY2VzLkF0dHJpYnV0ZUZpZWxkTWFwcGluZ0ID4EEFElsKBnN0YXR1",
"cxgGIAEoDjJGLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYzLmVudW1zLkZlZWRN",
"YXBwaW5nU3RhdHVzRW51bS5GZWVkTWFwcGluZ1N0YXR1c0ID4EEDEmMKEHBs",
"YWNlaG9sZGVyX3R5cGUYAyABKA4yQi5nb29nbGUuYWRzLmdvb2dsZWFkcy52",
"My5lbnVtcy5QbGFjZWhvbGRlclR5cGVFbnVtLlBsYWNlaG9sZGVyVHlwZUID",
"4EEFSAAScwoOY3JpdGVyaW9uX3R5cGUYBCABKA4yVC5nb29nbGUuYWRzLmdv",
"b2dsZWFkcy52My5lbnVtcy5GZWVkTWFwcGluZ0NyaXRlcmlvblR5cGVFbnVt",
"LkZlZWRNYXBwaW5nQ3JpdGVyaW9uVHlwZUID4EEFSAA6W+pBWAokZ29vZ2xl",
"YWRzLmdvb2dsZWFwaXMuY29tL0ZlZWRNYXBwaW5nEjBjdXN0b21lcnMve2N1",
"c3RvbWVyfS9mZWVkTWFwcGluZ3Mve2ZlZWRfbWFwcGluZ31CCAoGdGFyZ2V0",
"It4UChVBdHRyaWJ1dGVGaWVsZE1hcHBpbmcSOwoRZmVlZF9hdHRyaWJ1dGVf",
"aWQYASABKAsyGy5nb29nbGUucHJvdG9idWYuSW50NjRWYWx1ZUID4EEFEjIK",
"CGZpZWxkX2lkGAIgASgLMhsuZ29vZ2xlLnByb3RvYnVmLkludDY0VmFsdWVC",
"A+BBAxJzCg5zaXRlbGlua19maWVsZBgDIAEoDjJULmdvb2dsZS5hZHMuZ29v",
"Z2xlYWRzLnYzLmVudW1zLlNpdGVsaW5rUGxhY2Vob2xkZXJGaWVsZEVudW0u",
"U2l0ZWxpbmtQbGFjZWhvbGRlckZpZWxkQgPgQQVIABJnCgpjYWxsX2ZpZWxk",
"GAQgASgOMkwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjMuZW51bXMuQ2FsbFBs",
"YWNlaG9sZGVyRmllbGRFbnVtLkNhbGxQbGFjZWhvbGRlckZpZWxkQgPgQQVI",
"ABJkCglhcHBfZmllbGQYBSABKA4ySi5nb29nbGUuYWRzLmdvb2dsZWFkcy52",
"My5lbnVtcy5BcHBQbGFjZWhvbGRlckZpZWxkRW51bS5BcHBQbGFjZWhvbGRl",
"ckZpZWxkQgPgQQVIABJzCg5sb2NhdGlvbl9maWVsZBgGIAEoDjJULmdvb2ds",
"ZS5hZHMuZ29vZ2xlYWRzLnYzLmVudW1zLkxvY2F0aW9uUGxhY2Vob2xkZXJG",
"aWVsZEVudW0uTG9jYXRpb25QbGFjZWhvbGRlckZpZWxkQgPgQQNIABKPAQoY",
"YWZmaWxpYXRlX2xvY2F0aW9uX2ZpZWxkGAcgASgOMmYuZ29vZ2xlLmFkcy5n",
"b29nbGVhZHMudjMuZW51bXMuQWZmaWxpYXRlTG9jYXRpb25QbGFjZWhvbGRl",
"ckZpZWxkRW51bS5BZmZpbGlhdGVMb2NhdGlvblBsYWNlaG9sZGVyRmllbGRC",
"A+BBA0gAEnAKDWNhbGxvdXRfZmllbGQYCCABKA4yUi5nb29nbGUuYWRzLmdv",
"b2dsZWFkcy52My5lbnVtcy5DYWxsb3V0UGxhY2Vob2xkZXJGaWVsZEVudW0u",
"Q2FsbG91dFBsYWNlaG9sZGVyRmllbGRCA+BBBUgAEo8BChhzdHJ1Y3R1cmVk",
"X3NuaXBwZXRfZmllbGQYCSABKA4yZi5nb29nbGUuYWRzLmdvb2dsZWFkcy52",
"My5lbnVtcy5TdHJ1Y3R1cmVkU25pcHBldFBsYWNlaG9sZGVyRmllbGRFbnVt",
"LlN0cnVjdHVyZWRTbmlwcGV0UGxhY2Vob2xkZXJGaWVsZEID4EEFSAAScAoN",
"bWVzc2FnZV9maWVsZBgKIAEoDjJSLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYz",
"LmVudW1zLk1lc3NhZ2VQbGFjZWhvbGRlckZpZWxkRW51bS5NZXNzYWdlUGxh",
"Y2Vob2xkZXJGaWVsZEID4EEFSAASagoLcHJpY2VfZmllbGQYCyABKA4yTi5n",
"b29nbGUuYWRzLmdvb2dsZWFkcy52My5lbnVtcy5QcmljZVBsYWNlaG9sZGVy",
"RmllbGRFbnVtLlByaWNlUGxhY2Vob2xkZXJGaWVsZEID4EEFSAASdgoPcHJv",
"bW90aW9uX2ZpZWxkGAwgASgOMlYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjMu",
"ZW51bXMuUHJvbW90aW9uUGxhY2Vob2xkZXJGaWVsZEVudW0uUHJvbW90aW9u",
"UGxhY2Vob2xkZXJGaWVsZEID4EEFSAASgAEKE2FkX2N1c3RvbWl6ZXJfZmll",
"bGQYDSABKA4yXC5nb29nbGUuYWRzLmdvb2dsZWFkcy52My5lbnVtcy5BZEN1",
"c3RvbWl6ZXJQbGFjZWhvbGRlckZpZWxkRW51bS5BZEN1c3RvbWl6ZXJQbGFj",
"ZWhvbGRlckZpZWxkQgPgQQVIABJ6ChNkc2FfcGFnZV9mZWVkX2ZpZWxkGA4g",
"ASgOMlYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjMuZW51bXMuRHNhUGFnZUZl",
"ZWRDcml0ZXJpb25GaWVsZEVudW0uRHNhUGFnZUZlZWRDcml0ZXJpb25GaWVs",
"ZEID4EEFSAASpwEKImxvY2F0aW9uX2V4dGVuc2lvbl90YXJnZXRpbmdfZmll",
"bGQYDyABKA4ydC5nb29nbGUuYWRzLmdvb2dsZWFkcy52My5lbnVtcy5Mb2Nh",
"dGlvbkV4dGVuc2lvblRhcmdldGluZ0NyaXRlcmlvbkZpZWxkRW51bS5Mb2Nh",
"dGlvbkV4dGVuc2lvblRhcmdldGluZ0NyaXRlcmlvbkZpZWxkQgPgQQVIABJ2",
"Cg9lZHVjYXRpb25fZmllbGQYECABKA4yVi5nb29nbGUuYWRzLmdvb2dsZWFk",
"cy52My5lbnVtcy5FZHVjYXRpb25QbGFjZWhvbGRlckZpZWxkRW51bS5FZHVj",
"YXRpb25QbGFjZWhvbGRlckZpZWxkQgPgQQVIABJtCgxmbGlnaHRfZmllbGQY",
"ESABKA4yUC5nb29nbGUuYWRzLmdvb2dsZWFkcy52My5lbnVtcy5GbGlnaHRQ",
"bGFjZWhvbGRlckZpZWxkRW51bS5GbGlnaHRQbGFjZWhvbGRlckZpZWxkQgPg",
"QQVIABJtCgxjdXN0b21fZmllbGQYEiABKA4yUC5nb29nbGUuYWRzLmdvb2ds",
"ZWFkcy52My5lbnVtcy5DdXN0b21QbGFjZWhvbGRlckZpZWxkRW51bS5DdXN0",
"b21QbGFjZWhvbGRlckZpZWxkQgPgQQVIABJqCgtob3RlbF9maWVsZBgTIAEo",
"DjJOLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYzLmVudW1zLkhvdGVsUGxhY2Vo",
"b2xkZXJGaWVsZEVudW0uSG90ZWxQbGFjZWhvbGRlckZpZWxkQgPgQQVIABJ6",
"ChFyZWFsX2VzdGF0ZV9maWVsZBgUIAEoDjJYLmdvb2dsZS5hZHMuZ29vZ2xl",
"YWRzLnYzLmVudW1zLlJlYWxFc3RhdGVQbGFjZWhvbGRlckZpZWxkRW51bS5S",
"ZWFsRXN0YXRlUGxhY2Vob2xkZXJGaWVsZEID4EEFSAASbQoMdHJhdmVsX2Zp",
"ZWxkGBUgASgOMlAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjMuZW51bXMuVHJh",
"dmVsUGxhY2Vob2xkZXJGaWVsZEVudW0uVHJhdmVsUGxhY2Vob2xkZXJGaWVs",
"ZEID4EEFSAASagoLbG9jYWxfZmllbGQYFiABKA4yTi5nb29nbGUuYWRzLmdv",
"b2dsZWFkcy52My5lbnVtcy5Mb2NhbFBsYWNlaG9sZGVyRmllbGRFbnVtLkxv",
"Y2FsUGxhY2Vob2xkZXJGaWVsZEID4EEFSAASZAoJam9iX2ZpZWxkGBcgASgO",
"MkouZ29vZ2xlLmFkcy5nb29nbGVhZHMudjMuZW51bXMuSm9iUGxhY2Vob2xk",
"ZXJGaWVsZEVudW0uSm9iUGxhY2Vob2xkZXJGaWVsZEID4EEFSABCBwoFZmll",
"bGRC/QEKJWNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52My5yZXNvdXJjZXNC",
"EEZlZWRNYXBwaW5nUHJvdG9QAVpKZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJv",
"dG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YzL3Jlc291cmNlcztyZXNv",
"dXJjZXOiAgNHQUGqAiFHb29nbGUuQWRzLkdvb2dsZUFkcy5WMy5SZXNvdXJj",
"ZXPKAiFHb29nbGVcQWRzXEdvb2dsZUFkc1xWM1xSZXNvdXJjZXPqAiVHb29n",
"bGU6OkFkczo6R29vZ2xlQWRzOjpWMzo6UmVzb3VyY2VzYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V3.Enums.AdCustomizerPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V3.Enums.AffiliateLocationPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V3.Enums.AppPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V3.Enums.CallPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V3.Enums.CalloutPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V3.Enums.CustomPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V3.Enums.DsaPageFeedCriterionFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V3.Enums.EducationPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V3.Enums.FeedMappingCriterionTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V3.Enums.FeedMappingStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V3.Enums.FlightPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V3.Enums.HotelPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V3.Enums.JobPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V3.Enums.LocalPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V3.Enums.LocationExtensionTargetingCriterionFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V3.Enums.LocationPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V3.Enums.MessagePlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V3.Enums.PlaceholderTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V3.Enums.PricePlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V3.Enums.PromotionPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V3.Enums.RealEstatePlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V3.Enums.SitelinkPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V3.Enums.StructuredSnippetPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V3.Enums.TravelPlaceholderFieldReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V3.Resources.FeedMapping), global::Google.Ads.GoogleAds.V3.Resources.FeedMapping.Parser, new[]{ "ResourceName", "Feed", "AttributeFieldMappings", "Status", "PlaceholderType", "CriterionType" }, new[]{ "Target" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V3.Resources.AttributeFieldMapping), global::Google.Ads.GoogleAds.V3.Resources.AttributeFieldMapping.Parser, new[]{ "FeedAttributeId", "FieldId", "SitelinkField", "CallField", "AppField", "LocationField", "AffiliateLocationField", "CalloutField", "StructuredSnippetField", "MessageField", "PriceField", "PromotionField", "AdCustomizerField", "DsaPageFeedField", "LocationExtensionTargetingField", "EducationField", "FlightField", "CustomField", "HotelField", "RealEstateField", "TravelField", "LocalField", "JobField" }, new[]{ "Field" }, null, null, null)
}));
}
#endregion
}
#region Messages
/// <summary>
/// A feed mapping.
/// </summary>
public sealed partial class FeedMapping : pb::IMessage<FeedMapping>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<FeedMapping> _parser = new pb::MessageParser<FeedMapping>(() => new FeedMapping());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<FeedMapping> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Ads.GoogleAds.V3.Resources.FeedMappingReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public FeedMapping() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public FeedMapping(FeedMapping other) : this() {
resourceName_ = other.resourceName_;
Feed = other.Feed;
attributeFieldMappings_ = other.attributeFieldMappings_.Clone();
status_ = other.status_;
switch (other.TargetCase) {
case TargetOneofCase.PlaceholderType:
PlaceholderType = other.PlaceholderType;
break;
case TargetOneofCase.CriterionType:
CriterionType = other.CriterionType;
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public FeedMapping Clone() {
return new FeedMapping(this);
}
/// <summary>Field number for the "resource_name" field.</summary>
public const int ResourceNameFieldNumber = 1;
private string resourceName_ = "";
/// <summary>
/// Immutable. The resource name of the feed mapping.
/// Feed mapping resource names have the form:
///
/// `customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}`
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string ResourceName {
get { return resourceName_; }
set {
resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "feed" field.</summary>
public const int FeedFieldNumber = 2;
private static readonly pb::FieldCodec<string> _single_feed_codec = pb::FieldCodec.ForClassWrapper<string>(18);
private string feed_;
/// <summary>
/// Immutable. The feed of this feed mapping.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Feed {
get { return feed_; }
set {
feed_ = value;
}
}
/// <summary>Field number for the "attribute_field_mappings" field.</summary>
public const int AttributeFieldMappingsFieldNumber = 5;
private static readonly pb::FieldCodec<global::Google.Ads.GoogleAds.V3.Resources.AttributeFieldMapping> _repeated_attributeFieldMappings_codec
= pb::FieldCodec.ForMessage(42, global::Google.Ads.GoogleAds.V3.Resources.AttributeFieldMapping.Parser);
private readonly pbc::RepeatedField<global::Google.Ads.GoogleAds.V3.Resources.AttributeFieldMapping> attributeFieldMappings_ = new pbc::RepeatedField<global::Google.Ads.GoogleAds.V3.Resources.AttributeFieldMapping>();
/// <summary>
/// Immutable. Feed attributes to field mappings. These mappings are a one-to-many
/// relationship meaning that 1 feed attribute can be used to populate
/// multiple placeholder fields, but 1 placeholder field can only draw
/// data from 1 feed attribute. Ad Customizer is an exception, 1 placeholder
/// field can be mapped to multiple feed attributes. Required.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Google.Ads.GoogleAds.V3.Resources.AttributeFieldMapping> AttributeFieldMappings {
get { return attributeFieldMappings_; }
}
/// <summary>Field number for the "status" field.</summary>
public const int StatusFieldNumber = 6;
private global::Google.Ads.GoogleAds.V3.Enums.FeedMappingStatusEnum.Types.FeedMappingStatus status_ = global::Google.Ads.GoogleAds.V3.Enums.FeedMappingStatusEnum.Types.FeedMappingStatus.Unspecified;
/// <summary>
/// Output only. Status of the feed mapping.
/// This field is read-only.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Ads.GoogleAds.V3.Enums.FeedMappingStatusEnum.Types.FeedMappingStatus Status {
get { return status_; }
set {
status_ = value;
}
}
/// <summary>Field number for the "placeholder_type" field.</summary>
public const int PlaceholderTypeFieldNumber = 3;
/// <summary>
/// Immutable. The placeholder type of this mapping (i.e., if the mapping maps feed
/// attributes to placeholder fields).
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Ads.GoogleAds.V3.Enums.PlaceholderTypeEnum.Types.PlaceholderType PlaceholderType {
get { return targetCase_ == TargetOneofCase.PlaceholderType ? (global::Google.Ads.GoogleAds.V3.Enums.PlaceholderTypeEnum.Types.PlaceholderType) target_ : global::Google.Ads.GoogleAds.V3.Enums.PlaceholderTypeEnum.Types.PlaceholderType.Unspecified; }
set {
target_ = value;
targetCase_ = TargetOneofCase.PlaceholderType;
}
}
/// <summary>Field number for the "criterion_type" field.</summary>
public const int CriterionTypeFieldNumber = 4;
/// <summary>
/// Immutable. The criterion type of this mapping (i.e., if the mapping maps feed
/// attributes to criterion fields).
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Ads.GoogleAds.V3.Enums.FeedMappingCriterionTypeEnum.Types.FeedMappingCriterionType CriterionType {
get { return targetCase_ == TargetOneofCase.CriterionType ? (global::Google.Ads.GoogleAds.V3.Enums.FeedMappingCriterionTypeEnum.Types.FeedMappingCriterionType) target_ : global::Google.Ads.GoogleAds.V3.Enums.FeedMappingCriterionTypeEnum.Types.FeedMappingCriterionType.Unspecified; }
set {
target_ = value;
targetCase_ = TargetOneofCase.CriterionType;
}
}
private object target_;
/// <summary>Enum of possible cases for the "target" oneof.</summary>
public enum TargetOneofCase {
None = 0,
PlaceholderType = 3,
CriterionType = 4,
}
private TargetOneofCase targetCase_ = TargetOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public TargetOneofCase TargetCase {
get { return targetCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearTarget() {
targetCase_ = TargetOneofCase.None;
target_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as FeedMapping);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(FeedMapping other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (ResourceName != other.ResourceName) return false;
if (Feed != other.Feed) return false;
if(!attributeFieldMappings_.Equals(other.attributeFieldMappings_)) return false;
if (Status != other.Status) return false;
if (PlaceholderType != other.PlaceholderType) return false;
if (CriterionType != other.CriterionType) return false;
if (TargetCase != other.TargetCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode();
if (feed_ != null) hash ^= Feed.GetHashCode();
hash ^= attributeFieldMappings_.GetHashCode();
if (Status != global::Google.Ads.GoogleAds.V3.Enums.FeedMappingStatusEnum.Types.FeedMappingStatus.Unspecified) hash ^= Status.GetHashCode();
if (targetCase_ == TargetOneofCase.PlaceholderType) hash ^= PlaceholderType.GetHashCode();
if (targetCase_ == TargetOneofCase.CriterionType) hash ^= CriterionType.GetHashCode();
hash ^= (int) targetCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (ResourceName.Length != 0) {
output.WriteRawTag(10);
output.WriteString(ResourceName);
}
if (feed_ != null) {
_single_feed_codec.WriteTagAndValue(output, Feed);
}
if (targetCase_ == TargetOneofCase.PlaceholderType) {
output.WriteRawTag(24);
output.WriteEnum((int) PlaceholderType);
}
if (targetCase_ == TargetOneofCase.CriterionType) {
output.WriteRawTag(32);
output.WriteEnum((int) CriterionType);
}
attributeFieldMappings_.WriteTo(output, _repeated_attributeFieldMappings_codec);
if (Status != global::Google.Ads.GoogleAds.V3.Enums.FeedMappingStatusEnum.Types.FeedMappingStatus.Unspecified) {
output.WriteRawTag(48);
output.WriteEnum((int) Status);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (ResourceName.Length != 0) {
output.WriteRawTag(10);
output.WriteString(ResourceName);
}
if (feed_ != null) {
_single_feed_codec.WriteTagAndValue(ref output, Feed);
}
if (targetCase_ == TargetOneofCase.PlaceholderType) {
output.WriteRawTag(24);
output.WriteEnum((int) PlaceholderType);
}
if (targetCase_ == TargetOneofCase.CriterionType) {
output.WriteRawTag(32);
output.WriteEnum((int) CriterionType);
}
attributeFieldMappings_.WriteTo(ref output, _repeated_attributeFieldMappings_codec);
if (Status != global::Google.Ads.GoogleAds.V3.Enums.FeedMappingStatusEnum.Types.FeedMappingStatus.Unspecified) {
output.WriteRawTag(48);
output.WriteEnum((int) Status);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (feed_ != null) {
size += _single_feed_codec.CalculateSizeWithTag(Feed);
}
size += attributeFieldMappings_.CalculateSize(_repeated_attributeFieldMappings_codec);
if (Status != global::Google.Ads.GoogleAds.V3.Enums.FeedMappingStatusEnum.Types.FeedMappingStatus.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
}
if (targetCase_ == TargetOneofCase.PlaceholderType) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PlaceholderType);
}
if (targetCase_ == TargetOneofCase.CriterionType) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CriterionType);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(FeedMapping other) {
if (other == null) {
return;
}
if (other.ResourceName.Length != 0) {
ResourceName = other.ResourceName;
}
if (other.feed_ != null) {
if (feed_ == null || other.Feed != "") {
Feed = other.Feed;
}
}
attributeFieldMappings_.Add(other.attributeFieldMappings_);
if (other.Status != global::Google.Ads.GoogleAds.V3.Enums.FeedMappingStatusEnum.Types.FeedMappingStatus.Unspecified) {
Status = other.Status;
}
switch (other.TargetCase) {
case TargetOneofCase.PlaceholderType:
PlaceholderType = other.PlaceholderType;
break;
case TargetOneofCase.CriterionType:
CriterionType = other.CriterionType;
break;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
ResourceName = input.ReadString();
break;
}
case 18: {
string value = _single_feed_codec.Read(input);
if (feed_ == null || value != "") {
Feed = value;
}
break;
}
case 24: {
target_ = input.ReadEnum();
targetCase_ = TargetOneofCase.PlaceholderType;
break;
}
case 32: {
target_ = input.ReadEnum();
targetCase_ = TargetOneofCase.CriterionType;
break;
}
case 42: {
attributeFieldMappings_.AddEntriesFrom(input, _repeated_attributeFieldMappings_codec);
break;
}
case 48: {
Status = (global::Google.Ads.GoogleAds.V3.Enums.FeedMappingStatusEnum.Types.FeedMappingStatus) input.ReadEnum();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
ResourceName = input.ReadString();
break;
}
case 18: {
string value = _single_feed_codec.Read(ref input);
if (feed_ == null || value != "") {
Feed = value;
}
break;
}
case 24: {
target_ = input.ReadEnum();
targetCase_ = TargetOneofCase.PlaceholderType;
break;
}
case 32: {
target_ = input.ReadEnum();
targetCase_ = TargetOneofCase.CriterionType;
break;
}
case 42: {
attributeFieldMappings_.AddEntriesFrom(ref input, _repeated_attributeFieldMappings_codec);
break;
}
case 48: {
Status = (global::Google.Ads.GoogleAds.V3.Enums.FeedMappingStatusEnum.Types.FeedMappingStatus) input.ReadEnum();
break;
}
}
}
}
#endif
}
/// <summary>
/// Maps from feed attribute id to a placeholder or criterion field id.
/// </summary>
public sealed partial class AttributeFieldMapping : pb::IMessage<AttributeFieldMapping>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<AttributeFieldMapping> _parser = new pb::MessageParser<AttributeFieldMapping>(() => new AttributeFieldMapping());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<AttributeFieldMapping> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Ads.GoogleAds.V3.Resources.FeedMappingReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public AttributeFieldMapping() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public AttributeFieldMapping(AttributeFieldMapping other) : this() {
FeedAttributeId = other.FeedAttributeId;
FieldId = other.FieldId;
switch (other.FieldCase) {
case FieldOneofCase.SitelinkField:
SitelinkField = other.SitelinkField;
break;
case FieldOneofCase.CallField:
CallField = other.CallField;
break;
case FieldOneofCase.AppField:
AppField = other.AppField;
break;
case FieldOneofCase.LocationField:
LocationField = other.LocationField;
break;
case FieldOneofCase.AffiliateLocationField:
AffiliateLocationField = other.AffiliateLocationField;
break;
case FieldOneofCase.CalloutField:
CalloutField = other.CalloutField;
break;
case FieldOneofCase.StructuredSnippetField:
StructuredSnippetField = other.StructuredSnippetField;
break;
case FieldOneofCase.MessageField:
MessageField = other.MessageField;
break;
case FieldOneofCase.PriceField:
PriceField = other.PriceField;
break;
case FieldOneofCase.PromotionField:
PromotionField = other.PromotionField;
break;
case FieldOneofCase.AdCustomizerField:
AdCustomizerField = other.AdCustomizerField;
break;
case FieldOneofCase.DsaPageFeedField:
DsaPageFeedField = other.DsaPageFeedField;
break;
case FieldOneofCase.LocationExtensionTargetingField:
LocationExtensionTargetingField = other.LocationExtensionTargetingField;
break;
case FieldOneofCase.EducationField:
EducationField = other.EducationField;
break;
case FieldOneofCase.FlightField:
FlightField = other.FlightField;
break;
case FieldOneofCase.CustomField:
CustomField = other.CustomField;
break;
case FieldOneofCase.HotelField:
HotelField = other.HotelField;
break;
case FieldOneofCase.RealEstateField:
RealEstateField = other.RealEstateField;
break;
case FieldOneofCase.TravelField:
TravelField = other.TravelField;
break;
case FieldOneofCase.LocalField:
LocalField = other.LocalField;
break;
case FieldOneofCase.JobField:
JobField = other.JobField;
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public AttributeFieldMapping Clone() {
return new AttributeFieldMapping(this);
}
/// <summary>Field number for the "feed_attribute_id" field.</summary>
public const int FeedAttributeIdFieldNumber = 1;
private static readonly pb::FieldCodec<long?> _single_feedAttributeId_codec = pb::FieldCodec.ForStructWrapper<long>(10);
private long? feedAttributeId_;
/// <summary>
/// Immutable. Feed attribute from which to map.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long? FeedAttributeId {
get { return feedAttributeId_; }
set {
feedAttributeId_ = value;
}
}
/// <summary>Field number for the "field_id" field.</summary>
public const int FieldIdFieldNumber = 2;
private static readonly pb::FieldCodec<long?> _single_fieldId_codec = pb::FieldCodec.ForStructWrapper<long>(18);
private long? fieldId_;
/// <summary>
/// Output only. The placeholder field ID. If a placeholder field enum is not published in
/// the current API version, then this field will be populated and the field
/// oneof will be empty.
/// This field is read-only.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long? FieldId {
get { return fieldId_; }
set {
fieldId_ = value;
}
}
/// <summary>Field number for the "sitelink_field" field.</summary>
public const int SitelinkFieldFieldNumber = 3;
/// <summary>
/// Immutable. Sitelink Placeholder Fields.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Ads.GoogleAds.V3.Enums.SitelinkPlaceholderFieldEnum.Types.SitelinkPlaceholderField SitelinkField {
get { return fieldCase_ == FieldOneofCase.SitelinkField ? (global::Google.Ads.GoogleAds.V3.Enums.SitelinkPlaceholderFieldEnum.Types.SitelinkPlaceholderField) field_ : global::Google.Ads.GoogleAds.V3.Enums.SitelinkPlaceholderFieldEnum.Types.SitelinkPlaceholderField.Unspecified; }
set {
field_ = value;
fieldCase_ = FieldOneofCase.SitelinkField;
}
}
/// <summary>Field number for the "call_field" field.</summary>
public const int CallFieldFieldNumber = 4;
/// <summary>
/// Immutable. Call Placeholder Fields.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Ads.GoogleAds.V3.Enums.CallPlaceholderFieldEnum.Types.CallPlaceholderField CallField {
get { return fieldCase_ == FieldOneofCase.CallField ? (global::Google.Ads.GoogleAds.V3.Enums.CallPlaceholderFieldEnum.Types.CallPlaceholderField) field_ : global::Google.Ads.GoogleAds.V3.Enums.CallPlaceholderFieldEnum.Types.CallPlaceholderField.Unspecified; }
set {
field_ = value;
fieldCase_ = FieldOneofCase.CallField;
}
}
/// <summary>Field number for the "app_field" field.</summary>
public const int AppFieldFieldNumber = 5;
/// <summary>
/// Immutable. App Placeholder Fields.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Ads.GoogleAds.V3.Enums.AppPlaceholderFieldEnum.Types.AppPlaceholderField AppField {
get { return fieldCase_ == FieldOneofCase.AppField ? (global::Google.Ads.GoogleAds.V3.Enums.AppPlaceholderFieldEnum.Types.AppPlaceholderField) field_ : global::Google.Ads.GoogleAds.V3.Enums.AppPlaceholderFieldEnum.Types.AppPlaceholderField.Unspecified; }
set {
field_ = value;
fieldCase_ = FieldOneofCase.AppField;
}
}
/// <summary>Field number for the "location_field" field.</summary>
public const int LocationFieldFieldNumber = 6;
/// <summary>
/// Output only. Location Placeholder Fields. This field is read-only.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Ads.GoogleAds.V3.Enums.LocationPlaceholderFieldEnum.Types.LocationPlaceholderField LocationField {
get { return fieldCase_ == FieldOneofCase.LocationField ? (global::Google.Ads.GoogleAds.V3.Enums.LocationPlaceholderFieldEnum.Types.LocationPlaceholderField) field_ : global::Google.Ads.GoogleAds.V3.Enums.LocationPlaceholderFieldEnum.Types.LocationPlaceholderField.Unspecified; }
set {
field_ = value;
fieldCase_ = FieldOneofCase.LocationField;
}
}
/// <summary>Field number for the "affiliate_location_field" field.</summary>
public const int AffiliateLocationFieldFieldNumber = 7;
/// <summary>
/// Output only. Affiliate Location Placeholder Fields. This field is read-only.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Ads.GoogleAds.V3.Enums.AffiliateLocationPlaceholderFieldEnum.Types.AffiliateLocationPlaceholderField AffiliateLocationField {
get { return fieldCase_ == FieldOneofCase.AffiliateLocationField ? (global::Google.Ads.GoogleAds.V3.Enums.AffiliateLocationPlaceholderFieldEnum.Types.AffiliateLocationPlaceholderField) field_ : global::Google.Ads.GoogleAds.V3.Enums.AffiliateLocationPlaceholderFieldEnum.Types.AffiliateLocationPlaceholderField.Unspecified; }
set {
field_ = value;
fieldCase_ = FieldOneofCase.AffiliateLocationField;
}
}
/// <summary>Field number for the "callout_field" field.</summary>
public const int CalloutFieldFieldNumber = 8;
/// <summary>
/// Immutable. Callout Placeholder Fields.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Ads.GoogleAds.V3.Enums.CalloutPlaceholderFieldEnum.Types.CalloutPlaceholderField CalloutField {
get { return fieldCase_ == FieldOneofCase.CalloutField ? (global::Google.Ads.GoogleAds.V3.Enums.CalloutPlaceholderFieldEnum.Types.CalloutPlaceholderField) field_ : global::Google.Ads.GoogleAds.V3.Enums.CalloutPlaceholderFieldEnum.Types.CalloutPlaceholderField.Unspecified; }
set {
field_ = value;
fieldCase_ = FieldOneofCase.CalloutField;
}
}
/// <summary>Field number for the "structured_snippet_field" field.</summary>
public const int StructuredSnippetFieldFieldNumber = 9;
/// <summary>
/// Immutable. Structured Snippet Placeholder Fields.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Ads.GoogleAds.V3.Enums.StructuredSnippetPlaceholderFieldEnum.Types.StructuredSnippetPlaceholderField StructuredSnippetField {
get { return fieldCase_ == FieldOneofCase.StructuredSnippetField ? (global::Google.Ads.GoogleAds.V3.Enums.StructuredSnippetPlaceholderFieldEnum.Types.StructuredSnippetPlaceholderField) field_ : global::Google.Ads.GoogleAds.V3.Enums.StructuredSnippetPlaceholderFieldEnum.Types.StructuredSnippetPlaceholderField.Unspecified; }
set {
field_ = value;
fieldCase_ = FieldOneofCase.StructuredSnippetField;
}
}
/// <summary>Field number for the "message_field" field.</summary>
public const int MessageFieldFieldNumber = 10;
/// <summary>
/// Immutable. Message Placeholder Fields.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Ads.GoogleAds.V3.Enums.MessagePlaceholderFieldEnum.Types.MessagePlaceholderField MessageField {
get { return fieldCase_ == FieldOneofCase.MessageField ? (global::Google.Ads.GoogleAds.V3.Enums.MessagePlaceholderFieldEnum.Types.MessagePlaceholderField) field_ : global::Google.Ads.GoogleAds.V3.Enums.MessagePlaceholderFieldEnum.Types.MessagePlaceholderField.Unspecified; }
set {
field_ = value;
fieldCase_ = FieldOneofCase.MessageField;
}
}
/// <summary>Field number for the "price_field" field.</summary>
public const int PriceFieldFieldNumber = 11;
/// <summary>
/// Immutable. Price Placeholder Fields.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Ads.GoogleAds.V3.Enums.PricePlaceholderFieldEnum.Types.PricePlaceholderField PriceField {
get { return fieldCase_ == FieldOneofCase.PriceField ? (global::Google.Ads.GoogleAds.V3.Enums.PricePlaceholderFieldEnum.Types.PricePlaceholderField) field_ : global::Google.Ads.GoogleAds.V3.Enums.PricePlaceholderFieldEnum.Types.PricePlaceholderField.Unspecified; }
set {
field_ = value;
fieldCase_ = FieldOneofCase.PriceField;
}
}
/// <summary>Field number for the "promotion_field" field.</summary>
public const int PromotionFieldFieldNumber = 12;
/// <summary>
/// Immutable. Promotion Placeholder Fields.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Ads.GoogleAds.V3.Enums.PromotionPlaceholderFieldEnum.Types.PromotionPlaceholderField PromotionField {
get { return fieldCase_ == FieldOneofCase.PromotionField ? (global::Google.Ads.GoogleAds.V3.Enums.PromotionPlaceholderFieldEnum.Types.PromotionPlaceholderField) field_ : global::Google.Ads.GoogleAds.V3.Enums.PromotionPlaceholderFieldEnum.Types.PromotionPlaceholderField.Unspecified; }
set {
field_ = value;
fieldCase_ = FieldOneofCase.PromotionField;
}
}
/// <summary>Field number for the "ad_customizer_field" field.</summary>
public const int AdCustomizerFieldFieldNumber = 13;
/// <summary>
/// Immutable. Ad Customizer Placeholder Fields
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Ads.GoogleAds.V3.Enums.AdCustomizerPlaceholderFieldEnum.Types.AdCustomizerPlaceholderField AdCustomizerField {
get { return fieldCase_ == FieldOneofCase.AdCustomizerField ? (global::Google.Ads.GoogleAds.V3.Enums.AdCustomizerPlaceholderFieldEnum.Types.AdCustomizerPlaceholderField) field_ : global::Google.Ads.GoogleAds.V3.Enums.AdCustomizerPlaceholderFieldEnum.Types.AdCustomizerPlaceholderField.Unspecified; }
set {
field_ = value;
fieldCase_ = FieldOneofCase.AdCustomizerField;
}
}
/// <summary>Field number for the "dsa_page_feed_field" field.</summary>
public const int DsaPageFeedFieldFieldNumber = 14;
/// <summary>
/// Immutable. Dynamic Search Ad Page Feed Fields.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Ads.GoogleAds.V3.Enums.DsaPageFeedCriterionFieldEnum.Types.DsaPageFeedCriterionField DsaPageFeedField {
get { return fieldCase_ == FieldOneofCase.DsaPageFeedField ? (global::Google.Ads.GoogleAds.V3.Enums.DsaPageFeedCriterionFieldEnum.Types.DsaPageFeedCriterionField) field_ : global::Google.Ads.GoogleAds.V3.Enums.DsaPageFeedCriterionFieldEnum.Types.DsaPageFeedCriterionField.Unspecified; }
set {
field_ = value;
fieldCase_ = FieldOneofCase.DsaPageFeedField;
}
}
/// <summary>Field number for the "location_extension_targeting_field" field.</summary>
public const int LocationExtensionTargetingFieldFieldNumber = 15;
/// <summary>
/// Immutable. Location Target Fields.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Ads.GoogleAds.V3.Enums.LocationExtensionTargetingCriterionFieldEnum.Types.LocationExtensionTargetingCriterionField LocationExtensionTargetingField {
get { return fieldCase_ == FieldOneofCase.LocationExtensionTargetingField ? (global::Google.Ads.GoogleAds.V3.Enums.LocationExtensionTargetingCriterionFieldEnum.Types.LocationExtensionTargetingCriterionField) field_ : global::Google.Ads.GoogleAds.V3.Enums.LocationExtensionTargetingCriterionFieldEnum.Types.LocationExtensionTargetingCriterionField.Unspecified; }
set {
field_ = value;
fieldCase_ = FieldOneofCase.LocationExtensionTargetingField;
}
}
/// <summary>Field number for the "education_field" field.</summary>
public const int EducationFieldFieldNumber = 16;
/// <summary>
/// Immutable. Education Placeholder Fields
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Ads.GoogleAds.V3.Enums.EducationPlaceholderFieldEnum.Types.EducationPlaceholderField EducationField {
get { return fieldCase_ == FieldOneofCase.EducationField ? (global::Google.Ads.GoogleAds.V3.Enums.EducationPlaceholderFieldEnum.Types.EducationPlaceholderField) field_ : global::Google.Ads.GoogleAds.V3.Enums.EducationPlaceholderFieldEnum.Types.EducationPlaceholderField.Unspecified; }
set {
field_ = value;
fieldCase_ = FieldOneofCase.EducationField;
}
}
/// <summary>Field number for the "flight_field" field.</summary>
public const int FlightFieldFieldNumber = 17;
/// <summary>
/// Immutable. Flight Placeholder Fields
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Ads.GoogleAds.V3.Enums.FlightPlaceholderFieldEnum.Types.FlightPlaceholderField FlightField {
get { return fieldCase_ == FieldOneofCase.FlightField ? (global::Google.Ads.GoogleAds.V3.Enums.FlightPlaceholderFieldEnum.Types.FlightPlaceholderField) field_ : global::Google.Ads.GoogleAds.V3.Enums.FlightPlaceholderFieldEnum.Types.FlightPlaceholderField.Unspecified; }
set {
field_ = value;
fieldCase_ = FieldOneofCase.FlightField;
}
}
/// <summary>Field number for the "custom_field" field.</summary>
public const int CustomFieldFieldNumber = 18;
/// <summary>
/// Immutable. Custom Placeholder Fields
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Ads.GoogleAds.V3.Enums.CustomPlaceholderFieldEnum.Types.CustomPlaceholderField CustomField {
get { return fieldCase_ == FieldOneofCase.CustomField ? (global::Google.Ads.GoogleAds.V3.Enums.CustomPlaceholderFieldEnum.Types.CustomPlaceholderField) field_ : global::Google.Ads.GoogleAds.V3.Enums.CustomPlaceholderFieldEnum.Types.CustomPlaceholderField.Unspecified; }
set {
field_ = value;
fieldCase_ = FieldOneofCase.CustomField;
}
}
/// <summary>Field number for the "hotel_field" field.</summary>
public const int HotelFieldFieldNumber = 19;
/// <summary>
/// Immutable. Hotel Placeholder Fields
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Ads.GoogleAds.V3.Enums.HotelPlaceholderFieldEnum.Types.HotelPlaceholderField HotelField {
get { return fieldCase_ == FieldOneofCase.HotelField ? (global::Google.Ads.GoogleAds.V3.Enums.HotelPlaceholderFieldEnum.Types.HotelPlaceholderField) field_ : global::Google.Ads.GoogleAds.V3.Enums.HotelPlaceholderFieldEnum.Types.HotelPlaceholderField.Unspecified; }
set {
field_ = value;
fieldCase_ = FieldOneofCase.HotelField;
}
}
/// <summary>Field number for the "real_estate_field" field.</summary>
public const int RealEstateFieldFieldNumber = 20;
/// <summary>
/// Immutable. Real Estate Placeholder Fields
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Ads.GoogleAds.V3.Enums.RealEstatePlaceholderFieldEnum.Types.RealEstatePlaceholderField RealEstateField {
get { return fieldCase_ == FieldOneofCase.RealEstateField ? (global::Google.Ads.GoogleAds.V3.Enums.RealEstatePlaceholderFieldEnum.Types.RealEstatePlaceholderField) field_ : global::Google.Ads.GoogleAds.V3.Enums.RealEstatePlaceholderFieldEnum.Types.RealEstatePlaceholderField.Unspecified; }
set {
field_ = value;
fieldCase_ = FieldOneofCase.RealEstateField;
}
}
/// <summary>Field number for the "travel_field" field.</summary>
public const int TravelFieldFieldNumber = 21;
/// <summary>
/// Immutable. Travel Placeholder Fields
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Ads.GoogleAds.V3.Enums.TravelPlaceholderFieldEnum.Types.TravelPlaceholderField TravelField {
get { return fieldCase_ == FieldOneofCase.TravelField ? (global::Google.Ads.GoogleAds.V3.Enums.TravelPlaceholderFieldEnum.Types.TravelPlaceholderField) field_ : global::Google.Ads.GoogleAds.V3.Enums.TravelPlaceholderFieldEnum.Types.TravelPlaceholderField.Unspecified; }
set {
field_ = value;
fieldCase_ = FieldOneofCase.TravelField;
}
}
/// <summary>Field number for the "local_field" field.</summary>
public const int LocalFieldFieldNumber = 22;
/// <summary>
/// Immutable. Local Placeholder Fields
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Ads.GoogleAds.V3.Enums.LocalPlaceholderFieldEnum.Types.LocalPlaceholderField LocalField {
get { return fieldCase_ == FieldOneofCase.LocalField ? (global::Google.Ads.GoogleAds.V3.Enums.LocalPlaceholderFieldEnum.Types.LocalPlaceholderField) field_ : global::Google.Ads.GoogleAds.V3.Enums.LocalPlaceholderFieldEnum.Types.LocalPlaceholderField.Unspecified; }
set {
field_ = value;
fieldCase_ = FieldOneofCase.LocalField;
}
}
/// <summary>Field number for the "job_field" field.</summary>
public const int JobFieldFieldNumber = 23;
/// <summary>
/// Immutable. Job Placeholder Fields
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Ads.GoogleAds.V3.Enums.JobPlaceholderFieldEnum.Types.JobPlaceholderField JobField {
get { return fieldCase_ == FieldOneofCase.JobField ? (global::Google.Ads.GoogleAds.V3.Enums.JobPlaceholderFieldEnum.Types.JobPlaceholderField) field_ : global::Google.Ads.GoogleAds.V3.Enums.JobPlaceholderFieldEnum.Types.JobPlaceholderField.Unspecified; }
set {
field_ = value;
fieldCase_ = FieldOneofCase.JobField;
}
}
private object field_;
/// <summary>Enum of possible cases for the "field" oneof.</summary>
public enum FieldOneofCase {
None = 0,
SitelinkField = 3,
CallField = 4,
AppField = 5,
LocationField = 6,
AffiliateLocationField = 7,
CalloutField = 8,
StructuredSnippetField = 9,
MessageField = 10,
PriceField = 11,
PromotionField = 12,
AdCustomizerField = 13,
DsaPageFeedField = 14,
LocationExtensionTargetingField = 15,
EducationField = 16,
FlightField = 17,
CustomField = 18,
HotelField = 19,
RealEstateField = 20,
TravelField = 21,
LocalField = 22,
JobField = 23,
}
private FieldOneofCase fieldCase_ = FieldOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public FieldOneofCase FieldCase {
get { return fieldCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearField() {
fieldCase_ = FieldOneofCase.None;
field_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as AttributeFieldMapping);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(AttributeFieldMapping other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (FeedAttributeId != other.FeedAttributeId) return false;
if (FieldId != other.FieldId) return false;
if (SitelinkField != other.SitelinkField) return false;
if (CallField != other.CallField) return false;
if (AppField != other.AppField) return false;
if (LocationField != other.LocationField) return false;
if (AffiliateLocationField != other.AffiliateLocationField) return false;
if (CalloutField != other.CalloutField) return false;
if (StructuredSnippetField != other.StructuredSnippetField) return false;
if (MessageField != other.MessageField) return false;
if (PriceField != other.PriceField) return false;
if (PromotionField != other.PromotionField) return false;
if (AdCustomizerField != other.AdCustomizerField) return false;
if (DsaPageFeedField != other.DsaPageFeedField) return false;
if (LocationExtensionTargetingField != other.LocationExtensionTargetingField) return false;
if (EducationField != other.EducationField) return false;
if (FlightField != other.FlightField) return false;
if (CustomField != other.CustomField) return false;
if (HotelField != other.HotelField) return false;
if (RealEstateField != other.RealEstateField) return false;
if (TravelField != other.TravelField) return false;
if (LocalField != other.LocalField) return false;
if (JobField != other.JobField) return false;
if (FieldCase != other.FieldCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (feedAttributeId_ != null) hash ^= FeedAttributeId.GetHashCode();
if (fieldId_ != null) hash ^= FieldId.GetHashCode();
if (fieldCase_ == FieldOneofCase.SitelinkField) hash ^= SitelinkField.GetHashCode();
if (fieldCase_ == FieldOneofCase.CallField) hash ^= CallField.GetHashCode();
if (fieldCase_ == FieldOneofCase.AppField) hash ^= AppField.GetHashCode();
if (fieldCase_ == FieldOneofCase.LocationField) hash ^= LocationField.GetHashCode();
if (fieldCase_ == FieldOneofCase.AffiliateLocationField) hash ^= AffiliateLocationField.GetHashCode();
if (fieldCase_ == FieldOneofCase.CalloutField) hash ^= CalloutField.GetHashCode();
if (fieldCase_ == FieldOneofCase.StructuredSnippetField) hash ^= StructuredSnippetField.GetHashCode();
if (fieldCase_ == FieldOneofCase.MessageField) hash ^= MessageField.GetHashCode();
if (fieldCase_ == FieldOneofCase.PriceField) hash ^= PriceField.GetHashCode();
if (fieldCase_ == FieldOneofCase.PromotionField) hash ^= PromotionField.GetHashCode();
if (fieldCase_ == FieldOneofCase.AdCustomizerField) hash ^= AdCustomizerField.GetHashCode();
if (fieldCase_ == FieldOneofCase.DsaPageFeedField) hash ^= DsaPageFeedField.GetHashCode();
if (fieldCase_ == FieldOneofCase.LocationExtensionTargetingField) hash ^= LocationExtensionTargetingField.GetHashCode();
if (fieldCase_ == FieldOneofCase.EducationField) hash ^= EducationField.GetHashCode();
if (fieldCase_ == FieldOneofCase.FlightField) hash ^= FlightField.GetHashCode();
if (fieldCase_ == FieldOneofCase.CustomField) hash ^= CustomField.GetHashCode();
if (fieldCase_ == FieldOneofCase.HotelField) hash ^= HotelField.GetHashCode();
if (fieldCase_ == FieldOneofCase.RealEstateField) hash ^= RealEstateField.GetHashCode();
if (fieldCase_ == FieldOneofCase.TravelField) hash ^= TravelField.GetHashCode();
if (fieldCase_ == FieldOneofCase.LocalField) hash ^= LocalField.GetHashCode();
if (fieldCase_ == FieldOneofCase.JobField) hash ^= JobField.GetHashCode();
hash ^= (int) fieldCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (feedAttributeId_ != null) {
_single_feedAttributeId_codec.WriteTagAndValue(output, FeedAttributeId);
}
if (fieldId_ != null) {
_single_fieldId_codec.WriteTagAndValue(output, FieldId);
}
if (fieldCase_ == FieldOneofCase.SitelinkField) {
output.WriteRawTag(24);
output.WriteEnum((int) SitelinkField);
}
if (fieldCase_ == FieldOneofCase.CallField) {
output.WriteRawTag(32);
output.WriteEnum((int) CallField);
}
if (fieldCase_ == FieldOneofCase.AppField) {
output.WriteRawTag(40);
output.WriteEnum((int) AppField);
}
if (fieldCase_ == FieldOneofCase.LocationField) {
output.WriteRawTag(48);
output.WriteEnum((int) LocationField);
}
if (fieldCase_ == FieldOneofCase.AffiliateLocationField) {
output.WriteRawTag(56);
output.WriteEnum((int) AffiliateLocationField);
}
if (fieldCase_ == FieldOneofCase.CalloutField) {
output.WriteRawTag(64);
output.WriteEnum((int) CalloutField);
}
if (fieldCase_ == FieldOneofCase.StructuredSnippetField) {
output.WriteRawTag(72);
output.WriteEnum((int) StructuredSnippetField);
}
if (fieldCase_ == FieldOneofCase.MessageField) {
output.WriteRawTag(80);
output.WriteEnum((int) MessageField);
}
if (fieldCase_ == FieldOneofCase.PriceField) {
output.WriteRawTag(88);
output.WriteEnum((int) PriceField);
}
if (fieldCase_ == FieldOneofCase.PromotionField) {
output.WriteRawTag(96);
output.WriteEnum((int) PromotionField);
}
if (fieldCase_ == FieldOneofCase.AdCustomizerField) {
output.WriteRawTag(104);
output.WriteEnum((int) AdCustomizerField);
}
if (fieldCase_ == FieldOneofCase.DsaPageFeedField) {
output.WriteRawTag(112);
output.WriteEnum((int) DsaPageFeedField);
}
if (fieldCase_ == FieldOneofCase.LocationExtensionTargetingField) {
output.WriteRawTag(120);
output.WriteEnum((int) LocationExtensionTargetingField);
}
if (fieldCase_ == FieldOneofCase.EducationField) {
output.WriteRawTag(128, 1);
output.WriteEnum((int) EducationField);
}
if (fieldCase_ == FieldOneofCase.FlightField) {
output.WriteRawTag(136, 1);
output.WriteEnum((int) FlightField);
}
if (fieldCase_ == FieldOneofCase.CustomField) {
output.WriteRawTag(144, 1);
output.WriteEnum((int) CustomField);
}
if (fieldCase_ == FieldOneofCase.HotelField) {
output.WriteRawTag(152, 1);
output.WriteEnum((int) HotelField);
}
if (fieldCase_ == FieldOneofCase.RealEstateField) {
output.WriteRawTag(160, 1);
output.WriteEnum((int) RealEstateField);
}
if (fieldCase_ == FieldOneofCase.TravelField) {
output.WriteRawTag(168, 1);
output.WriteEnum((int) TravelField);
}
if (fieldCase_ == FieldOneofCase.LocalField) {
output.WriteRawTag(176, 1);
output.WriteEnum((int) LocalField);
}
if (fieldCase_ == FieldOneofCase.JobField) {
output.WriteRawTag(184, 1);
output.WriteEnum((int) JobField);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (feedAttributeId_ != null) {
_single_feedAttributeId_codec.WriteTagAndValue(ref output, FeedAttributeId);
}
if (fieldId_ != null) {
_single_fieldId_codec.WriteTagAndValue(ref output, FieldId);
}
if (fieldCase_ == FieldOneofCase.SitelinkField) {
output.WriteRawTag(24);
output.WriteEnum((int) SitelinkField);
}
if (fieldCase_ == FieldOneofCase.CallField) {
output.WriteRawTag(32);
output.WriteEnum((int) CallField);
}
if (fieldCase_ == FieldOneofCase.AppField) {
output.WriteRawTag(40);
output.WriteEnum((int) AppField);
}
if (fieldCase_ == FieldOneofCase.LocationField) {
output.WriteRawTag(48);
output.WriteEnum((int) LocationField);
}
if (fieldCase_ == FieldOneofCase.AffiliateLocationField) {
output.WriteRawTag(56);
output.WriteEnum((int) AffiliateLocationField);
}
if (fieldCase_ == FieldOneofCase.CalloutField) {
output.WriteRawTag(64);
output.WriteEnum((int) CalloutField);
}
if (fieldCase_ == FieldOneofCase.StructuredSnippetField) {
output.WriteRawTag(72);
output.WriteEnum((int) StructuredSnippetField);
}
if (fieldCase_ == FieldOneofCase.MessageField) {
output.WriteRawTag(80);
output.WriteEnum((int) MessageField);
}
if (fieldCase_ == FieldOneofCase.PriceField) {
output.WriteRawTag(88);
output.WriteEnum((int) PriceField);
}
if (fieldCase_ == FieldOneofCase.PromotionField) {
output.WriteRawTag(96);
output.WriteEnum((int) PromotionField);
}
if (fieldCase_ == FieldOneofCase.AdCustomizerField) {
output.WriteRawTag(104);
output.WriteEnum((int) AdCustomizerField);
}
if (fieldCase_ == FieldOneofCase.DsaPageFeedField) {
output.WriteRawTag(112);
output.WriteEnum((int) DsaPageFeedField);
}
if (fieldCase_ == FieldOneofCase.LocationExtensionTargetingField) {
output.WriteRawTag(120);
output.WriteEnum((int) LocationExtensionTargetingField);
}
if (fieldCase_ == FieldOneofCase.EducationField) {
output.WriteRawTag(128, 1);
output.WriteEnum((int) EducationField);
}
if (fieldCase_ == FieldOneofCase.FlightField) {
output.WriteRawTag(136, 1);
output.WriteEnum((int) FlightField);
}
if (fieldCase_ == FieldOneofCase.CustomField) {
output.WriteRawTag(144, 1);
output.WriteEnum((int) CustomField);
}
if (fieldCase_ == FieldOneofCase.HotelField) {
output.WriteRawTag(152, 1);
output.WriteEnum((int) HotelField);
}
if (fieldCase_ == FieldOneofCase.RealEstateField) {
output.WriteRawTag(160, 1);
output.WriteEnum((int) RealEstateField);
}
if (fieldCase_ == FieldOneofCase.TravelField) {
output.WriteRawTag(168, 1);
output.WriteEnum((int) TravelField);
}
if (fieldCase_ == FieldOneofCase.LocalField) {
output.WriteRawTag(176, 1);
output.WriteEnum((int) LocalField);
}
if (fieldCase_ == FieldOneofCase.JobField) {
output.WriteRawTag(184, 1);
output.WriteEnum((int) JobField);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (feedAttributeId_ != null) {
size += _single_feedAttributeId_codec.CalculateSizeWithTag(FeedAttributeId);
}
if (fieldId_ != null) {
size += _single_fieldId_codec.CalculateSizeWithTag(FieldId);
}
if (fieldCase_ == FieldOneofCase.SitelinkField) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SitelinkField);
}
if (fieldCase_ == FieldOneofCase.CallField) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CallField);
}
if (fieldCase_ == FieldOneofCase.AppField) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AppField);
}
if (fieldCase_ == FieldOneofCase.LocationField) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) LocationField);
}
if (fieldCase_ == FieldOneofCase.AffiliateLocationField) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AffiliateLocationField);
}
if (fieldCase_ == FieldOneofCase.CalloutField) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CalloutField);
}
if (fieldCase_ == FieldOneofCase.StructuredSnippetField) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StructuredSnippetField);
}
if (fieldCase_ == FieldOneofCase.MessageField) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MessageField);
}
if (fieldCase_ == FieldOneofCase.PriceField) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PriceField);
}
if (fieldCase_ == FieldOneofCase.PromotionField) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PromotionField);
}
if (fieldCase_ == FieldOneofCase.AdCustomizerField) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AdCustomizerField);
}
if (fieldCase_ == FieldOneofCase.DsaPageFeedField) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DsaPageFeedField);
}
if (fieldCase_ == FieldOneofCase.LocationExtensionTargetingField) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) LocationExtensionTargetingField);
}
if (fieldCase_ == FieldOneofCase.EducationField) {
size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) EducationField);
}
if (fieldCase_ == FieldOneofCase.FlightField) {
size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) FlightField);
}
if (fieldCase_ == FieldOneofCase.CustomField) {
size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) CustomField);
}
if (fieldCase_ == FieldOneofCase.HotelField) {
size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) HotelField);
}
if (fieldCase_ == FieldOneofCase.RealEstateField) {
size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) RealEstateField);
}
if (fieldCase_ == FieldOneofCase.TravelField) {
size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) TravelField);
}
if (fieldCase_ == FieldOneofCase.LocalField) {
size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) LocalField);
}
if (fieldCase_ == FieldOneofCase.JobField) {
size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) JobField);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(AttributeFieldMapping other) {
if (other == null) {
return;
}
if (other.feedAttributeId_ != null) {
if (feedAttributeId_ == null || other.FeedAttributeId != 0L) {
FeedAttributeId = other.FeedAttributeId;
}
}
if (other.fieldId_ != null) {
if (fieldId_ == null || other.FieldId != 0L) {
FieldId = other.FieldId;
}
}
switch (other.FieldCase) {
case FieldOneofCase.SitelinkField:
SitelinkField = other.SitelinkField;
break;
case FieldOneofCase.CallField:
CallField = other.CallField;
break;
case FieldOneofCase.AppField:
AppField = other.AppField;
break;
case FieldOneofCase.LocationField:
LocationField = other.LocationField;
break;
case FieldOneofCase.AffiliateLocationField:
AffiliateLocationField = other.AffiliateLocationField;
break;
case FieldOneofCase.CalloutField:
CalloutField = other.CalloutField;
break;
case FieldOneofCase.StructuredSnippetField:
StructuredSnippetField = other.StructuredSnippetField;
break;
case FieldOneofCase.MessageField:
MessageField = other.MessageField;
break;
case FieldOneofCase.PriceField:
PriceField = other.PriceField;
break;
case FieldOneofCase.PromotionField:
PromotionField = other.PromotionField;
break;
case FieldOneofCase.AdCustomizerField:
AdCustomizerField = other.AdCustomizerField;
break;
case FieldOneofCase.DsaPageFeedField:
DsaPageFeedField = other.DsaPageFeedField;
break;
case FieldOneofCase.LocationExtensionTargetingField:
LocationExtensionTargetingField = other.LocationExtensionTargetingField;
break;
case FieldOneofCase.EducationField:
EducationField = other.EducationField;
break;
case FieldOneofCase.FlightField:
FlightField = other.FlightField;
break;
case FieldOneofCase.CustomField:
CustomField = other.CustomField;
break;
case FieldOneofCase.HotelField:
HotelField = other.HotelField;
break;
case FieldOneofCase.RealEstateField:
RealEstateField = other.RealEstateField;
break;
case FieldOneofCase.TravelField:
TravelField = other.TravelField;
break;
case FieldOneofCase.LocalField:
LocalField = other.LocalField;
break;
case FieldOneofCase.JobField:
JobField = other.JobField;
break;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
long? value = _single_feedAttributeId_codec.Read(input);
if (feedAttributeId_ == null || value != 0L) {
FeedAttributeId = value;
}
break;
}
case 18: {
long? value = _single_fieldId_codec.Read(input);
if (fieldId_ == null || value != 0L) {
FieldId = value;
}
break;
}
case 24: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.SitelinkField;
break;
}
case 32: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.CallField;
break;
}
case 40: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.AppField;
break;
}
case 48: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.LocationField;
break;
}
case 56: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.AffiliateLocationField;
break;
}
case 64: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.CalloutField;
break;
}
case 72: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.StructuredSnippetField;
break;
}
case 80: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.MessageField;
break;
}
case 88: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.PriceField;
break;
}
case 96: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.PromotionField;
break;
}
case 104: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.AdCustomizerField;
break;
}
case 112: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.DsaPageFeedField;
break;
}
case 120: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.LocationExtensionTargetingField;
break;
}
case 128: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.EducationField;
break;
}
case 136: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.FlightField;
break;
}
case 144: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.CustomField;
break;
}
case 152: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.HotelField;
break;
}
case 160: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.RealEstateField;
break;
}
case 168: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.TravelField;
break;
}
case 176: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.LocalField;
break;
}
case 184: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.JobField;
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
long? value = _single_feedAttributeId_codec.Read(ref input);
if (feedAttributeId_ == null || value != 0L) {
FeedAttributeId = value;
}
break;
}
case 18: {
long? value = _single_fieldId_codec.Read(ref input);
if (fieldId_ == null || value != 0L) {
FieldId = value;
}
break;
}
case 24: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.SitelinkField;
break;
}
case 32: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.CallField;
break;
}
case 40: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.AppField;
break;
}
case 48: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.LocationField;
break;
}
case 56: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.AffiliateLocationField;
break;
}
case 64: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.CalloutField;
break;
}
case 72: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.StructuredSnippetField;
break;
}
case 80: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.MessageField;
break;
}
case 88: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.PriceField;
break;
}
case 96: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.PromotionField;
break;
}
case 104: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.AdCustomizerField;
break;
}
case 112: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.DsaPageFeedField;
break;
}
case 120: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.LocationExtensionTargetingField;
break;
}
case 128: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.EducationField;
break;
}
case 136: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.FlightField;
break;
}
case 144: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.CustomField;
break;
}
case 152: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.HotelField;
break;
}
case 160: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.RealEstateField;
break;
}
case 168: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.TravelField;
break;
}
case 176: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.LocalField;
break;
}
case 184: {
field_ = input.ReadEnum();
fieldCase_ = FieldOneofCase.JobField;
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code
| 44.770148 | 2,304 | 0.684541 | [
"Apache-2.0"
] | PierrickVoulet/google-ads-dotnet | src/V3/Types/FeedMapping.cs | 78,885 | C# |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.GoogleNative.Storage.V1.Outputs
{
/// <summary>
/// The bucket's uniform bucket-level access configuration. The feature was formerly known as Bucket Policy Only. For backward compatibility, this field will be populated with identical information as the uniformBucketLevelAccess field. We recommend using the uniformBucketLevelAccess field to enable and disable the feature.
/// </summary>
[OutputType]
public sealed class BucketIamConfigurationBucketPolicyOnlyResponse
{
/// <summary>
/// If set, access is controlled only by bucket-level or above IAM policies.
/// </summary>
public readonly bool Enabled;
/// <summary>
/// The deadline for changing iamConfiguration.bucketPolicyOnly.enabled from true to false in RFC 3339 format. iamConfiguration.bucketPolicyOnly.enabled may be changed from true to false until the locked time, after which the field is immutable.
/// </summary>
public readonly string LockedTime;
[OutputConstructor]
private BucketIamConfigurationBucketPolicyOnlyResponse(
bool enabled,
string lockedTime)
{
Enabled = enabled;
LockedTime = lockedTime;
}
}
}
| 40.230769 | 329 | 0.703633 | [
"Apache-2.0"
] | AaronFriel/pulumi-google-native | sdk/dotnet/Storage/V1/Outputs/BucketIamConfigurationBucketPolicyOnlyResponse.cs | 1,569 | C# |
using System;
namespace HeathenEngineering.Scriptable
{
[Serializable]
public class IntReference : VariableReference<int>
{
public IntVariable Variable;
public override IDataVariable<int> m_variable => Variable;
public IntReference(int value) : base(value)
{ }
}
}
| 19.8125 | 66 | 0.665615 | [
"MIT"
] | TH3UNKN0WN-1337/Heathen-System-Core | Assets/_Heathen Engineering/SystemsCore/Framework/Scriptable/Data Types/Int/IntReference.cs | 319 | C# |
// Copyright 2015 Adamantworks. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
using System;
using System.Collections.Generic;
using System.Linq;
using Aws = Amazon.DynamoDBv2.Model;
namespace Adamantworks.Amazon.DynamoDB.Internal
{
internal static class AwsAttributeValues
{
public static Dictionary<string, Aws.AttributeValue> GetCombined(params IAwsAttributeValuesProvider[] valuesProviders)
{
Dictionary<string, Aws.AttributeValue> combinedValues = null;
foreach(var valuesProvider in valuesProviders.Where(valuesProvider => valuesProvider != null))
{
var values = valuesProvider.ToAwsAttributeValues();
if(values == null || values.Count == 0)
continue;
if(combinedValues == null)
{
combinedValues = values;
continue;
}
// Merge values
foreach(var value in values)
{
Aws.AttributeValue existingValue;
if(!combinedValues.TryGetValue(value.Key, out existingValue))
combinedValues.Add(value.Key, value.Value);
else
throw new Exception(String.Format("Two values provided for attribute value " + value.Key));
}
}
return combinedValues;
}
}
}
| 32.698113 | 121 | 0.705713 | [
"Apache-2.0"
] | Adamantworks/Amazon.DynamoDB | DynamoDB/Internal/AwsAttributeValues.cs | 1,735 | C# |
using Microsoft.EntityFrameworkCore;
using WordleTracker.Data.Models;
namespace WordleTracker.Svc;
public partial class GroupSvc
{
public async Task<GroupDetails?> GetGroupDetails(int groupId, CancellationToken cancellationToken)
{
var group = await DbContext
.Groups
.AsNoTracking()
.Select(group => new
{
group.Id,
group.Name,
Members = group.Memberships.Select(membership => new
{
membership.UserId,
membership.Role,
membership.User.Name
})
})
.FirstOrDefaultAsync(group => group.Id == groupId, cancellationToken);
if (group == null)
{
return null;
}
var userIds = group.Members.Select(member => member.UserId).ToList();
var results = (await DbContext
.Results
.AsNoTracking()
.Where(result => userIds.Contains(result.UserId))
.Select(result => new
{
result.UserId,
result.Day.Date,
GuessCount = result.Guesses.Count,
result.HardMode,
result.IsSolved
})
.ToListAsync(cancellationToken))
.ToLookup(result => result.UserId, result => new GroupResult(
DateOnly.FromDateTime(result.Date.UtcDateTime),
result.IsSolved,
result.HardMode,
result.GuessCount
));
return new GroupDetails(
groupId,
group.Name,
group.Members
.Select(member => new GroupUser(
member.UserId,
member.Name,
member.Role,
results[member.UserId].ToList()))
.ToList()
);
}
}
public record GroupDetails(int Id, string Name, List<GroupUser> Users);
public record GroupUser(string UserId, string Name, GroupRole Role, List<GroupResult> Results);
public record GroupResult(DateOnly Date, bool IsSolved, bool HardMode, int GuessCount);
| 23.347222 | 99 | 0.69304 | [
"MIT"
] | HolyMeekrob/WordleTracker | WordleTracker.Svc/Group/GetGroupDetails.cs | 1,683 | C# |
namespace GMap.NET.CacheProviders
{
#if !SQLite
using System;
using System.Data;
using System.Diagnostics;
using System.IO;
using SqlCommand = System.Data.SqlServerCe.SqlCeCommand;
using SqlConnection = System.Data.SqlServerCe.SqlCeConnection;
using GMap.NET.MapProviders;
/// <summary>
/// image cache for ms sql server
/// </summary>
public class MsSQLCePureImageCache : PureImageCache, IDisposable
{
string cache;
string gtileCache;
/// <summary>
/// local cache location
/// </summary>
public string CacheLocation
{
get
{
return cache;
}
set
{
cache = value;
gtileCache = Path.Combine(cache, "TileDBv3") + Path.DirectorySeparatorChar + GMapProvider.LanguageStr + Path.DirectorySeparatorChar;
}
}
SqlCommand cmdInsert;
SqlCommand cmdFetch;
SqlConnection cnGet;
SqlConnection cnSet;
/// <summary>
/// is cache initialized
/// </summary>
public volatile bool Initialized = false;
/// <summary>
/// inits connection to server
/// </summary>
/// <returns></returns>
public bool Initialize()
{
if(!Initialized)
{
#region prepare mssql & cache table
try
{
// precrete dir
if(!Directory.Exists(gtileCache))
{
Directory.CreateDirectory(gtileCache);
}
string connectionString = string.Format("Data Source={0}Data.sdf", gtileCache);
if(!File.Exists(gtileCache + "Data.sdf"))
{
using(System.Data.SqlServerCe.SqlCeEngine engine = new System.Data.SqlServerCe.SqlCeEngine(connectionString))
{
engine.CreateDatabase();
}
try
{
using(SqlConnection c = new SqlConnection(connectionString))
{
c.Open();
using(SqlCommand cmd = new SqlCommand(
"CREATE TABLE [GMapNETcache] ( \n"
+ " [Type] [int] NOT NULL, \n"
+ " [Zoom] [int] NOT NULL, \n"
+ " [X] [int] NOT NULL, \n"
+ " [Y] [int] NOT NULL, \n"
+ " [Tile] [image] NOT NULL, \n"
+ " CONSTRAINT [PK_GMapNETcache] PRIMARY KEY (Type, Zoom, X, Y) \n"
+ ")", c))
{
cmd.ExecuteNonQuery();
}
}
}
catch(Exception ex)
{
try
{
File.Delete(gtileCache + "Data.sdf");
}
catch
{
}
throw ex;
}
}
// different connections so the multi-thread inserts and selects don't collide on open readers.
this.cnGet = new SqlConnection(connectionString);
this.cnGet.Open();
this.cnSet = new SqlConnection(connectionString);
this.cnSet.Open();
this.cmdFetch = new SqlCommand("SELECT [Tile] FROM [GMapNETcache] WITH (NOLOCK) WHERE [X]=@x AND [Y]=@y AND [Zoom]=@zoom AND [Type]=@type", cnGet);
this.cmdFetch.Parameters.Add("@x", System.Data.SqlDbType.Int);
this.cmdFetch.Parameters.Add("@y", System.Data.SqlDbType.Int);
this.cmdFetch.Parameters.Add("@zoom", System.Data.SqlDbType.Int);
this.cmdFetch.Parameters.Add("@type", System.Data.SqlDbType.Int);
this.cmdFetch.Prepare();
this.cmdInsert = new SqlCommand("INSERT INTO [GMapNETcache] ( [X], [Y], [Zoom], [Type], [Tile] ) VALUES ( @x, @y, @zoom, @type, @tile )", cnSet);
this.cmdInsert.Parameters.Add("@x", System.Data.SqlDbType.Int);
this.cmdInsert.Parameters.Add("@y", System.Data.SqlDbType.Int);
this.cmdInsert.Parameters.Add("@zoom", System.Data.SqlDbType.Int);
this.cmdInsert.Parameters.Add("@type", System.Data.SqlDbType.Int);
this.cmdInsert.Parameters.Add("@tile", System.Data.SqlDbType.Image); //, calcmaximgsize);
//can't prepare insert because of the IMAGE field having a variable size. Could set it to some 'maximum' size?
Initialized = true;
}
catch(Exception ex)
{
Initialized = false;
Debug.WriteLine(ex.Message);
}
#endregion
}
return Initialized;
}
#region IDisposable Members
public void Dispose()
{
lock(cmdInsert)
{
if(cmdInsert != null)
{
cmdInsert.Dispose();
cmdInsert = null;
}
if(cnSet != null)
{
cnSet.Dispose();
cnSet = null;
}
}
lock(cmdFetch)
{
if(cmdFetch != null)
{
cmdFetch.Dispose();
cmdFetch = null;
}
if(cnGet != null)
{
cnGet.Dispose();
cnGet = null;
}
}
Initialized = false;
}
#endregion
#region PureImageCache Members
public bool PutImageToCache(byte[] tile, int type, GPoint pos, int zoom)
{
bool ret = true;
{
if(Initialize())
{
try
{
lock(cmdInsert)
{
cmdInsert.Parameters["@x"].Value = pos.X;
cmdInsert.Parameters["@y"].Value = pos.Y;
cmdInsert.Parameters["@zoom"].Value = zoom;
cmdInsert.Parameters["@type"].Value = type;
cmdInsert.Parameters["@tile"].Value = tile;
cmdInsert.ExecuteNonQuery();
}
}
catch(Exception ex)
{
Debug.WriteLine(ex.ToString());
ret = false;
Dispose();
}
}
}
return ret;
}
public PureImage GetImageFromCache(int type, GPoint pos, int zoom)
{
PureImage ret = null;
{
if(Initialize())
{
try
{
object odata = null;
lock(cmdFetch)
{
cmdFetch.Parameters["@x"].Value = pos.X;
cmdFetch.Parameters["@y"].Value = pos.Y;
cmdFetch.Parameters["@zoom"].Value = zoom;
cmdFetch.Parameters["@type"].Value = type;
odata = cmdFetch.ExecuteScalar();
}
if(odata != null && odata != DBNull.Value)
{
byte[] tile = (byte[])odata;
if(tile != null && tile.Length > 0)
{
if(GMapProvider.TileImageProxy != null)
{
ret = GMapProvider.TileImageProxy.FromArray(tile);
}
}
tile = null;
}
}
catch(Exception ex)
{
Debug.WriteLine(ex.ToString());
ret = null;
Dispose();
}
}
}
return ret;
}
int PureImageCache.DeleteOlderThan(DateTime date, int ? type)
{
throw new NotImplementedException();
}
#endregion
}
#endif
}
| 31.4375 | 162 | 0.445577 | [
"Apache-2.0"
] | Markkkkk/UnitTest | GMap.NET.Core/GMap.NET.CacheProviders/MSSQLCEPureImageCache.cs | 8,050 | C# |
using FM4CC.TestCase;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FM4CC.FaultModels.Step
{
public class StepFaultModelTestCase : FaultModelTesterTestCase
{
public override string GetDescription()
{
return "Initial Desired Value - " + Input["Initial"] + ", Desired Value - " + Input["Final"];
}
}
}
| 23.888889 | 105 | 0.67907 | [
"Apache-2.0"
] | AlvinStanescu/ControllerTester | FaultModels/StepFaultModel/StepFaultModelTestCase.cs | 432 | C# |
namespace Nuve.Test.Analysis
{
public sealed class SpecialCase
{
#region string[] FiilDemekYemek
public static string[] FiilDemekYemek =
{
"de",
"ye",
"deyiş",
"yiyiş",
"deme",
"yeme",
"demek",
"yemek",
"diyecek",
"yiyecek",
"diyen",
"yiyen",
"diyesi",
"yiyesi",
"diyesice",
"yiyesice",
"dedik",
"yedik",
"demez",
"yemez",
"demiş",
"yemiş",
"diye",
"yiye",
"diyeli",
"yiyeli",
"diyerek",
"yiyerek",
"diyesiye",
"yiyesiye",
"deyip",
"yiyip",
"deyince",
"yiyince",
"dedikçe",
"yedikçe",
"demeden",
"yemeden",
"yedir",
"dedir",
"yedirt",
"dedirt",
"yedirtiyor",
"dedirtiyor",
"deyiver",
"yiyiver"
};
#endregion
#region string[] GecersizFiilDemekYemek
public static string[] GecersizFiilDemekYemek =
{
"di",
"yi",
"diyiş",
"yeyiş",
"deyecek",
"yeyecek",
"deyen",
"yeyen",
"deyesi",
"yeyesi",
"deye",
"yeye",
"deyerek",
"diyip",
"yeyip",
"diyince",
"diyiver",
"yeyiver"
};
#endregion
#region string[] IsimSu
public static string[] IsimSu =
{
"su",
"suyu",
"sulu",
"suya",
"suda",
"sudan",
"suyun",
"suyla",
"sular",
"suyum",
"suyumuz",
"suyumsu",
"suymuş",
"suydu",
"suysa",
"suyken"
};
#endregion
#region string[] GecersizIsimSu
public static string[] GecersizIsimSu =
{
"suysuz",
"susu",
"suylu",
"suylar"
};
#endregion
/// <summary>
/// Todo: Bu grup ayrıca çallışılacak
/// </summary>
#region string[] ZamirSoruNe
public static string[] ZamirSoruNe =
{
"ne",
"neyi",
"neye",
"neden",
"neyin",
"neyle",
"neler",
"neyim",
"neyimiz",
"nesi",
"neymiş",
"neydi",
"neyse",
"neyken",
"nen",
"nem",
"neniz",
"nemiz",
"nesi",
"nenin",
"nende",
"nenize"
};
#endregion
/// <summary>
/// todo şapkasız kullanımı da doğru kabul etmişiz. Bunun için de kökleri sözlüğe şapkalı ve şapkasız versiyon
/// olmak üzere iki defa girmişiz.
/// </summary>
#region string[] Şapkalı
public static string[] Şapkalı =
{
"inkar",
"inkardır",
"inkâr",
"inkârdır",
"yar",
"yâr",
"yarim",
"yârim",
"yârım",
"yarım"
};
#region string[] GecersizZamirSoruNe
public static string[] GecersizZamirSoruNe =
{
"nede"
};
#endregion
#region string[] UnluIncelmesi
public static string[] UnluIncelmesi =
{
"saate",
"gole",
"alkolü",
"ampulde",
"kabulden"
};
#endregion
#region string[] GecersizUnluIncelmesi
public static string[] GecersizUnluIncelmesi =
{
"saata",
"gola",
"alkolu",
"ampulda",
"kabuldan"
};
#endregion
#region string[] Yumuşama_K_G_Ğ
public static string[] Yumuşama_K_G_Ğ =
{
"cenkle",
"cenge",
"çelengine",
"psikologla",
"psikoloğa"
};
#endregion
#endregion
}
} | 20.227679 | 122 | 0.358199 | [
"MIT"
] | diegolinan/nuve | Nuve.Test/Analysis/SpecialCase.cs | 4,585 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SC.Service.Elements.IO
{
/// <summary>
/// Distinguishes the different status a calculation can be in.
/// </summary>
public enum StatusCodes
{
Pending = 0,
Ongoing = 1,
Done = 2,
Error = 3,
}
}
| 18.947368 | 67 | 0.611111 | [
"MIT"
] | merschformann/sardine-can | SC.Service/Elements/IO/StatusCodes.cs | 362 | C# |
using System.Diagnostics.CodeAnalysis;
using StardewValley;
using TehPers.Core.Api.Items;
using TehPers.FishingOverhaul.Api;
using TehPers.FishingOverhaul.Api.Content;
namespace TehPers.FishingOverhaul.Content
{
internal record GoldenWalnutEntry(AvailabilityInfo AvailabilityInfo) : TrashEntry(
NamespacedKey.SdvObject(73),
AvailabilityInfo
)
{
public override bool TryCreateItem(
FishingInfo fishingInfo,
INamespaceRegistry namespaceRegistry,
[NotNullWhen(true)] out CaughtItem? item
)
{
if (!Game1.IsMultiplayer)
{
return base.TryCreateItem(fishingInfo, namespaceRegistry, out item);
}
item = default;
return false;
}
}
} | 27.655172 | 86 | 0.640898 | [
"MIT"
] | TehPers/Stardew-Valley-Mods | src/TehPers.FishingOverhaul/Content/GoldenWalnutEntry.cs | 804 | C# |
using DependencyServiceExtended.Attributes;
using DependencyServiceExtended.Test.Utils;
[assembly: DependencyRegister(typeof(IService5), typeof(Service5WithDependencyRegisterAttribute))]
namespace DependencyServiceExtended.Test.Utils
{
public class Service5WithDependencyRegisterAttribute:IService5
{
}
}
| 29 | 98 | 0.836991 | [
"MIT"
] | LuisM000/DependencyServiceExtendedXF | DependencyServiceExtended.Test/Utils/Service5WithDependencyRegisterAttribute.cs | 321 | C# |
using System;
class Calculate1NXN
{
static void Main()
{
// * Write a program that, for a given two integer numbers n and x,
// calculates the sum S = 1 + 1!/x + 2!/x2 + … + n!/x^n.
// * Use only one loop. Print the result
// with 5 digits after the decimal point.
Console.Write("n = ");
int n = int.Parse(Console.ReadLine());
Console.Write("x = ");
int x = int.Parse(Console.ReadLine());
double s = 1;
double fact = 1;
for (int i = 1; i <= n; i++)
{
fact *= i;
s += fact / Math.Pow(x, i);
}
Console.WriteLine("{0:F5}", s);
}
} | 27.36 | 76 | 0.475146 | [
"MIT"
] | YaneYosifov/Telerik | C# Part I/Homeworks/07-Loops/05-Calculate-NXN/CalculateNXN.cs | 688 | C# |
using System.Numerics;
using Miningcore.Serialization;
using Newtonsoft.Json;
namespace Miningcore.Blockchain.Ethereum.DaemonResponses
{
public class Transaction
{
/// <summary>
/// 32 Bytes - hash of the transaction.
/// </summary>
public string Hash { get; set; }
/// <summary>
/// the number of transactions made by the sender prior to this one.
/// </summary>
[JsonConverter(typeof(HexToIntegralTypeJsonConverter<ulong>))]
public ulong Nonce { get; set; }
/// <summary>
/// 32 Bytes - hash of the block where this transaction was in. null when its pending.
/// </summary>
public string BlockHash { get; set; }
/// <summary>
/// block number where this transaction was in. null when its pending.
/// </summary>
[JsonConverter(typeof(HexToIntegralTypeJsonConverter<ulong?>))]
public ulong? BlockNumber { get; set; }
/// <summary>
/// integer of the transactions index position in the block. null when its pending.
/// </summary>
[JsonProperty("transactionIndex")]
[JsonConverter(typeof(HexToIntegralTypeJsonConverter<ulong?>))]
public ulong? Index { get; set; }
/// <summary>
/// address of the sender.
/// </summary>
public string From { get; set; }
/// <summary>
/// address of the receiver. null when its a contract creation transaction.
/// </summary>
public string To { get; set; }
/// <summary>
/// Value transferred in Wei
/// </summary>
[JsonConverter(typeof(HexToIntegralTypeJsonConverter<BigInteger>))]
public BigInteger Value { get; set; }
/// <summary>
/// gas price provided by the sender in Wei.
/// </summary>
[JsonConverter(typeof(HexToIntegralTypeJsonConverter<BigInteger>))]
public BigInteger GasPrice { get; set; }
/// <summary>
/// gas provided by the sender
/// </summary>
[JsonConverter(typeof(HexToIntegralTypeJsonConverter<BigInteger>))]
public BigInteger Gas { get; set; }
/// <summary>
/// the data send along with the transaction.
/// </summary>
public string Input { get; set; }
}
public class Block
{
/// <summary>
/// The block number. null when its pending block.
/// </summary>
[JsonProperty("number")]
[JsonConverter(typeof(HexToIntegralTypeJsonConverter<ulong?>))]
public ulong? Height { get; set; }
/// <summary>
/// 32 Bytes - hash of the block. null when its pending block.
/// </summary>
public string Hash { get; set; }
/// <summary>
/// 32 Bytes - hash of the parent block.
/// </summary>
public string ParentHash { get; set; }
/// <summary>
/// 8 Bytes - hash of the generated proof-of-work. null when its pending block.
/// </summary>
public string Nonce { get; set; }
/// <summary>
/// An array containing all engine specific fields
/// https://github.com/ethereum/EIPs/issues/95
/// </summary>
public string[] SealFields { get; set; }
/// <summary>
/// 32 Bytes - SHA3 of the uncles data in the block.
/// </summary>
public string Sha3Uncles { get; set; }
/// <summary>
/// 256 Bytes - the bloom filter for the logs of the block. null when its pending block.
/// </summary>
public string LogsBloom { get; set; }
/// <summary>
/// 32 Bytes - the root of the transaction trie of the block.
/// </summary>
public string TransactionsRoot { get; set; }
/// <summary>
/// 32 Bytes - the root of the final state trie of the block.
/// </summary>
public string StateRoot { get; set; }
/// <summary>
/// 32 Bytes - the root of the receipts trie of the block.
/// </summary>
public string ReceiptsRoot { get; set; }
/// <summary>
/// 20 Bytes - the address of the beneficiary to whom the mining rewards were given.
/// </summary>
public string Miner { get; set; }
/// <summary>
/// integer of the difficulty for this block
/// </summary>
public string Difficulty { get; set; }
/// <summary>
/// integer of the total difficulty of the chain until this block.
/// </summary>
public string TotalDifficulty { get; set; }
/// <summary>
/// the "extra data" field of this block
/// </summary>
public string ExtraData { get; set; }
/// <summary>
/// integer the size of this block in bytes
/// </summary>
[JsonConverter(typeof(HexToIntegralTypeJsonConverter<ulong>))]
public ulong Size { get; set; }
/// <summary>
/// the maximum gas allowed in this block
/// </summary>
[JsonConverter(typeof(HexToIntegralTypeJsonConverter<ulong>))]
public ulong GasLimit { get; set; }
/// <summary>
/// the total used gas by all transactions in this block.
/// </summary>
[JsonConverter(typeof(HexToIntegralTypeJsonConverter<ulong>))]
public ulong GasUsed { get; set; }
/// <summary>
/// the unix timestamp for when the block was collated.
/// </summary>
[JsonConverter(typeof(HexToIntegralTypeJsonConverter<ulong>))]
public ulong Timestamp { get; set; }
/// <summary>
/// Array of transaction objects, or 32 Bytes transaction hashes depending on the last given parameter.
/// </summary>
public Transaction[] Transactions { get; set; }
/// <summary>
/// Array of uncle hashes.
/// </summary>
public string[] Uncles { get; set; }
/// <summary>
/// Base fee per gas.
/// </summary>
[JsonConverter(typeof(HexToIntegralTypeJsonConverter<ulong>))]
public ulong BaseFeePerGas { get; set; }
}
}
| 32.989362 | 111 | 0.564818 | [
"MIT"
] | CoinPoolServices/miningcore | src/Miningcore/Blockchain/Ethereum/DaemonResponses/GetBlockResponse.cs | 6,202 | C# |
using System;
using UnionFind;
using System.Diagnostics;
var n = 10000;
for (var t = 0; t < 5; t++)
{
var input = ErdosRenyi.Generate(n);
var weightedQuickUnionUf = new WeightedQuickUnionUf(n);
var weightedQuickUnionPathCompressionUf = new WeightedQuickUnionPathCompressionUf(n);
Console.WriteLine("N:" + n);
var weightedQuickUnionTime = RunTest(weightedQuickUnionUf, input);
var weightedQuickUnionPathCompressionTime = RunTest(weightedQuickUnionPathCompressionUf, input);
Console.WriteLine("加权 quick-find 耗时(毫秒):" + weightedQuickUnionTime);
Console.WriteLine("带路径压缩的加权 quick-union 耗时(毫秒):" + weightedQuickUnionPathCompressionTime);
Console.WriteLine("比值:" + (double)weightedQuickUnionTime / weightedQuickUnionPathCompressionTime);
Console.WriteLine();
n *= 2;
}
// 进行若干次随机试验,输出平均 union 次数,返回平均耗时。
static long RunTest(Uf uf, Connection[] connections)
{
var timer = new Stopwatch();
var repeatTime = 5;
timer.Start();
for (var i = 0; i < repeatTime; i++)
{
ErdosRenyi.Count(uf, connections);
}
timer.Stop();
return timer.ElapsedMilliseconds / repeatTime;
} | 30.184211 | 102 | 0.713165 | [
"MIT"
] | Higurashi-kagome/Algorithms-4th-Edition-in-Csharp | 1 Fundamental/1.5/1.5.24/Program.cs | 1,251 | C# |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
using Pulumi.Utilities;
namespace Pulumi.Aws.Kinesis
{
public static class GetStream
{
/// <summary>
/// Use this data source to get information about a Kinesis Stream for use in other
/// resources.
///
/// For more details, see the [Amazon Kinesis Documentation](https://aws.amazon.com/documentation/kinesis/).
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using Pulumi;
/// using Aws = Pulumi.Aws;
///
/// class MyStack : Stack
/// {
/// public MyStack()
/// {
/// var stream = Output.Create(Aws.Kinesis.GetStream.InvokeAsync(new Aws.Kinesis.GetStreamArgs
/// {
/// Name = "stream-name",
/// }));
/// }
///
/// }
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Task<GetStreamResult> InvokeAsync(GetStreamArgs args, InvokeOptions? options = null)
=> Pulumi.Deployment.Instance.InvokeAsync<GetStreamResult>("aws:kinesis/getStream:getStream", args ?? new GetStreamArgs(), options.WithVersion());
/// <summary>
/// Use this data source to get information about a Kinesis Stream for use in other
/// resources.
///
/// For more details, see the [Amazon Kinesis Documentation](https://aws.amazon.com/documentation/kinesis/).
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using Pulumi;
/// using Aws = Pulumi.Aws;
///
/// class MyStack : Stack
/// {
/// public MyStack()
/// {
/// var stream = Output.Create(Aws.Kinesis.GetStream.InvokeAsync(new Aws.Kinesis.GetStreamArgs
/// {
/// Name = "stream-name",
/// }));
/// }
///
/// }
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Output<GetStreamResult> Invoke(GetStreamInvokeArgs args, InvokeOptions? options = null)
=> Pulumi.Deployment.Instance.Invoke<GetStreamResult>("aws:kinesis/getStream:getStream", args ?? new GetStreamInvokeArgs(), options.WithVersion());
}
public sealed class GetStreamArgs : Pulumi.InvokeArgs
{
/// <summary>
/// The name of the Kinesis Stream.
/// </summary>
[Input("name", required: true)]
public string Name { get; set; } = null!;
[Input("tags")]
private Dictionary<string, string>? _tags;
/// <summary>
/// A map of tags to assigned to the stream.
/// </summary>
public Dictionary<string, string> Tags
{
get => _tags ?? (_tags = new Dictionary<string, string>());
set => _tags = value;
}
public GetStreamArgs()
{
}
}
public sealed class GetStreamInvokeArgs : Pulumi.InvokeArgs
{
/// <summary>
/// The name of the Kinesis Stream.
/// </summary>
[Input("name", required: true)]
public Input<string> Name { get; set; } = null!;
[Input("tags")]
private InputMap<string>? _tags;
/// <summary>
/// A map of tags to assigned to the stream.
/// </summary>
public InputMap<string> Tags
{
get => _tags ?? (_tags = new InputMap<string>());
set => _tags = value;
}
public GetStreamInvokeArgs()
{
}
}
[OutputType]
public sealed class GetStreamResult
{
/// <summary>
/// The Amazon Resource Name (ARN) of the Kinesis Stream (same as id).
/// </summary>
public readonly string Arn;
/// <summary>
/// The list of shard ids in the CLOSED state. See [Shard State](https://docs.aws.amazon.com/streams/latest/dev/kinesis-using-sdk-java-after-resharding.html#kinesis-using-sdk-java-resharding-data-routing) for more.
/// </summary>
public readonly ImmutableArray<string> ClosedShards;
/// <summary>
/// The approximate UNIX timestamp that the stream was created.
/// </summary>
public readonly int CreationTimestamp;
/// <summary>
/// The provider-assigned unique ID for this managed resource.
/// </summary>
public readonly string Id;
/// <summary>
/// The name of the Kinesis Stream.
/// </summary>
public readonly string Name;
/// <summary>
/// The list of shard ids in the OPEN state. See [Shard State](https://docs.aws.amazon.com/streams/latest/dev/kinesis-using-sdk-java-after-resharding.html#kinesis-using-sdk-java-resharding-data-routing) for more.
/// </summary>
public readonly ImmutableArray<string> OpenShards;
/// <summary>
/// Length of time (in hours) data records are accessible after they are added to the stream.
/// </summary>
public readonly int RetentionPeriod;
/// <summary>
/// A list of shard-level CloudWatch metrics which are enabled for the stream. See [Monitoring with CloudWatch](https://docs.aws.amazon.com/streams/latest/dev/monitoring-with-cloudwatch.html) for more.
/// </summary>
public readonly ImmutableArray<string> ShardLevelMetrics;
/// <summary>
/// The current status of the stream. The stream status is one of CREATING, DELETING, ACTIVE, or UPDATING.
/// </summary>
public readonly string Status;
/// <summary>
/// A map of tags to assigned to the stream.
/// </summary>
public readonly ImmutableDictionary<string, string> Tags;
[OutputConstructor]
private GetStreamResult(
string arn,
ImmutableArray<string> closedShards,
int creationTimestamp,
string id,
string name,
ImmutableArray<string> openShards,
int retentionPeriod,
ImmutableArray<string> shardLevelMetrics,
string status,
ImmutableDictionary<string, string> tags)
{
Arn = arn;
ClosedShards = closedShards;
CreationTimestamp = creationTimestamp;
Id = id;
Name = name;
OpenShards = openShards;
RetentionPeriod = retentionPeriod;
ShardLevelMetrics = shardLevelMetrics;
Status = status;
Tags = tags;
}
}
}
| 33.663507 | 222 | 0.548641 | [
"ECL-2.0",
"Apache-2.0"
] | rapzo/pulumi-aws | sdk/dotnet/Kinesis/GetStream.cs | 7,103 | C# |
// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information
using System;
using System.Globalization;
using Elastic.Elasticsearch.Xunit.XunitPlumbing;
using Elasticsearch.Net;
using FluentAssertions;
using Nest;
using Tests.Core.Serialization;
using Tests.Domain;
namespace Tests.Reproduce
{
public class Discuss179634
{
[U]
public void SerializeCompletionSuggesterFieldsCorrectlyWhenDefaultFieldNameInferrerUsed()
{
var connectionPool = new SingleNodeConnectionPool(new Uri("http://localhost:9200"));
var settings = new ConnectionSettings(connectionPool, new InMemoryConnection())
.DefaultFieldNameInferrer(p => p.ToUpper(CultureInfo.CurrentCulture))
.DisableDirectStreaming();
var tester = new SerializationTester(new ElasticClient(settings));
var suggest = new SearchDescriptor<Project>()
.Suggest(ss => ss
.Completion("title", cs => cs
.Field(f => f.Suggest)
.Prefix("keyword")
.Fuzzy(f => f
.Fuzziness(Fuzziness.Auto)
)
.Size(5)
)
);
var expected = @"{""suggest"":{""title"":{""completion"":{""fuzzy"":{""fuzziness"":""AUTO""},""field"":""SUGGEST"",""size"":5},""prefix"":""keyword""}}}";
var result = tester.Serializes(suggest, expected);
result.Success.Should().Be(true, result.DiffFromExpected);
}
}
}
| 31 | 157 | 0.705559 | [
"Apache-2.0"
] | Brightspace/elasticsearch-net | tests/Tests.Reproduce/Discuss179634.cs | 1,459 | C# |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.ComponentModel;
using Microsoft.CodeAnalysis.FlowAnalysis;
using Microsoft.CodeAnalysis.Operations;
namespace Microsoft.CodeAnalysis
{
/// <summary>
/// All of the kinds of operations, including statements and expressions.
/// </summary>
public enum OperationKind
{
/// <summary>Indicates an <see cref="IOperation"/> for a construct that is not implemented yet.</summary>
None = 0x0,
/// <summary>Indicates an <see cref="IInvalidOperation"/>.</summary>
Invalid = 0x1,
/// <summary>Indicates an <see cref="IBlockOperation"/>.</summary>
Block = 0x2,
/// <summary>Indicates an <see cref="IVariableDeclarationGroupOperation"/>.</summary>
VariableDeclarationGroup = 0x3,
/// <summary>Indicates an <see cref="ISwitchOperation"/>.</summary>
Switch = 0x4,
/// <summary>Indicates an <see cref="ILoopOperation"/>, which is further differentiated by <see cref="ILoopOperation.LoopKind"/>.</summary>
Loop = 0x5,
/// <summary>Indicates an <see cref="ILabeledOperation"/>.</summary>
Labeled = 0x6,
/// <summary>Indicates an <see cref="IBranchOperation"/>.</summary>
Branch = 0x7,
/// <summary>Indicates an <see cref="IEmptyOperation"/>.</summary>
Empty = 0x8,
/// <summary>Indicates an <see cref="IReturnOperation"/>.</summary>
Return = 0x9,
/// <summary>Indicates an <see cref="IReturnOperation"/> with yield break semantics.</summary>
YieldBreak = 0xa,
/// <summary>Indicates an <see cref="ILockOperation"/>.</summary>
Lock = 0xb,
/// <summary>Indicates an <see cref="ITryOperation"/>.</summary>
Try = 0xc,
/// <summary>Indicates an <see cref="IUsingOperation"/>.</summary>
Using = 0xd,
/// <summary>Indicates an <see cref="IReturnOperation"/> with yield return semantics.</summary>
YieldReturn = 0xe,
/// <summary>Indicates an <see cref="IExpressionStatementOperation"/>.</summary>
ExpressionStatement = 0xf,
/// <summary>Indicates an <see cref="ILocalFunctionOperation"/></summary>
LocalFunction = 0x10,
/// <summary>Indicates an <see cref="IStopOperation"/>.</summary>
Stop = 0x11,
/// <summary>Indicates an <see cref="IEndOperation"/>.</summary>
End = 0x12,
/// <summary>Indicates an <see cref="IRaiseEventOperation"/>.</summary>
RaiseEvent = 0x13,
/// <summary>Indicates an <see cref="ILiteralOperation"/>.</summary>
Literal = 0x14,
/// <summary>Indicates an <see cref="IConversionOperation"/>.</summary>
Conversion = 0x15,
/// <summary>Indicates an <see cref="IInvocationOperation"/>.</summary>
Invocation = 0x16,
/// <summary>Indicates an <see cref="IArrayElementReferenceOperation"/>.</summary>
ArrayElementReference = 0x17,
/// <summary>Indicates an <see cref="ILocalReferenceOperation"/>.</summary>
LocalReference = 0x18,
/// <summary>Indicates an <see cref="IParameterReferenceOperation"/>.</summary>
ParameterReference = 0x19,
/// <summary>Indicates an <see cref="IFieldReferenceOperation"/>.</summary>
FieldReference = 0x1a,
/// <summary>Indicates an <see cref="IMethodReferenceOperation"/>.</summary>
MethodReference = 0x1b,
/// <summary>Indicates an <see cref="IPropertyReferenceOperation"/>.</summary>
PropertyReference = 0x1c,
/// <summary>Indicates an <see cref="IEventReferenceOperation"/>.</summary>
EventReference = 0x1e,
/// <summary>Indicates an <see cref="IUnaryOperation"/>.</summary>
Unary = 0x1f,
/// <summary>Indicates an <see cref="IUnaryOperation"/>. Use <see cref="Unary"/> instead.</summary>
[EditorBrowsable(EditorBrowsableState.Never)]
UnaryOperator = 0x1f,
/// <summary>Indicates an <see cref="IBinaryOperation"/>.</summary>
Binary = 0x20,
/// <summary>Indicates an <see cref="IBinaryOperation"/>. Use <see cref="Binary"/> instead.</summary>
[EditorBrowsable(EditorBrowsableState.Never)]
BinaryOperator = 0x20,
/// <summary>Indicates an <see cref="IConditionalOperation"/>.</summary>
Conditional = 0x21,
/// <summary>Indicates an <see cref="ICoalesceOperation"/>.</summary>
Coalesce = 0x22,
/// <summary>Indicates an <see cref="IAnonymousFunctionOperation"/>.</summary>
AnonymousFunction = 0x23,
/// <summary>Indicates an <see cref="IObjectCreationOperation"/>.</summary>
ObjectCreation = 0x24,
/// <summary>Indicates an <see cref="ITypeParameterObjectCreationOperation"/>.</summary>
TypeParameterObjectCreation = 0x25,
/// <summary>Indicates an <see cref="IArrayCreationOperation"/>.</summary>
ArrayCreation = 0x26,
/// <summary>Indicates an <see cref="IInstanceReferenceOperation"/>.</summary>
InstanceReference = 0x27,
/// <summary>Indicates an <see cref="IIsTypeOperation"/>.</summary>
IsType = 0x28,
/// <summary>Indicates an <see cref="IAwaitOperation"/>.</summary>
Await = 0x29,
/// <summary>Indicates an <see cref="ISimpleAssignmentOperation"/>.</summary>
SimpleAssignment = 0x2a,
/// <summary>Indicates an <see cref="ICompoundAssignmentOperation"/>.</summary>
CompoundAssignment = 0x2b,
/// <summary>Indicates an <see cref="IParenthesizedOperation"/>.</summary>
Parenthesized = 0x2c,
/// <summary>Indicates an <see cref="IEventAssignmentOperation"/>.</summary>
EventAssignment = 0x2d,
/// <summary>Indicates an <see cref="IConditionalAccessOperation"/>.</summary>
ConditionalAccess = 0x2e,
/// <summary>Indicates an <see cref="IConditionalAccessInstanceOperation"/>.</summary>
ConditionalAccessInstance = 0x2f,
/// <summary>Indicates an <see cref="IInterpolatedStringOperation"/>.</summary>
InterpolatedString = 0x30,
/// <summary>Indicates an <see cref="IAnonymousObjectCreationOperation"/>.</summary>
AnonymousObjectCreation = 0x31,
/// <summary>Indicates an <see cref="IObjectOrCollectionInitializerOperation"/>.</summary>
ObjectOrCollectionInitializer = 0x32,
/// <summary>Indicates an <see cref="IMemberInitializerOperation"/>.</summary>
MemberInitializer = 0x33,
/// <summary>Indicates an <see cref="ICollectionElementInitializerOperation"/>.</summary>
[Obsolete("ICollectionElementInitializerOperation has been replaced with " + nameof(IInvocationOperation) + " and " + nameof(IDynamicInvocationOperation), error: true)]
CollectionElementInitializer = 0x34,
/// <summary>Indicates an <see cref="INameOfOperation"/>.</summary>
NameOf = 0x35,
/// <summary>Indicates an <see cref="ITupleOperation"/>.</summary>
Tuple = 0x36,
/// <summary>Indicates an <see cref="IDynamicObjectCreationOperation"/>.</summary>
DynamicObjectCreation = 0x37,
/// <summary>Indicates an <see cref="IDynamicMemberReferenceOperation"/>.</summary>
DynamicMemberReference = 0x38,
/// <summary>Indicates an <see cref="IDynamicInvocationOperation"/>.</summary>
DynamicInvocation = 0x39,
/// <summary>Indicates an <see cref="IDynamicIndexerAccessOperation"/>.</summary>
DynamicIndexerAccess = 0x3a,
/// <summary>Indicates an <see cref="ITranslatedQueryOperation"/>.</summary>
TranslatedQuery = 0x3b,
/// <summary>Indicates a <see cref="IDelegateCreationOperation"/>.</summary>
DelegateCreation = 0x3c,
/// <summary>Indicates an <see cref="IDefaultValueOperation"/>.</summary>
DefaultValue = 0x3d,
/// <summary>Indicates an <see cref="ITypeOfOperation"/>.</summary>
TypeOf = 0x3e,
/// <summary>Indicates an <see cref="ISizeOfOperation"/>.</summary>
SizeOf = 0x3f,
/// <summary>Indicates an <see cref="IAddressOfOperation"/>.</summary>
AddressOf = 0x40,
/// <summary>Indicates an <see cref="IIsPatternOperation"/>.</summary>
IsPattern = 0x41,
/// <summary>Indicates an <see cref="IIncrementOrDecrementOperation"/> for increment operator.</summary>
Increment = 0x42,
/// <summary>Indicates an <see cref="IThrowOperation"/>.</summary>
Throw = 0x43,
/// <summary>Indicates an <see cref="IIncrementOrDecrementOperation"/> for decrement operator.</summary>
Decrement = 0x44,
/// <summary>Indicates an <see cref="IDeconstructionAssignmentOperation"/>.</summary>
DeconstructionAssignment = 0x45,
/// <summary>Indicates an <see cref="IDeclarationExpressionOperation"/>.</summary>
DeclarationExpression = 0x46,
/// <summary>Indicates an <see cref="IOmittedArgumentOperation"/>.</summary>
OmittedArgument = 0x47,
/// <summary>Indicates an <see cref="IFieldInitializerOperation"/>.</summary>
FieldInitializer = 0x48,
/// <summary>Indicates an <see cref="IVariableInitializerOperation"/>.</summary>
VariableInitializer = 0x49,
/// <summary>Indicates an <see cref="IPropertyInitializerOperation"/>.</summary>
PropertyInitializer = 0x4a,
/// <summary>Indicates an <see cref="IParameterInitializerOperation"/>.</summary>
ParameterInitializer = 0x4b,
/// <summary>Indicates an <see cref="IArrayInitializerOperation"/>.</summary>
ArrayInitializer = 0x4c,
/// <summary>Indicates an <see cref="IVariableDeclaratorOperation"/>.</summary>
VariableDeclarator = 0x4d,
/// <summary>Indicates an <see cref="IVariableDeclarationOperation"/>.</summary>
VariableDeclaration = 0x4e,
/// <summary>Indicates an <see cref="IArgumentOperation"/>.</summary>
Argument = 0x4f,
/// <summary>Indicates an <see cref="ICatchClauseOperation"/>.</summary>
CatchClause = 0x50,
/// <summary>Indicates an <see cref="ISwitchCaseOperation"/>.</summary>
SwitchCase = 0x51,
/// <summary>Indicates an <see cref="ICaseClauseOperation"/>, which is further differentiated by <see cref="ICaseClauseOperation.CaseKind"/>.</summary>
CaseClause = 0x52,
/// <summary>Indicates an <see cref="IInterpolatedStringTextOperation"/>.</summary>
InterpolatedStringText = 0x53,
/// <summary>Indicates an <see cref="IInterpolationOperation"/>.</summary>
Interpolation = 0x54,
/// <summary>Indicates an <see cref="IConstantPatternOperation"/>.</summary>
ConstantPattern = 0x55,
/// <summary>Indicates an <see cref="IDeclarationPatternOperation"/>.</summary>
DeclarationPattern = 0x56,
/// <summary>Indicates an <see cref="ITupleBinaryOperation"/>.</summary>
TupleBinary = 0x57,
/// <summary>Indicates an <see cref="ITupleBinaryOperation"/>. Use <see cref="TupleBinary"/> instead.</summary>
[EditorBrowsable(EditorBrowsableState.Never)]
TupleBinaryOperator = 0x57,
/// <summary>Indicates an <see cref="IMethodBodyOperation"/>.</summary>
MethodBody = 0x58,
/// <summary>Indicates an <see cref="IMethodBodyOperation"/>. Use <see cref="MethodBody"/> instead.</summary>
[EditorBrowsable(EditorBrowsableState.Never)]
MethodBodyOperation = 0x58,
/// <summary>Indicates an <see cref="IConstructorBodyOperation"/>.</summary>
ConstructorBody = 0x59,
/// <summary>Indicates an <see cref="IConstructorBodyOperation"/>. Use <see cref="ConstructorBody"/> instead.</summary>
[EditorBrowsable(EditorBrowsableState.Never)]
ConstructorBodyOperation = 0x59,
/// <summary>Indicates an <see cref="IDiscardOperation"/>.</summary>
Discard = 0x5A,
/// <summary>Indicates an <see cref="IFlowCaptureOperation"/>.</summary>
FlowCapture = 0x5B,
/// <summary>Indicates an <see cref="IFlowCaptureReferenceOperation"/>.</summary>
FlowCaptureReference = 0x5C,
/// <summary>Indicates an <see cref="IIsNullOperation"/>.</summary>
IsNull = 0x5D,
/// <summary>Indicates an <see cref="ICaughtExceptionOperation"/>.</summary>
CaughtException = 0x5E,
/// <summary>Indicates an <see cref="IStaticLocalInitializationSemaphoreOperation"/>.</summary>
StaticLocalInitializationSemaphore = 0x5F,
/// <summary>Indicates an <see cref="IFlowAnonymousFunctionOperation"/>.</summary>
FlowAnonymousFunction = 0x60,
/// <summary>Indicates an <see cref="ICoalesceAssignmentOperation"/>.</summary>
CoalesceAssignment = 0x61,
// Available: 0x62
/// <summary>Indicates an <see cref="IRangeOperation"/>.</summary>
Range = 0x63,
// Unused, FromEndIndex will be a unary operator: https://github.com/dotnet/roslyn/pull/32918
//FromEndIndex = 0x64,
/// <summary>Indicates an <see cref="IReDimOperation"/>.</summary>
ReDim = 0x65,
/// <summary>Indicates an <see cref="IReDimClauseOperation"/>.</summary>
ReDimClause = 0x66,
/// <summary>Indicates an <see cref="IRecursivePatternOperation"/>.</summary>
RecursivePattern = 0x67,
/// <summary>Indicates an <see cref="IDiscardPatternOperation"/>.</summary>
DiscardPattern = 0x68,
/// <summary>Indicates an <see cref="ISwitchExpressionOperation"/>.</summary>
SwitchExpression = 0x69,
/// <summary>Indicates an <see cref="ISwitchExpressionArmOperation"/>.</summary>
SwitchExpressionArm = 0x6a,
// /// <summary>Indicates an <see cref="IFixedOperation"/>.</summary>
// https://github.com/dotnet/roslyn/issues/21281
//Fixed = <TBD>,
// /// <summary>Indicates an <see cref="IWithStatement"/>.</summary>
// https://github.com/dotnet/roslyn/issues/22005
//With = <TBD>,
// /// <summary>Indicates an <see cref="IPointerIndirectionReferenceExpression"/>.</summary>
// https://github.com/dotnet/roslyn/issues/21295
//PointerIndirectionReference = <TBD>,
// /// <summary>Indicates an <see cref="IPlaceholderExpression"/>.</summary>
// https://github.com/dotnet/roslyn/issues/21294
//Placeholder = <TBD>,
}
}
| 56.544402 | 176 | 0.648686 | [
"Apache-2.0"
] | GovernessS/roslyn | src/Compilers/Core/Portable/Operations/OperationKind.cs | 14,647 | C# |
using System;
using System.Linq;
namespace Commons.Repository
{
public interface IReadonlyRepository<out TModel> : IDisposable
{
IQueryable<TModel> GetAll();
TModel Find(int id);
}
}
| 17.75 | 66 | 0.671362 | [
"MIT"
] | pavelekNET/DesignPatterns | DesignPatterns/Commons/Repository/IReadonlyRepository.cs | 215 | C# |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace MCSharp_GUI
{
public class ConsoleRichTextbox : RichTextBox
{
const short WM_PAINT = 0x00f;
public ConsoleRichTextbox()
{
}
public bool _Paint = true;
protected override void WndProc(ref System.Windows.Forms.Message m)
{
// Code courtesy of Mark Mihevc
// sometimes we want to eat the paint message so we don't have to see all the
// flicker from when we select the text to change the color.
if (m.Msg == WM_PAINT)
{
if (_Paint)
base.WndProc(ref m); // if we decided to paint this control, just call the RichTextBox WndProc
else
m.Result = IntPtr.Zero; // not painting, must set this to IntPtr.Zero if not painting therwise serious problems.
}
else
base.WndProc(ref m); // message other than WM_PAINT, jsut do what you normally do.
}
}
public static class RichTextBoxExtensions
{
public static void AppendText(this ConsoleRichTextbox box, string text, Color color)
{
box._Paint = false;
box.SelectionStart = box.TextLength;
box.SelectionLength = 0;
box.SelectionColor = color;
box.AppendText(text);
box.SelectionColor = box.ForeColor;
box._Paint = true;
}
}
} | 30.716981 | 132 | 0.594595 | [
"MIT"
] | Hedwig7s/MCSharp-Betacraft | MCSharp GUI/ConsoleRichTextbox.cs | 1,630 | C# |
using FluentAssertions;
using MoqaLate.InterfaceTextParsing;
using NUnit.Framework;
namespace MoqaLate.Tests.Unit
{
[TestFixture]
public class TypeOfLineIdentifierTest
{
[Test]
public void ShouldRecogniseCloseBrace()
{
TypeOfLineIdentifier.Identify(" } ").Should().Be(InterfaceDefinitionLineType.Brace);
}
[Test]
public void ShouldRecogniseEmptyLine()
{
TypeOfLineIdentifier.Identify(" ").Should().Be(InterfaceDefinitionLineType.EmptyLine);
}
[Test]
public void ShouldRecogniseEvent()
{
TypeOfLineIdentifier.Identify(" event xxx; ").Should().Be(InterfaceDefinitionLineType.Event);
}
[Test]
public void ShouldNotRecogniseEventWhenTheWordEventIsUsedElsewhere()
{
TypeOfLineIdentifier.Identify(" void Processevent(); ").Should().Be(InterfaceDefinitionLineType.Method);
}
[Test]
public void ShouldRecogniseGetterPropertyLine()
{
TypeOfLineIdentifier.Identify(" { get; } ").Should().Be(InterfaceDefinitionLineType.PropertyGet);
}
[Test]
public void ShouldRecogniseGetterSetterPropertyLine()
{
TypeOfLineIdentifier.Identify(" { get; set; } ").Should().Be(
InterfaceDefinitionLineType.PropertyGetSet);
}
[Test]
public void ShouldRecogniseInterfaceName()
{
TypeOfLineIdentifier.Identify(" interface ").Should().Be(InterfaceDefinitionLineType.Interface);
}
[Test]
public void ShouldRecogniseMethod()
{
TypeOfLineIdentifier.Identify(" void DoIt() ").Should().Be(InterfaceDefinitionLineType.Method);
}
[Test]
public void ShouldRecogniseNamespace()
{
TypeOfLineIdentifier.Identify(" namespace Xxx.Yyy.Zzz ").Should().Be(
InterfaceDefinitionLineType.Namespace);
}
[Test]
public void ShouldNotRecogniseNamespaceWhenTheWordNamespaceIsUsedElsewhere()
{
TypeOfLineIdentifier.Identify(" void Processnamespace();").Should().Be(
InterfaceDefinitionLineType.Method);
}
[Test]
public void ShouldRecogniseOpenBrace()
{
TypeOfLineIdentifier.Identify(" { ").Should().Be(InterfaceDefinitionLineType.Brace);
}
[Test]
public void ShouldRecogniseSetterPropertyLine()
{
TypeOfLineIdentifier.Identify(" { set; } ").Should().Be(InterfaceDefinitionLineType.PropertySet);
}
[Test]
public void ShouldRecogniseUsing()
{
TypeOfLineIdentifier.Identify(" using ").Should().Be(InterfaceDefinitionLineType.Using);
}
// TODO: somewhere need to ignore all non public interfaces as we wont be able to reference them in the test project where we'll gen the mocks
}
} | 31.635417 | 150 | 0.613105 | [
"Apache-2.0"
] | jason-roberts/MoqaLate | src/DevCode/MoqaLate.Tests/Unit/TypeOfLineIdentifierTest.cs | 3,039 | C# |
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
namespace Herd.Files
{
//From SimionZoo/logger-functions.cpp:
//
//#define FUNCTION_SAMPLE_HEADER 6543
//#define FUNCTION_DECLARATION_HEADER 5432
//#define FUNCTION_LOG_FILE_HEADER 4321
//#define FUNCTION_LOG_FILE_VERSION 1
//#define MAX_FUNCTION_ID_LENGTH 128
////using __int64 to assure C# data-type compatibility
//struct FunctionLogHeader
//{
// __int64 magicNumber = FUNCTION_LOG_FILE_HEADER;
// __int64 fileVersion = FUNCTION_LOG_FILE_VERSION;
// __int64 numFunctions = 0;
//};
//struct FunctionDeclarationHeader
//{
// __int64 magicNumber = FUNCTION_DECLARATION_HEADER;
// __int64 id;
// char name[MAX_FUNCTION_ID_LENGTH];
// __int64 numSamplesX;
// __int64 numSamplesY;
// __int64 numSamplesZ;
//};
//struct FunctionSampleHeader
//{
// __int64 magicNumber = FUNCTION_SAMPLE_HEADER;
// __int64 episode;
// __int64 step;
// __int64 experimentStep;
// __int64 id;
//};
public class FunctionSample
{
int m_episode, m_step, m_experimentStep, m_id;
public int Episode { get { return m_episode; } }
public int Step { get { return m_step; } }
public int ExperimentStep { get { return m_experimentStep; } }
public int Id { get { return m_id; } }
Bitmap m_sample = null;
public Bitmap Sample { get { return m_sample; } }
public FunctionSample(BinaryReader binaryReader)
{
//struct FunctionSampleHeader
//{
// __int64 magicNumber = FUNCTION_SAMPLE_HEADER;
// __int64 episode;
// __int64 step;
// __int64 experimentStep;
// __int64 id;
//};
int magicNumber = (int)binaryReader.ReadInt64();
if (magicNumber != FunctionLog.SAMPLE_HEADER)
throw new Exception("Incorrect sample header format");
m_episode = (int)binaryReader.ReadInt64();
m_step = (int)binaryReader.ReadInt64();
m_experimentStep = (int)binaryReader.ReadInt64();
m_id = (int)binaryReader.ReadInt64();
}
double[] m_functionData;
public void ReadData(BinaryReader binaryReader, int sizeX, int sizeY)
{
//Read data from file
m_functionData = new double[sizeX * sizeY];
for (int i = 0; i < sizeX * sizeY; ++i)
m_functionData[i] = binaryReader.ReadDouble();
}
public void CalculateValueRange(int sizeX, int sizeY, ref double minValue, ref double maxValue)
{
for (int i = 0; i < sizeX * sizeY; ++i)
{
if (m_functionData[i] < minValue) minValue = m_functionData[i];
if (m_functionData[i] > maxValue) maxValue = m_functionData[i];
}
}
/// <summary>
/// This method must be called after reading the sample header and finding the declaration of the function to
/// request the size of the function.
/// </summary>
/// <param name="binaryReader"></param>
/// <param name="sizeX"></param>
/// <param name="sizeY"></param>
public void GenerateBitmap(int sizeX, int sizeY, double minValue, double maxValue)
{
//Convert data to bitmap
m_sample = new Bitmap(sizeX, sizeY, System.Drawing.Imaging.PixelFormat.Format32bppRgb);
Color color = new Color();
double minColorR = 1.0;
double minColorG = 0.0;
double minColorB = 0.0;
double maxColorR = 0.0;
double maxColorG = 0.0;
double maxColorB = 1.0;
double u;
double range = Math.Max(maxValue - minValue, 0.0000001);
for (int y = 0; y < sizeY; y++)
{
for (int x = 0; x < sizeX; x++)
{
u = (m_functionData[y * sizeX + x] - minValue) / range;
color = Color.FromArgb((int)(255.0 * (minColorR * (1 - u) + maxColorR * u))
, (int)(255.0 * (minColorG * (1 - u) + maxColorG * u))
, (int)(255.0 * (minColorB * (1 - u) + maxColorB * u)));
m_sample.SetPixel(x, y, color);
}
}
}
}
public class Function
{
List<FunctionSample> m_samples = new List<FunctionSample>();
public List<FunctionSample> Samples { get { return m_samples; } set { m_samples = value; } }
int m_numSamplesX, m_numSamplesY, m_numSamplesZ;
public int NumSamplesX { get { return m_numSamplesX; } }
public int NumSamplesY { get { return m_numSamplesY; } }
public int NumSamplesZ { get { return m_numSamplesZ; } }
int m_id;
public int Id { get { return m_id; } }
string m_name;
public string Name { get { return m_name; } }
public Function(int id, string name, int numSamplesX, int numSamplesY, int numSamplesZ)
{
m_id = id;
m_name = name;
m_numSamplesX = numSamplesX;
m_numSamplesY = numSamplesY;
m_numSamplesZ = numSamplesZ;
}
public void GenerateBitmaps()
{
double minValue = double.MaxValue;
double maxValue = double.MinValue;
//we calculate the per-function minimum and maximum
foreach (FunctionSample s in Samples)
{
s.CalculateValueRange(NumSamplesX, NumSamplesY, ref minValue, ref maxValue);
}
// and then, using them as value ranges, we can generate the bitmaps
foreach (FunctionSample s in Samples)
{
s.GenerateBitmap(NumSamplesX, NumSamplesY, minValue, maxValue);
}
}
}
public class FunctionLog
{
public const int SAMPLE_HEADER = 6543;
public const int DECLARATION_HEADER = 5432;
public const int FILE_HEADER = 4321;
public const int FILE_VERSION = 1;
public const int MAX_FUNCTION_ID_LENGTH = 128;
List<Function> m_functions = new List<Function>();
public List<Function> Functions { get { return m_functions; } set { m_functions = value; } }
public FunctionLog() { }
public FunctionLog(string filename)
{
Load(filename);
}
//struct FunctionLogHeader
//{
// __int64 magicNumber = FUNCTION_LOG_FILE_HEADER;
// __int64 fileVersion = FUNCTION_LOG_FILE_VERSION;
// __int64 numFunctions = 0;
//};
public void Load(string filename)
{
Functions.Clear();
using (FileStream logFileStream = File.OpenRead(filename))
{
using (BinaryReader binaryReader = new BinaryReader(logFileStream))
{
int magicNumber = (int)binaryReader.ReadInt64();
if (magicNumber != FILE_HEADER)
throw new Exception("Wrong magic number read in function log");
int fileVersion = (int)binaryReader.ReadInt64();
if (fileVersion != FILE_VERSION)
throw new Exception("Wrong file version read in function log");
int numFunctions = (int)binaryReader.ReadInt64();
//read all the function declarations
for (int i = 0; i < numFunctions; i++)
{
m_functions.Add(ReadFunctionDeclaration(binaryReader));
}
//read all the samples
while (binaryReader.BaseStream.Position != binaryReader.BaseStream.Length)
{
//read the header of the sample
FunctionSample sample = new FunctionSample(binaryReader);
//find the declaration of the function from its id
Function function = GetFunctionFromId(sample.Id);
//we only support 2-input functions so far
if (function != null && function.NumSamplesX > 0
&& function.NumSamplesY > 0 && function.NumSamplesZ == 1)
{
//Read the data of the sample and add it to the function
sample.ReadData(binaryReader, function.NumSamplesX, function.NumSamplesY);
function.Samples.Add(sample);
}
}
//post-process: calculate per-function maximum and minimum and generate bitmaps
for (int i = 0; i < numFunctions; i++)
{
m_functions[i].GenerateBitmaps();
}
}
}
}
Function GetFunctionFromId(int id)
{
foreach (Function function in m_functions)
if (id == function.Id)
return function;
return null;
}
Function ReadFunctionDeclaration(BinaryReader binaryReader)
{
//struct FunctionDeclarationHeader
//{
// __int64 magicNumber = FUNCTION_DECLARATION_HEADER;
// __int64 id;
// char name[MAX_FUNCTION_ID_LENGTH];
// __int64 numSamplesX;
// __int64 numSamplesY;
// __int64 numSamplesZ;
//};
int magicNumber = (int)binaryReader.ReadInt64();
if (magicNumber != FunctionLog.DECLARATION_HEADER)
throw new Exception("Wrong magic number read in function declaration");
int id = (int)binaryReader.ReadInt64();
char[] name = binaryReader.ReadChars(FunctionLog.MAX_FUNCTION_ID_LENGTH);
string nameAsString = new string(name);
nameAsString = nameAsString.Substring(0, nameAsString.IndexOf('\0'));
int numSamplesX = (int)binaryReader.ReadInt64();
int numSamplesY = (int)binaryReader.ReadInt64();
int numSamplesZ = (int)binaryReader.ReadInt64();
Function function = new Function(id, nameAsString, numSamplesX, numSamplesY, numSamplesZ);
return function;
}
}
}
| 38.99262 | 117 | 0.549636 | [
"MIT"
] | JosuGom3z/SimionZoo | tools/Herd/Files/FunctionLog.cs | 10,569 | C# |
// Copyright (c) IEvangelist. All rights reserved.
// Licensed under the MIT License.
using System;
using Microsoft.Azure.CosmosRepository;
namespace ServiceTier
{
public class Widget : Item
{
public string Name { get; set; }
public DateTimeOffset CreatedOrUpdatedOn { get; set; } = DateTimeOffset.UtcNow;
public override string ToString() => $"{Name} was created or updated on {CreatedOrUpdatedOn}";
}
}
| 24.777778 | 102 | 0.690583 | [
"MIT"
] | RichMercer/azure-cosmos-dotnet-repository | Microsoft.Azure.CosmosRepository.Samples/ServiceTier/Widget.cs | 448 | C# |
// 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;
using DocumentFormat.OpenXml.Framework;
using DocumentFormat.OpenXml.Framework.Metadata;
using DocumentFormat.OpenXml.Packaging;
using DocumentFormat.OpenXml.Validation.Schema;
using DocumentFormat.OpenXml.Validation.Semantic;
using System;
using System.Collections.Generic;
using System.IO.Packaging;
namespace DocumentFormat.OpenXml.Office2010.CustomUI
{
/// <summary>
/// <para>Defines the ControlCloneRegular Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:control.</para>
/// </summary>
public partial class ControlCloneRegular : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the ControlCloneRegular class.
/// </summary>
public ControlCloneRegular() : base()
{
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>screentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: screentip</para>
/// </summary>
public StringValue Screentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getScreentip</para>
/// </summary>
public StringValue GetScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>supertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: supertip</para>
/// </summary>
public StringValue Supertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSupertip</para>
/// </summary>
public StringValue GetSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showLabel</para>
/// </summary>
public BooleanValue ShowLabel
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowLabel</para>
/// </summary>
public StringValue GetShowLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showImage</para>
/// </summary>
public BooleanValue ShowImage
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowImage</para>
/// </summary>
public StringValue GetShowImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "control");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<ControlCloneRegular>()
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "screentip", a => a.Screentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getScreentip", a => a.GetScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "supertip", a => a.Supertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSupertip", a => a.GetSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showLabel", a => a.ShowLabel)
.AddAttribute(0, "getShowLabel", a => a.GetShowLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showImage", a => a.ShowImage)
.AddAttribute(0, "getShowImage", a => a.GetShowImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<ControlCloneRegular>(deep);
}
/// <summary>
/// <para>Defines the ButtonRegular Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:button.</para>
/// </summary>
public partial class ButtonRegular : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the ButtonRegular class.
/// </summary>
public ButtonRegular() : base()
{
}
/// <summary>
/// <para>onAction, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: onAction</para>
/// </summary>
public StringValue OnAction
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>description, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: description</para>
/// </summary>
public StringValue Description
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getDescription, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getDescription</para>
/// </summary>
public StringValue GetDescription
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>screentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: screentip</para>
/// </summary>
public StringValue Screentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getScreentip</para>
/// </summary>
public StringValue GetScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>supertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: supertip</para>
/// </summary>
public StringValue Supertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSupertip</para>
/// </summary>
public StringValue GetSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showLabel</para>
/// </summary>
public BooleanValue ShowLabel
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowLabel</para>
/// </summary>
public StringValue GetShowLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showImage</para>
/// </summary>
public BooleanValue ShowImage
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowImage</para>
/// </summary>
public StringValue GetShowImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "button");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<ButtonRegular>()
.AddAttribute(0, "onAction", a => a.OnAction, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "description", a => a.Description, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (4096L) });
})
.AddAttribute(0, "getDescription", a => a.GetDescription, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "screentip", a => a.Screentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getScreentip", a => a.GetScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "supertip", a => a.Supertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSupertip", a => a.GetSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showLabel", a => a.ShowLabel)
.AddAttribute(0, "getShowLabel", a => a.GetShowLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showImage", a => a.ShowImage)
.AddAttribute(0, "getShowImage", a => a.GetShowImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
}
private static readonly ISemanticConstraint[] _semanticConstraint = new ISemanticConstraint[] {
new AttributeMutualExclusive(18, 20, 19, 21) /*:insertAfterMso, :insertAfterQ, :insertBeforeMso, :insertBeforeQ*/ { Version = FileFormatVersions.Office2010 }
};
internal override ISemanticConstraint[] SemanticConstraints => _semanticConstraint;
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<ButtonRegular>(deep);
}
/// <summary>
/// <para>Defines the CheckBox Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:checkBox.</para>
/// </summary>
public partial class CheckBox : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the CheckBox class.
/// </summary>
public CheckBox() : base()
{
}
/// <summary>
/// <para>getPressed, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getPressed</para>
/// </summary>
public StringValue GetPressed
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>onAction, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: onAction</para>
/// </summary>
public StringValue OnAction
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>description, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: description</para>
/// </summary>
public StringValue Description
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getDescription, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getDescription</para>
/// </summary>
public StringValue GetDescription
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>screentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: screentip</para>
/// </summary>
public StringValue Screentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getScreentip</para>
/// </summary>
public StringValue GetScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>supertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: supertip</para>
/// </summary>
public StringValue Supertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSupertip</para>
/// </summary>
public StringValue GetSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "checkBox");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<CheckBox>()
.AddAttribute(0, "getPressed", a => a.GetPressed, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "onAction", a => a.OnAction, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "description", a => a.Description, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (4096L) });
})
.AddAttribute(0, "getDescription", a => a.GetDescription, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "screentip", a => a.Screentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getScreentip", a => a.GetScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "supertip", a => a.Supertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSupertip", a => a.GetSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<CheckBox>(deep);
}
/// <summary>
/// <para>Defines the GalleryRegular Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:gallery.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>Item <mso14:item></description></item>
/// <item><description>ButtonRegular <mso14:button></description></item>
/// </list>
/// </remark>
public partial class GalleryRegular : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the GalleryRegular class.
/// </summary>
public GalleryRegular() : base()
{
}
/// <summary>
/// Initializes a new instance of the GalleryRegular class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public GalleryRegular(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the GalleryRegular class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public GalleryRegular(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the GalleryRegular class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public GalleryRegular(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>description, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: description</para>
/// </summary>
public StringValue Description
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getDescription, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getDescription</para>
/// </summary>
public StringValue GetDescription
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>invalidateContentOnDrop, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: invalidateContentOnDrop</para>
/// </summary>
public BooleanValue InvalidateContentOnDrop
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>columns, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: columns</para>
/// </summary>
public IntegerValue Columns
{
get => GetAttribute<IntegerValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>rows, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: rows</para>
/// </summary>
public IntegerValue Rows
{
get => GetAttribute<IntegerValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>itemWidth, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: itemWidth</para>
/// </summary>
public IntegerValue ItemWidth
{
get => GetAttribute<IntegerValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>itemHeight, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: itemHeight</para>
/// </summary>
public IntegerValue ItemHeight
{
get => GetAttribute<IntegerValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemWidth, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemWidth</para>
/// </summary>
public StringValue GetItemWidth
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemHeight, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemHeight</para>
/// </summary>
public StringValue GetItemHeight
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showItemLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showItemLabel</para>
/// </summary>
public BooleanValue ShowItemLabel
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showInRibbon, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showInRibbon</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.GalleryShowInRibbonValues> ShowInRibbon
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.GalleryShowInRibbonValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>onAction, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: onAction</para>
/// </summary>
public StringValue OnAction
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showItemImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showItemImage</para>
/// </summary>
public BooleanValue ShowItemImage
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemCount, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemCount</para>
/// </summary>
public StringValue GetItemCount
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemLabel</para>
/// </summary>
public StringValue GetItemLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemScreentip</para>
/// </summary>
public StringValue GetItemScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemSupertip</para>
/// </summary>
public StringValue GetItemSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemImage</para>
/// </summary>
public StringValue GetItemImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemID, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemID</para>
/// </summary>
public StringValue GetItemID
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>sizeString, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: sizeString</para>
/// </summary>
public StringValue SizeString
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSelectedItemID, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSelectedItemID</para>
/// </summary>
public StringValue GetSelectedItemID
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSelectedItemIndex, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSelectedItemIndex</para>
/// </summary>
public StringValue GetSelectedItemIndex
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>screentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: screentip</para>
/// </summary>
public StringValue Screentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getScreentip</para>
/// </summary>
public StringValue GetScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>supertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: supertip</para>
/// </summary>
public StringValue Supertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSupertip</para>
/// </summary>
public StringValue GetSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showLabel</para>
/// </summary>
public BooleanValue ShowLabel
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowLabel</para>
/// </summary>
public StringValue GetShowLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showImage</para>
/// </summary>
public BooleanValue ShowImage
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowImage</para>
/// </summary>
public StringValue GetShowImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "gallery");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<Item>();
builder.AddChild<ButtonRegular>();
builder.AddElement<GalleryRegular>()
.AddAttribute(0, "description", a => a.Description, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (4096L) });
})
.AddAttribute(0, "getDescription", a => a.GetDescription, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "invalidateContentOnDrop", a => a.InvalidateContentOnDrop)
.AddAttribute(0, "columns", a => a.Columns, aBuilder =>
{
aBuilder.AddValidator(new NumberValidator() { MinInclusive = (1L), MaxInclusive = (1024L), IsPositive = (true) });
})
.AddAttribute(0, "rows", a => a.Rows, aBuilder =>
{
aBuilder.AddValidator(new NumberValidator() { MinInclusive = (1L), MaxInclusive = (1024L), IsPositive = (true) });
})
.AddAttribute(0, "itemWidth", a => a.ItemWidth, aBuilder =>
{
aBuilder.AddValidator(new NumberValidator() { MinInclusive = (1L), MaxInclusive = (4096L), IsPositive = (true) });
})
.AddAttribute(0, "itemHeight", a => a.ItemHeight, aBuilder =>
{
aBuilder.AddValidator(new NumberValidator() { MinInclusive = (1L), MaxInclusive = (4096L), IsPositive = (true) });
})
.AddAttribute(0, "getItemWidth", a => a.GetItemWidth, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemHeight", a => a.GetItemHeight, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showItemLabel", a => a.ShowItemLabel)
.AddAttribute(0, "showInRibbon", a => a.ShowInRibbon)
.AddAttribute(0, "onAction", a => a.OnAction, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showItemImage", a => a.ShowItemImage)
.AddAttribute(0, "getItemCount", a => a.GetItemCount, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemLabel", a => a.GetItemLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemScreentip", a => a.GetItemScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemSupertip", a => a.GetItemSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemImage", a => a.GetItemImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemID", a => a.GetItemID, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "sizeString", a => a.SizeString, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSelectedItemID", a => a.GetSelectedItemID, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSelectedItemIndex", a => a.GetSelectedItemIndex, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "screentip", a => a.Screentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getScreentip", a => a.GetScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "supertip", a => a.Supertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSupertip", a => a.GetSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showLabel", a => a.ShowLabel)
.AddAttribute(0, "getShowLabel", a => a.GetShowLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showImage", a => a.ShowImage)
.AddAttribute(0, "getShowImage", a => a.GetShowImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.Item), 0, 1000, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ButtonRegular), 0, 16, version: FileFormatVersions.Office2010)
}
}
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<GalleryRegular>(deep);
}
/// <summary>
/// <para>Defines the ToggleButtonRegular Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:toggleButton.</para>
/// </summary>
public partial class ToggleButtonRegular : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the ToggleButtonRegular class.
/// </summary>
public ToggleButtonRegular() : base()
{
}
/// <summary>
/// <para>getPressed, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getPressed</para>
/// </summary>
public StringValue GetPressed
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>onAction, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: onAction</para>
/// </summary>
public StringValue OnAction
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>description, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: description</para>
/// </summary>
public StringValue Description
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getDescription, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getDescription</para>
/// </summary>
public StringValue GetDescription
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>screentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: screentip</para>
/// </summary>
public StringValue Screentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getScreentip</para>
/// </summary>
public StringValue GetScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>supertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: supertip</para>
/// </summary>
public StringValue Supertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSupertip</para>
/// </summary>
public StringValue GetSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showLabel</para>
/// </summary>
public BooleanValue ShowLabel
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowLabel</para>
/// </summary>
public StringValue GetShowLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showImage</para>
/// </summary>
public BooleanValue ShowImage
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowImage</para>
/// </summary>
public StringValue GetShowImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "toggleButton");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<ToggleButtonRegular>()
.AddAttribute(0, "getPressed", a => a.GetPressed, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "onAction", a => a.OnAction, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "description", a => a.Description, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (4096L) });
})
.AddAttribute(0, "getDescription", a => a.GetDescription, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "screentip", a => a.Screentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getScreentip", a => a.GetScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "supertip", a => a.Supertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSupertip", a => a.GetSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showLabel", a => a.ShowLabel)
.AddAttribute(0, "getShowLabel", a => a.GetShowLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showImage", a => a.ShowImage)
.AddAttribute(0, "getShowImage", a => a.GetShowImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<ToggleButtonRegular>(deep);
}
/// <summary>
/// <para>Defines the MenuSeparator Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:menuSeparator.</para>
/// </summary>
public partial class MenuSeparator : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the MenuSeparator class.
/// </summary>
public MenuSeparator() : base()
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>title, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: title</para>
/// </summary>
public StringValue Title
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getTitle, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getTitle</para>
/// </summary>
public StringValue GetTitle
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "menuSeparator");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<MenuSeparator>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "title", a => a.Title, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getTitle", a => a.GetTitle, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<MenuSeparator>(deep);
}
/// <summary>
/// <para>Defines the SplitButtonRegular Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:splitButton.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>VisibleButton <mso14:button></description></item>
/// <item><description>VisibleToggleButton <mso14:toggleButton></description></item>
/// <item><description>MenuRegular <mso14:menu></description></item>
/// </list>
/// </remark>
public partial class SplitButtonRegular : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the SplitButtonRegular class.
/// </summary>
public SplitButtonRegular() : base()
{
}
/// <summary>
/// Initializes a new instance of the SplitButtonRegular class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public SplitButtonRegular(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the SplitButtonRegular class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public SplitButtonRegular(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the SplitButtonRegular class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public SplitButtonRegular(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showLabel</para>
/// </summary>
public BooleanValue ShowLabel
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowLabel</para>
/// </summary>
public StringValue GetShowLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "splitButton");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<VisibleButton>();
builder.AddChild<VisibleToggleButton>();
builder.AddChild<MenuRegular>();
builder.AddElement<SplitButtonRegular>()
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showLabel", a => a.ShowLabel)
.AddAttribute(0, "getShowLabel", a => a.GetShowLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Sequence, 0, 1)
{
new CompositeParticle(ParticleType.Choice, 0, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.VisibleButton), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.VisibleToggleButton), 1, 1, version: FileFormatVersions.Office2010)
},
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.MenuRegular), 1, 1, version: FileFormatVersions.Office2010)
}
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<SplitButtonRegular>(deep);
}
/// <summary>
/// <para>Defines the MenuRegular Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:menu.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>ControlCloneRegular <mso14:control></description></item>
/// <item><description>ButtonRegular <mso14:button></description></item>
/// <item><description>CheckBox <mso14:checkBox></description></item>
/// <item><description>GalleryRegular <mso14:gallery></description></item>
/// <item><description>ToggleButtonRegular <mso14:toggleButton></description></item>
/// <item><description>MenuSeparator <mso14:menuSeparator></description></item>
/// <item><description>SplitButtonRegular <mso14:splitButton></description></item>
/// <item><description>MenuRegular <mso14:menu></description></item>
/// <item><description>DynamicMenuRegular <mso14:dynamicMenu></description></item>
/// </list>
/// </remark>
public partial class MenuRegular : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the MenuRegular class.
/// </summary>
public MenuRegular() : base()
{
}
/// <summary>
/// Initializes a new instance of the MenuRegular class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public MenuRegular(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the MenuRegular class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public MenuRegular(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the MenuRegular class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public MenuRegular(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>itemSize, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: itemSize</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ItemSizeValues> ItemSize
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ItemSizeValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>description, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: description</para>
/// </summary>
public StringValue Description
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getDescription, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getDescription</para>
/// </summary>
public StringValue GetDescription
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>screentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: screentip</para>
/// </summary>
public StringValue Screentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getScreentip</para>
/// </summary>
public StringValue GetScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>supertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: supertip</para>
/// </summary>
public StringValue Supertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSupertip</para>
/// </summary>
public StringValue GetSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showLabel</para>
/// </summary>
public BooleanValue ShowLabel
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowLabel</para>
/// </summary>
public StringValue GetShowLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showImage</para>
/// </summary>
public BooleanValue ShowImage
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowImage</para>
/// </summary>
public StringValue GetShowImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "menu");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<ControlCloneRegular>();
builder.AddChild<ButtonRegular>();
builder.AddChild<CheckBox>();
builder.AddChild<GalleryRegular>();
builder.AddChild<ToggleButtonRegular>();
builder.AddChild<MenuSeparator>();
builder.AddChild<SplitButtonRegular>();
builder.AddChild<MenuRegular>();
builder.AddChild<DynamicMenuRegular>();
builder.AddElement<MenuRegular>()
.AddAttribute(0, "itemSize", a => a.ItemSize)
.AddAttribute(0, "description", a => a.Description, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (4096L) });
})
.AddAttribute(0, "getDescription", a => a.GetDescription, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "screentip", a => a.Screentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getScreentip", a => a.GetScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "supertip", a => a.Supertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSupertip", a => a.GetSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showLabel", a => a.ShowLabel)
.AddAttribute(0, "getShowLabel", a => a.GetShowLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showImage", a => a.ShowImage)
.AddAttribute(0, "getShowImage", a => a.GetShowImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Choice, 0, 1000)
{
new CompositeParticle(ParticleType.Group, 1, 1, version: FileFormatVersions.Office2010)
{
new CompositeParticle(ParticleType.Choice, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ControlCloneRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ButtonRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.CheckBox), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.GalleryRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ToggleButtonRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.MenuSeparator), 1, 1, version: FileFormatVersions.Office2010)
}
},
new CompositeParticle(ParticleType.Group, 1, 1, version: FileFormatVersions.Office2010)
{
new CompositeParticle(ParticleType.Choice, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.SplitButtonRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.MenuRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.DynamicMenuRegular), 1, 1, version: FileFormatVersions.Office2010)
}
}
}
}
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<MenuRegular>(deep);
}
/// <summary>
/// <para>Defines the DynamicMenuRegular Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:dynamicMenu.</para>
/// </summary>
public partial class DynamicMenuRegular : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the DynamicMenuRegular class.
/// </summary>
public DynamicMenuRegular() : base()
{
}
/// <summary>
/// <para>description, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: description</para>
/// </summary>
public StringValue Description
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getDescription, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getDescription</para>
/// </summary>
public StringValue GetDescription
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getContent, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getContent</para>
/// </summary>
public StringValue GetContent
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>invalidateContentOnDrop, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: invalidateContentOnDrop</para>
/// </summary>
public BooleanValue InvalidateContentOnDrop
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>screentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: screentip</para>
/// </summary>
public StringValue Screentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getScreentip</para>
/// </summary>
public StringValue GetScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>supertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: supertip</para>
/// </summary>
public StringValue Supertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSupertip</para>
/// </summary>
public StringValue GetSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showLabel</para>
/// </summary>
public BooleanValue ShowLabel
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowLabel</para>
/// </summary>
public StringValue GetShowLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showImage</para>
/// </summary>
public BooleanValue ShowImage
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowImage</para>
/// </summary>
public StringValue GetShowImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "dynamicMenu");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<DynamicMenuRegular>()
.AddAttribute(0, "description", a => a.Description, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (4096L) });
})
.AddAttribute(0, "getDescription", a => a.GetDescription, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getContent", a => a.GetContent, aBuilder =>
{
aBuilder.AddValidator(RequiredValidator.Instance);
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "invalidateContentOnDrop", a => a.InvalidateContentOnDrop)
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "screentip", a => a.Screentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getScreentip", a => a.GetScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "supertip", a => a.Supertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSupertip", a => a.GetSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showLabel", a => a.ShowLabel)
.AddAttribute(0, "getShowLabel", a => a.GetShowLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showImage", a => a.ShowImage)
.AddAttribute(0, "getShowImage", a => a.GetShowImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<DynamicMenuRegular>(deep);
}
/// <summary>
/// <para>Defines the SplitButtonWithTitle Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:splitButton.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>VisibleButton <mso14:button></description></item>
/// <item><description>VisibleToggleButton <mso14:toggleButton></description></item>
/// <item><description>MenuWithTitle <mso14:menu></description></item>
/// </list>
/// </remark>
public partial class SplitButtonWithTitle : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the SplitButtonWithTitle class.
/// </summary>
public SplitButtonWithTitle() : base()
{
}
/// <summary>
/// Initializes a new instance of the SplitButtonWithTitle class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public SplitButtonWithTitle(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the SplitButtonWithTitle class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public SplitButtonWithTitle(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the SplitButtonWithTitle class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public SplitButtonWithTitle(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showLabel</para>
/// </summary>
public BooleanValue ShowLabel
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowLabel</para>
/// </summary>
public StringValue GetShowLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "splitButton");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<VisibleButton>();
builder.AddChild<VisibleToggleButton>();
builder.AddChild<MenuWithTitle>();
builder.AddElement<SplitButtonWithTitle>()
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showLabel", a => a.ShowLabel)
.AddAttribute(0, "getShowLabel", a => a.GetShowLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Sequence, 0, 1)
{
new CompositeParticle(ParticleType.Choice, 0, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.VisibleButton), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.VisibleToggleButton), 1, 1, version: FileFormatVersions.Office2010)
},
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.MenuWithTitle), 1, 1, version: FileFormatVersions.Office2010)
}
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<SplitButtonWithTitle>(deep);
}
/// <summary>
/// <para>Defines the MenuWithTitle Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:menu.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>ControlCloneRegular <mso14:control></description></item>
/// <item><description>ButtonRegular <mso14:button></description></item>
/// <item><description>CheckBox <mso14:checkBox></description></item>
/// <item><description>GalleryRegular <mso14:gallery></description></item>
/// <item><description>ToggleButtonRegular <mso14:toggleButton></description></item>
/// <item><description>MenuSeparator <mso14:menuSeparator></description></item>
/// <item><description>SplitButtonWithTitle <mso14:splitButton></description></item>
/// <item><description>MenuWithTitle <mso14:menu></description></item>
/// <item><description>DynamicMenuRegular <mso14:dynamicMenu></description></item>
/// </list>
/// </remark>
public partial class MenuWithTitle : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the MenuWithTitle class.
/// </summary>
public MenuWithTitle() : base()
{
}
/// <summary>
/// Initializes a new instance of the MenuWithTitle class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public MenuWithTitle(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the MenuWithTitle class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public MenuWithTitle(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the MenuWithTitle class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public MenuWithTitle(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>itemSize, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: itemSize</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ItemSizeValues> ItemSize
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ItemSizeValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>title, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: title</para>
/// </summary>
public StringValue Title
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getTitle, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getTitle</para>
/// </summary>
public StringValue GetTitle
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>screentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: screentip</para>
/// </summary>
public StringValue Screentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getScreentip</para>
/// </summary>
public StringValue GetScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>supertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: supertip</para>
/// </summary>
public StringValue Supertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSupertip</para>
/// </summary>
public StringValue GetSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showLabel</para>
/// </summary>
public BooleanValue ShowLabel
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowLabel</para>
/// </summary>
public StringValue GetShowLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showImage</para>
/// </summary>
public BooleanValue ShowImage
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowImage</para>
/// </summary>
public StringValue GetShowImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "menu");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<ControlCloneRegular>();
builder.AddChild<ButtonRegular>();
builder.AddChild<CheckBox>();
builder.AddChild<GalleryRegular>();
builder.AddChild<ToggleButtonRegular>();
builder.AddChild<MenuSeparator>();
builder.AddChild<SplitButtonWithTitle>();
builder.AddChild<MenuWithTitle>();
builder.AddChild<DynamicMenuRegular>();
builder.AddElement<MenuWithTitle>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "itemSize", a => a.ItemSize)
.AddAttribute(0, "title", a => a.Title, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getTitle", a => a.GetTitle, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "screentip", a => a.Screentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getScreentip", a => a.GetScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "supertip", a => a.Supertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSupertip", a => a.GetSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showLabel", a => a.ShowLabel)
.AddAttribute(0, "getShowLabel", a => a.GetShowLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showImage", a => a.ShowImage)
.AddAttribute(0, "getShowImage", a => a.GetShowImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Choice, 0, 1000)
{
new CompositeParticle(ParticleType.Group, 1, 1, version: FileFormatVersions.Office2010)
{
new CompositeParticle(ParticleType.Choice, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ControlCloneRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ButtonRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.CheckBox), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.GalleryRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ToggleButtonRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.MenuSeparator), 1, 1, version: FileFormatVersions.Office2010)
}
},
new CompositeParticle(ParticleType.Group, 1, 1, version: FileFormatVersions.Office2010)
{
new CompositeParticle(ParticleType.Choice, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.SplitButtonWithTitle), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.MenuWithTitle), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.DynamicMenuRegular), 1, 1, version: FileFormatVersions.Office2010)
}
}
}
}
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<MenuWithTitle>(deep);
}
/// <summary>
/// <para>Defines the MenuSeparatorNoTitle Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:menuSeparator.</para>
/// </summary>
public partial class MenuSeparatorNoTitle : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the MenuSeparatorNoTitle class.
/// </summary>
public MenuSeparatorNoTitle() : base()
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "menuSeparator");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<MenuSeparatorNoTitle>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
});
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<MenuSeparatorNoTitle>(deep);
}
/// <summary>
/// <para>Defines the ControlClone Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:control.</para>
/// </summary>
public partial class ControlClone : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the ControlClone class.
/// </summary>
public ControlClone() : base()
{
}
/// <summary>
/// <para>size, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: size</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.SizeValues> Size
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.SizeValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSize, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSize</para>
/// </summary>
public StringValue GetSize
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>description, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: description</para>
/// </summary>
public StringValue Description
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getDescription, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getDescription</para>
/// </summary>
public StringValue GetDescription
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>screentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: screentip</para>
/// </summary>
public StringValue Screentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getScreentip</para>
/// </summary>
public StringValue GetScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>supertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: supertip</para>
/// </summary>
public StringValue Supertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSupertip</para>
/// </summary>
public StringValue GetSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showLabel</para>
/// </summary>
public BooleanValue ShowLabel
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowLabel</para>
/// </summary>
public StringValue GetShowLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showImage</para>
/// </summary>
public BooleanValue ShowImage
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowImage</para>
/// </summary>
public StringValue GetShowImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "control");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<ControlClone>()
.AddAttribute(0, "size", a => a.Size)
.AddAttribute(0, "getSize", a => a.GetSize, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "description", a => a.Description, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (4096L) });
})
.AddAttribute(0, "getDescription", a => a.GetDescription, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "screentip", a => a.Screentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getScreentip", a => a.GetScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "supertip", a => a.Supertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSupertip", a => a.GetSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showLabel", a => a.ShowLabel)
.AddAttribute(0, "getShowLabel", a => a.GetShowLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showImage", a => a.ShowImage)
.AddAttribute(0, "getShowImage", a => a.GetShowImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
}
private static readonly ISemanticConstraint[] _semanticConstraint = new ISemanticConstraint[] {
new AttributeMutualExclusive(0, 1) /*:size, :getSize*/ { Version = FileFormatVersions.Office2010 }
};
internal override ISemanticConstraint[] SemanticConstraints => _semanticConstraint;
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<ControlClone>(deep);
}
/// <summary>
/// <para>Defines the LabelControl Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:labelControl.</para>
/// </summary>
public partial class LabelControl : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the LabelControl class.
/// </summary>
public LabelControl() : base()
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>screentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: screentip</para>
/// </summary>
public StringValue Screentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getScreentip</para>
/// </summary>
public StringValue GetScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>supertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: supertip</para>
/// </summary>
public StringValue Supertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSupertip</para>
/// </summary>
public StringValue GetSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showLabel</para>
/// </summary>
public BooleanValue ShowLabel
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowLabel</para>
/// </summary>
public StringValue GetShowLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "labelControl");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<LabelControl>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "screentip", a => a.Screentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getScreentip", a => a.GetScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "supertip", a => a.Supertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSupertip", a => a.GetSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showLabel", a => a.ShowLabel)
.AddAttribute(0, "getShowLabel", a => a.GetShowLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<LabelControl>(deep);
}
/// <summary>
/// <para>Defines the Button Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:button.</para>
/// </summary>
public partial class Button : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the Button class.
/// </summary>
public Button() : base()
{
}
/// <summary>
/// <para>size, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: size</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.SizeValues> Size
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.SizeValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSize, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSize</para>
/// </summary>
public StringValue GetSize
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>onAction, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: onAction</para>
/// </summary>
public StringValue OnAction
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>description, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: description</para>
/// </summary>
public StringValue Description
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getDescription, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getDescription</para>
/// </summary>
public StringValue GetDescription
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>screentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: screentip</para>
/// </summary>
public StringValue Screentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getScreentip</para>
/// </summary>
public StringValue GetScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>supertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: supertip</para>
/// </summary>
public StringValue Supertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSupertip</para>
/// </summary>
public StringValue GetSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showLabel</para>
/// </summary>
public BooleanValue ShowLabel
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowLabel</para>
/// </summary>
public StringValue GetShowLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showImage</para>
/// </summary>
public BooleanValue ShowImage
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowImage</para>
/// </summary>
public StringValue GetShowImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "button");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<Button>()
.AddAttribute(0, "size", a => a.Size)
.AddAttribute(0, "getSize", a => a.GetSize, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "onAction", a => a.OnAction, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "description", a => a.Description, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (4096L) });
})
.AddAttribute(0, "getDescription", a => a.GetDescription, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "screentip", a => a.Screentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getScreentip", a => a.GetScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "supertip", a => a.Supertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSupertip", a => a.GetSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showLabel", a => a.ShowLabel)
.AddAttribute(0, "getShowLabel", a => a.GetShowLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showImage", a => a.ShowImage)
.AddAttribute(0, "getShowImage", a => a.GetShowImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
}
private static readonly ISemanticConstraint[] _semanticConstraint = new ISemanticConstraint[] {
new AttributeMutualExclusive(0, 1) /*:size, :getSize*/ { Version = FileFormatVersions.Office2010 }
};
internal override ISemanticConstraint[] SemanticConstraints => _semanticConstraint;
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<Button>(deep);
}
/// <summary>
/// <para>Defines the ToggleButton Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:toggleButton.</para>
/// </summary>
public partial class ToggleButton : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the ToggleButton class.
/// </summary>
public ToggleButton() : base()
{
}
/// <summary>
/// <para>size, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: size</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.SizeValues> Size
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.SizeValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSize, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSize</para>
/// </summary>
public StringValue GetSize
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getPressed, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getPressed</para>
/// </summary>
public StringValue GetPressed
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>onAction, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: onAction</para>
/// </summary>
public StringValue OnAction
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>description, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: description</para>
/// </summary>
public StringValue Description
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getDescription, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getDescription</para>
/// </summary>
public StringValue GetDescription
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>screentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: screentip</para>
/// </summary>
public StringValue Screentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getScreentip</para>
/// </summary>
public StringValue GetScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>supertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: supertip</para>
/// </summary>
public StringValue Supertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSupertip</para>
/// </summary>
public StringValue GetSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showLabel</para>
/// </summary>
public BooleanValue ShowLabel
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowLabel</para>
/// </summary>
public StringValue GetShowLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showImage</para>
/// </summary>
public BooleanValue ShowImage
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowImage</para>
/// </summary>
public StringValue GetShowImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "toggleButton");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<ToggleButton>()
.AddAttribute(0, "size", a => a.Size)
.AddAttribute(0, "getSize", a => a.GetSize, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getPressed", a => a.GetPressed, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "onAction", a => a.OnAction, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "description", a => a.Description, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (4096L) });
})
.AddAttribute(0, "getDescription", a => a.GetDescription, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "screentip", a => a.Screentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getScreentip", a => a.GetScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "supertip", a => a.Supertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSupertip", a => a.GetSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showLabel", a => a.ShowLabel)
.AddAttribute(0, "getShowLabel", a => a.GetShowLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showImage", a => a.ShowImage)
.AddAttribute(0, "getShowImage", a => a.GetShowImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<ToggleButton>(deep);
}
/// <summary>
/// <para>Defines the EditBox Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:editBox.</para>
/// </summary>
public partial class EditBox : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the EditBox class.
/// </summary>
public EditBox() : base()
{
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>maxLength, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: maxLength</para>
/// </summary>
public IntegerValue MaxLength
{
get => GetAttribute<IntegerValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getText, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getText</para>
/// </summary>
public StringValue GetText
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>onChange, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: onChange</para>
/// </summary>
public StringValue OnChange
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>sizeString, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: sizeString</para>
/// </summary>
public StringValue SizeString
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>screentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: screentip</para>
/// </summary>
public StringValue Screentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getScreentip</para>
/// </summary>
public StringValue GetScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>supertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: supertip</para>
/// </summary>
public StringValue Supertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSupertip</para>
/// </summary>
public StringValue GetSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showLabel</para>
/// </summary>
public BooleanValue ShowLabel
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowLabel</para>
/// </summary>
public StringValue GetShowLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showImage</para>
/// </summary>
public BooleanValue ShowImage
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowImage</para>
/// </summary>
public StringValue GetShowImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "editBox");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<EditBox>()
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "maxLength", a => a.MaxLength, aBuilder =>
{
aBuilder.AddValidator(new NumberValidator() { MinInclusive = (1L), MaxInclusive = (1024L), IsPositive = (true) });
})
.AddAttribute(0, "getText", a => a.GetText, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "onChange", a => a.OnChange, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "sizeString", a => a.SizeString, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "screentip", a => a.Screentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getScreentip", a => a.GetScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "supertip", a => a.Supertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSupertip", a => a.GetSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showLabel", a => a.ShowLabel)
.AddAttribute(0, "getShowLabel", a => a.GetShowLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showImage", a => a.ShowImage)
.AddAttribute(0, "getShowImage", a => a.GetShowImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<EditBox>(deep);
}
/// <summary>
/// <para>Defines the ComboBox Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:comboBox.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>Item <mso14:item></description></item>
/// </list>
/// </remark>
public partial class ComboBox : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the ComboBox class.
/// </summary>
public ComboBox() : base()
{
}
/// <summary>
/// Initializes a new instance of the ComboBox class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public ComboBox(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the ComboBox class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public ComboBox(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the ComboBox class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public ComboBox(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>showItemImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showItemImage</para>
/// </summary>
public BooleanValue ShowItemImage
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemCount, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemCount</para>
/// </summary>
public StringValue GetItemCount
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemLabel</para>
/// </summary>
public StringValue GetItemLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemScreentip</para>
/// </summary>
public StringValue GetItemScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemSupertip</para>
/// </summary>
public StringValue GetItemSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemImage</para>
/// </summary>
public StringValue GetItemImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemID, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemID</para>
/// </summary>
public StringValue GetItemID
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>sizeString, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: sizeString</para>
/// </summary>
public StringValue SizeString
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>invalidateContentOnDrop, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: invalidateContentOnDrop</para>
/// </summary>
public BooleanValue InvalidateContentOnDrop
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>maxLength, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: maxLength</para>
/// </summary>
public IntegerValue MaxLength
{
get => GetAttribute<IntegerValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getText, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getText</para>
/// </summary>
public StringValue GetText
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>onChange, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: onChange</para>
/// </summary>
public StringValue OnChange
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>screentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: screentip</para>
/// </summary>
public StringValue Screentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getScreentip</para>
/// </summary>
public StringValue GetScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>supertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: supertip</para>
/// </summary>
public StringValue Supertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSupertip</para>
/// </summary>
public StringValue GetSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showLabel</para>
/// </summary>
public BooleanValue ShowLabel
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowLabel</para>
/// </summary>
public StringValue GetShowLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showImage</para>
/// </summary>
public BooleanValue ShowImage
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowImage</para>
/// </summary>
public StringValue GetShowImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "comboBox");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<Item>();
builder.AddElement<ComboBox>()
.AddAttribute(0, "showItemImage", a => a.ShowItemImage)
.AddAttribute(0, "getItemCount", a => a.GetItemCount, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemLabel", a => a.GetItemLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemScreentip", a => a.GetItemScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemSupertip", a => a.GetItemSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemImage", a => a.GetItemImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemID", a => a.GetItemID, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "sizeString", a => a.SizeString, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "invalidateContentOnDrop", a => a.InvalidateContentOnDrop)
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "maxLength", a => a.MaxLength, aBuilder =>
{
aBuilder.AddValidator(new NumberValidator() { MinInclusive = (1L), MaxInclusive = (1024L), IsPositive = (true) });
})
.AddAttribute(0, "getText", a => a.GetText, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "onChange", a => a.OnChange, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "screentip", a => a.Screentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getScreentip", a => a.GetScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "supertip", a => a.Supertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSupertip", a => a.GetSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showLabel", a => a.ShowLabel)
.AddAttribute(0, "getShowLabel", a => a.GetShowLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showImage", a => a.ShowImage)
.AddAttribute(0, "getShowImage", a => a.GetShowImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.Item), 0, 1000, version: FileFormatVersions.Office2010)
}
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<ComboBox>(deep);
}
/// <summary>
/// <para>Defines the DropDownRegular Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:dropDown.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>Item <mso14:item></description></item>
/// <item><description>ButtonRegular <mso14:button></description></item>
/// </list>
/// </remark>
public partial class DropDownRegular : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the DropDownRegular class.
/// </summary>
public DropDownRegular() : base()
{
}
/// <summary>
/// Initializes a new instance of the DropDownRegular class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public DropDownRegular(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the DropDownRegular class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public DropDownRegular(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the DropDownRegular class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public DropDownRegular(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>onAction, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: onAction</para>
/// </summary>
public StringValue OnAction
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showItemImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showItemImage</para>
/// </summary>
public BooleanValue ShowItemImage
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemCount, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemCount</para>
/// </summary>
public StringValue GetItemCount
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemLabel</para>
/// </summary>
public StringValue GetItemLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemScreentip</para>
/// </summary>
public StringValue GetItemScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemSupertip</para>
/// </summary>
public StringValue GetItemSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemImage</para>
/// </summary>
public StringValue GetItemImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemID, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemID</para>
/// </summary>
public StringValue GetItemID
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>sizeString, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: sizeString</para>
/// </summary>
public StringValue SizeString
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSelectedItemID, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSelectedItemID</para>
/// </summary>
public StringValue GetSelectedItemID
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSelectedItemIndex, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSelectedItemIndex</para>
/// </summary>
public StringValue GetSelectedItemIndex
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showItemLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showItemLabel</para>
/// </summary>
public BooleanValue ShowItemLabel
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>screentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: screentip</para>
/// </summary>
public StringValue Screentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getScreentip</para>
/// </summary>
public StringValue GetScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>supertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: supertip</para>
/// </summary>
public StringValue Supertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSupertip</para>
/// </summary>
public StringValue GetSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showLabel</para>
/// </summary>
public BooleanValue ShowLabel
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowLabel</para>
/// </summary>
public StringValue GetShowLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showImage</para>
/// </summary>
public BooleanValue ShowImage
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowImage</para>
/// </summary>
public StringValue GetShowImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "dropDown");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<Item>();
builder.AddChild<ButtonRegular>();
builder.AddElement<DropDownRegular>()
.AddAttribute(0, "onAction", a => a.OnAction, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showItemImage", a => a.ShowItemImage)
.AddAttribute(0, "getItemCount", a => a.GetItemCount, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemLabel", a => a.GetItemLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemScreentip", a => a.GetItemScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemSupertip", a => a.GetItemSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemImage", a => a.GetItemImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemID", a => a.GetItemID, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "sizeString", a => a.SizeString, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSelectedItemID", a => a.GetSelectedItemID, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSelectedItemIndex", a => a.GetSelectedItemIndex, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showItemLabel", a => a.ShowItemLabel)
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "screentip", a => a.Screentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getScreentip", a => a.GetScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "supertip", a => a.Supertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSupertip", a => a.GetSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showLabel", a => a.ShowLabel)
.AddAttribute(0, "getShowLabel", a => a.GetShowLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showImage", a => a.ShowImage)
.AddAttribute(0, "getShowImage", a => a.GetShowImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.Item), 0, 1000, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ButtonRegular), 0, 16, version: FileFormatVersions.Office2010)
}
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<DropDownRegular>(deep);
}
/// <summary>
/// <para>Defines the Gallery Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:gallery.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>Item <mso14:item></description></item>
/// <item><description>ButtonRegular <mso14:button></description></item>
/// </list>
/// </remark>
public partial class Gallery : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the Gallery class.
/// </summary>
public Gallery() : base()
{
}
/// <summary>
/// Initializes a new instance of the Gallery class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public Gallery(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the Gallery class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public Gallery(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the Gallery class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public Gallery(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>size, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: size</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.SizeValues> Size
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.SizeValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSize, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSize</para>
/// </summary>
public StringValue GetSize
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>description, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: description</para>
/// </summary>
public StringValue Description
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getDescription, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getDescription</para>
/// </summary>
public StringValue GetDescription
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>invalidateContentOnDrop, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: invalidateContentOnDrop</para>
/// </summary>
public BooleanValue InvalidateContentOnDrop
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>columns, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: columns</para>
/// </summary>
public IntegerValue Columns
{
get => GetAttribute<IntegerValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>rows, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: rows</para>
/// </summary>
public IntegerValue Rows
{
get => GetAttribute<IntegerValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>itemWidth, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: itemWidth</para>
/// </summary>
public IntegerValue ItemWidth
{
get => GetAttribute<IntegerValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>itemHeight, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: itemHeight</para>
/// </summary>
public IntegerValue ItemHeight
{
get => GetAttribute<IntegerValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemWidth, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemWidth</para>
/// </summary>
public StringValue GetItemWidth
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemHeight, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemHeight</para>
/// </summary>
public StringValue GetItemHeight
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showItemLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showItemLabel</para>
/// </summary>
public BooleanValue ShowItemLabel
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showInRibbon, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showInRibbon</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.GalleryShowInRibbonValues> ShowInRibbon
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.GalleryShowInRibbonValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>onAction, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: onAction</para>
/// </summary>
public StringValue OnAction
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showItemImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showItemImage</para>
/// </summary>
public BooleanValue ShowItemImage
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemCount, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemCount</para>
/// </summary>
public StringValue GetItemCount
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemLabel</para>
/// </summary>
public StringValue GetItemLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemScreentip</para>
/// </summary>
public StringValue GetItemScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemSupertip</para>
/// </summary>
public StringValue GetItemSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemImage</para>
/// </summary>
public StringValue GetItemImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemID, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemID</para>
/// </summary>
public StringValue GetItemID
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>sizeString, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: sizeString</para>
/// </summary>
public StringValue SizeString
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSelectedItemID, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSelectedItemID</para>
/// </summary>
public StringValue GetSelectedItemID
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSelectedItemIndex, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSelectedItemIndex</para>
/// </summary>
public StringValue GetSelectedItemIndex
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>screentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: screentip</para>
/// </summary>
public StringValue Screentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getScreentip</para>
/// </summary>
public StringValue GetScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>supertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: supertip</para>
/// </summary>
public StringValue Supertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSupertip</para>
/// </summary>
public StringValue GetSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showLabel</para>
/// </summary>
public BooleanValue ShowLabel
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowLabel</para>
/// </summary>
public StringValue GetShowLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showImage</para>
/// </summary>
public BooleanValue ShowImage
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowImage</para>
/// </summary>
public StringValue GetShowImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "gallery");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<Item>();
builder.AddChild<ButtonRegular>();
builder.AddElement<Gallery>()
.AddAttribute(0, "size", a => a.Size)
.AddAttribute(0, "getSize", a => a.GetSize, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "description", a => a.Description, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (4096L) });
})
.AddAttribute(0, "getDescription", a => a.GetDescription, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "invalidateContentOnDrop", a => a.InvalidateContentOnDrop)
.AddAttribute(0, "columns", a => a.Columns, aBuilder =>
{
aBuilder.AddValidator(new NumberValidator() { MinInclusive = (1L), MaxInclusive = (1024L), IsPositive = (true) });
})
.AddAttribute(0, "rows", a => a.Rows, aBuilder =>
{
aBuilder.AddValidator(new NumberValidator() { MinInclusive = (1L), MaxInclusive = (1024L), IsPositive = (true) });
})
.AddAttribute(0, "itemWidth", a => a.ItemWidth, aBuilder =>
{
aBuilder.AddValidator(new NumberValidator() { MinInclusive = (1L), MaxInclusive = (4096L), IsPositive = (true) });
})
.AddAttribute(0, "itemHeight", a => a.ItemHeight, aBuilder =>
{
aBuilder.AddValidator(new NumberValidator() { MinInclusive = (1L), MaxInclusive = (4096L), IsPositive = (true) });
})
.AddAttribute(0, "getItemWidth", a => a.GetItemWidth, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemHeight", a => a.GetItemHeight, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showItemLabel", a => a.ShowItemLabel)
.AddAttribute(0, "showInRibbon", a => a.ShowInRibbon)
.AddAttribute(0, "onAction", a => a.OnAction, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showItemImage", a => a.ShowItemImage)
.AddAttribute(0, "getItemCount", a => a.GetItemCount, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemLabel", a => a.GetItemLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemScreentip", a => a.GetItemScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemSupertip", a => a.GetItemSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemImage", a => a.GetItemImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemID", a => a.GetItemID, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "sizeString", a => a.SizeString, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSelectedItemID", a => a.GetSelectedItemID, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSelectedItemIndex", a => a.GetSelectedItemIndex, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "screentip", a => a.Screentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getScreentip", a => a.GetScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "supertip", a => a.Supertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSupertip", a => a.GetSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showLabel", a => a.ShowLabel)
.AddAttribute(0, "getShowLabel", a => a.GetShowLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showImage", a => a.ShowImage)
.AddAttribute(0, "getShowImage", a => a.GetShowImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.Item), 0, 1000, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ButtonRegular), 0, 16, version: FileFormatVersions.Office2010)
}
}
}
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<Gallery>(deep);
}
/// <summary>
/// <para>Defines the Menu Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:menu.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>ControlCloneRegular <mso14:control></description></item>
/// <item><description>ButtonRegular <mso14:button></description></item>
/// <item><description>CheckBox <mso14:checkBox></description></item>
/// <item><description>GalleryRegular <mso14:gallery></description></item>
/// <item><description>ToggleButtonRegular <mso14:toggleButton></description></item>
/// <item><description>MenuSeparator <mso14:menuSeparator></description></item>
/// <item><description>SplitButtonRegular <mso14:splitButton></description></item>
/// <item><description>MenuRegular <mso14:menu></description></item>
/// <item><description>DynamicMenuRegular <mso14:dynamicMenu></description></item>
/// </list>
/// </remark>
public partial class Menu : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the Menu class.
/// </summary>
public Menu() : base()
{
}
/// <summary>
/// Initializes a new instance of the Menu class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public Menu(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the Menu class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public Menu(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the Menu class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public Menu(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>size, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: size</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.SizeValues> Size
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.SizeValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSize, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSize</para>
/// </summary>
public StringValue GetSize
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>itemSize, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: itemSize</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ItemSizeValues> ItemSize
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ItemSizeValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>description, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: description</para>
/// </summary>
public StringValue Description
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getDescription, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getDescription</para>
/// </summary>
public StringValue GetDescription
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>screentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: screentip</para>
/// </summary>
public StringValue Screentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getScreentip</para>
/// </summary>
public StringValue GetScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>supertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: supertip</para>
/// </summary>
public StringValue Supertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSupertip</para>
/// </summary>
public StringValue GetSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showLabel</para>
/// </summary>
public BooleanValue ShowLabel
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowLabel</para>
/// </summary>
public StringValue GetShowLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showImage</para>
/// </summary>
public BooleanValue ShowImage
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowImage</para>
/// </summary>
public StringValue GetShowImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "menu");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<ControlCloneRegular>();
builder.AddChild<ButtonRegular>();
builder.AddChild<CheckBox>();
builder.AddChild<GalleryRegular>();
builder.AddChild<ToggleButtonRegular>();
builder.AddChild<MenuSeparator>();
builder.AddChild<SplitButtonRegular>();
builder.AddChild<MenuRegular>();
builder.AddChild<DynamicMenuRegular>();
builder.AddElement<Menu>()
.AddAttribute(0, "size", a => a.Size)
.AddAttribute(0, "getSize", a => a.GetSize, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "itemSize", a => a.ItemSize)
.AddAttribute(0, "description", a => a.Description, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (4096L) });
})
.AddAttribute(0, "getDescription", a => a.GetDescription, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "screentip", a => a.Screentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getScreentip", a => a.GetScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "supertip", a => a.Supertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSupertip", a => a.GetSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showLabel", a => a.ShowLabel)
.AddAttribute(0, "getShowLabel", a => a.GetShowLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showImage", a => a.ShowImage)
.AddAttribute(0, "getShowImage", a => a.GetShowImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Choice, 0, 1000)
{
new CompositeParticle(ParticleType.Group, 1, 1, version: FileFormatVersions.Office2010)
{
new CompositeParticle(ParticleType.Choice, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ControlCloneRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ButtonRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.CheckBox), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.GalleryRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ToggleButtonRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.MenuSeparator), 1, 1, version: FileFormatVersions.Office2010)
}
},
new CompositeParticle(ParticleType.Group, 1, 1, version: FileFormatVersions.Office2010)
{
new CompositeParticle(ParticleType.Choice, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.SplitButtonRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.MenuRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.DynamicMenuRegular), 1, 1, version: FileFormatVersions.Office2010)
}
}
}
}
}
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<Menu>(deep);
}
/// <summary>
/// <para>Defines the DynamicMenu Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:dynamicMenu.</para>
/// </summary>
public partial class DynamicMenu : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the DynamicMenu class.
/// </summary>
public DynamicMenu() : base()
{
}
/// <summary>
/// <para>size, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: size</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.SizeValues> Size
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.SizeValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSize, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSize</para>
/// </summary>
public StringValue GetSize
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>description, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: description</para>
/// </summary>
public StringValue Description
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getDescription, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getDescription</para>
/// </summary>
public StringValue GetDescription
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getContent, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getContent</para>
/// </summary>
public StringValue GetContent
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>invalidateContentOnDrop, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: invalidateContentOnDrop</para>
/// </summary>
public BooleanValue InvalidateContentOnDrop
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>screentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: screentip</para>
/// </summary>
public StringValue Screentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getScreentip</para>
/// </summary>
public StringValue GetScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>supertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: supertip</para>
/// </summary>
public StringValue Supertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSupertip</para>
/// </summary>
public StringValue GetSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showLabel</para>
/// </summary>
public BooleanValue ShowLabel
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowLabel</para>
/// </summary>
public StringValue GetShowLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showImage</para>
/// </summary>
public BooleanValue ShowImage
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowImage</para>
/// </summary>
public StringValue GetShowImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "dynamicMenu");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<DynamicMenu>()
.AddAttribute(0, "size", a => a.Size)
.AddAttribute(0, "getSize", a => a.GetSize, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "description", a => a.Description, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (4096L) });
})
.AddAttribute(0, "getDescription", a => a.GetDescription, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getContent", a => a.GetContent, aBuilder =>
{
aBuilder.AddValidator(RequiredValidator.Instance);
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "invalidateContentOnDrop", a => a.InvalidateContentOnDrop)
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "screentip", a => a.Screentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getScreentip", a => a.GetScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "supertip", a => a.Supertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSupertip", a => a.GetSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showLabel", a => a.ShowLabel)
.AddAttribute(0, "getShowLabel", a => a.GetShowLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showImage", a => a.ShowImage)
.AddAttribute(0, "getShowImage", a => a.GetShowImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<DynamicMenu>(deep);
}
/// <summary>
/// <para>Defines the SplitButton Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:splitButton.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>VisibleButton <mso14:button></description></item>
/// <item><description>VisibleToggleButton <mso14:toggleButton></description></item>
/// <item><description>MenuRegular <mso14:menu></description></item>
/// </list>
/// </remark>
public partial class SplitButton : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the SplitButton class.
/// </summary>
public SplitButton() : base()
{
}
/// <summary>
/// Initializes a new instance of the SplitButton class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public SplitButton(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the SplitButton class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public SplitButton(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the SplitButton class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public SplitButton(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>size, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: size</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.SizeValues> Size
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.SizeValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSize, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSize</para>
/// </summary>
public StringValue GetSize
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showLabel</para>
/// </summary>
public BooleanValue ShowLabel
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowLabel</para>
/// </summary>
public StringValue GetShowLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "splitButton");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<VisibleButton>();
builder.AddChild<VisibleToggleButton>();
builder.AddChild<MenuRegular>();
builder.AddElement<SplitButton>()
.AddAttribute(0, "size", a => a.Size)
.AddAttribute(0, "getSize", a => a.GetSize, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showLabel", a => a.ShowLabel)
.AddAttribute(0, "getShowLabel", a => a.GetShowLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Sequence, 0, 1)
{
new CompositeParticle(ParticleType.Choice, 0, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.VisibleButton), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.VisibleToggleButton), 1, 1, version: FileFormatVersions.Office2010)
},
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.MenuRegular), 1, 1, version: FileFormatVersions.Office2010)
}
}
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<SplitButton>(deep);
}
/// <summary>
/// <para>Defines the Box Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:box.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>ControlClone <mso14:control></description></item>
/// <item><description>LabelControl <mso14:labelControl></description></item>
/// <item><description>Button <mso14:button></description></item>
/// <item><description>ToggleButton <mso14:toggleButton></description></item>
/// <item><description>CheckBox <mso14:checkBox></description></item>
/// <item><description>EditBox <mso14:editBox></description></item>
/// <item><description>ComboBox <mso14:comboBox></description></item>
/// <item><description>DropDownRegular <mso14:dropDown></description></item>
/// <item><description>Gallery <mso14:gallery></description></item>
/// <item><description>Menu <mso14:menu></description></item>
/// <item><description>DynamicMenu <mso14:dynamicMenu></description></item>
/// <item><description>SplitButton <mso14:splitButton></description></item>
/// <item><description>Box <mso14:box></description></item>
/// <item><description>ButtonGroup <mso14:buttonGroup></description></item>
/// </list>
/// </remark>
public partial class Box : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the Box class.
/// </summary>
public Box() : base()
{
}
/// <summary>
/// Initializes a new instance of the Box class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public Box(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the Box class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public Box(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the Box class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public Box(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>boxStyle, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: boxStyle</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.BoxStyleValues> BoxStyle
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.BoxStyleValues>>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "box");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<ControlClone>();
builder.AddChild<LabelControl>();
builder.AddChild<Button>();
builder.AddChild<ToggleButton>();
builder.AddChild<CheckBox>();
builder.AddChild<EditBox>();
builder.AddChild<ComboBox>();
builder.AddChild<DropDownRegular>();
builder.AddChild<Gallery>();
builder.AddChild<Menu>();
builder.AddChild<DynamicMenu>();
builder.AddChild<SplitButton>();
builder.AddChild<Box>();
builder.AddChild<ButtonGroup>();
builder.AddElement<Box>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "boxStyle", a => a.BoxStyle);
builder.Particle = new CompositeParticle(ParticleType.Group, 0, 1000, version: FileFormatVersions.Office2010)
{
new CompositeParticle(ParticleType.Choice, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ControlClone), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.LabelControl), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.Button), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ToggleButton), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.CheckBox), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.EditBox), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ComboBox), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.DropDownRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.Gallery), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.Menu), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.DynamicMenu), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.SplitButton), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.Box), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ButtonGroup), 1, 1, version: FileFormatVersions.Office2010)
}
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<Box>(deep);
}
/// <summary>
/// <para>Defines the ButtonGroup Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:buttonGroup.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>ControlCloneRegular <mso14:control></description></item>
/// <item><description>ButtonRegular <mso14:button></description></item>
/// <item><description>ToggleButtonRegular <mso14:toggleButton></description></item>
/// <item><description>GalleryRegular <mso14:gallery></description></item>
/// <item><description>MenuRegular <mso14:menu></description></item>
/// <item><description>DynamicMenuRegular <mso14:dynamicMenu></description></item>
/// <item><description>SplitButtonRegular <mso14:splitButton></description></item>
/// <item><description>Separator <mso14:separator></description></item>
/// </list>
/// </remark>
public partial class ButtonGroup : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the ButtonGroup class.
/// </summary>
public ButtonGroup() : base()
{
}
/// <summary>
/// Initializes a new instance of the ButtonGroup class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public ButtonGroup(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the ButtonGroup class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public ButtonGroup(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the ButtonGroup class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public ButtonGroup(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "buttonGroup");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<ControlCloneRegular>();
builder.AddChild<ButtonRegular>();
builder.AddChild<ToggleButtonRegular>();
builder.AddChild<GalleryRegular>();
builder.AddChild<MenuRegular>();
builder.AddChild<DynamicMenuRegular>();
builder.AddChild<SplitButtonRegular>();
builder.AddChild<Separator>();
builder.AddElement<ButtonGroup>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
});
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Choice, 0, 1000)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ControlCloneRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ButtonRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ToggleButtonRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.GalleryRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.MenuRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.DynamicMenuRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.SplitButtonRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.Separator), 1, 1, version: FileFormatVersions.Office2010)
}
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<ButtonGroup>(deep);
}
/// <summary>
/// <para>Defines the BackstageMenuButton Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:button.</para>
/// </summary>
public partial class BackstageMenuButton : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the BackstageMenuButton class.
/// </summary>
public BackstageMenuButton() : base()
{
}
/// <summary>
/// <para>description, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: description</para>
/// </summary>
public StringValue Description
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getDescription, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getDescription</para>
/// </summary>
public StringValue GetDescription
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>onAction, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: onAction</para>
/// </summary>
public StringValue OnAction
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>isDefinitive, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: isDefinitive</para>
/// </summary>
public BooleanValue IsDefinitive
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "button");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<BackstageMenuButton>()
.AddAttribute(0, "description", a => a.Description, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (4096L) });
})
.AddAttribute(0, "getDescription", a => a.GetDescription, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "onAction", a => a.OnAction, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "isDefinitive", a => a.IsDefinitive)
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<BackstageMenuButton>(deep);
}
/// <summary>
/// <para>Defines the BackstageMenuCheckBox Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:checkBox.</para>
/// </summary>
public partial class BackstageMenuCheckBox : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the BackstageMenuCheckBox class.
/// </summary>
public BackstageMenuCheckBox() : base()
{
}
/// <summary>
/// <para>description, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: description</para>
/// </summary>
public StringValue Description
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getDescription, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getDescription</para>
/// </summary>
public StringValue GetDescription
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>onAction, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: onAction</para>
/// </summary>
public StringValue OnAction
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getPressed, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getPressed</para>
/// </summary>
public StringValue GetPressed
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "checkBox");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<BackstageMenuCheckBox>()
.AddAttribute(0, "description", a => a.Description, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (4096L) });
})
.AddAttribute(0, "getDescription", a => a.GetDescription, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "onAction", a => a.OnAction, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getPressed", a => a.GetPressed, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<BackstageMenuCheckBox>(deep);
}
/// <summary>
/// <para>Defines the BackstageSubMenu Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:menu.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>BackstageMenuGroup <mso14:menuGroup></description></item>
/// </list>
/// </remark>
public partial class BackstageSubMenu : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the BackstageSubMenu class.
/// </summary>
public BackstageSubMenu() : base()
{
}
/// <summary>
/// Initializes a new instance of the BackstageSubMenu class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public BackstageSubMenu(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the BackstageSubMenu class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public BackstageSubMenu(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the BackstageSubMenu class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public BackstageSubMenu(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>description, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: description</para>
/// </summary>
public StringValue Description
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getDescription, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getDescription</para>
/// </summary>
public StringValue GetDescription
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "menu");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<BackstageMenuGroup>();
builder.AddElement<BackstageSubMenu>()
.AddAttribute(0, "description", a => a.Description, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (4096L) });
})
.AddAttribute(0, "getDescription", a => a.GetDescription, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Choice, 0, 1000)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageMenuGroup), 1, 1, version: FileFormatVersions.Office2010)
}
}
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<BackstageSubMenu>(deep);
}
/// <summary>
/// <para>Defines the BackstageMenuToggleButton Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:toggleButton.</para>
/// </summary>
public partial class BackstageMenuToggleButton : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the BackstageMenuToggleButton class.
/// </summary>
public BackstageMenuToggleButton() : base()
{
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>description, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: description</para>
/// </summary>
public StringValue Description
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getDescription, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getDescription</para>
/// </summary>
public StringValue GetDescription
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>onAction, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: onAction</para>
/// </summary>
public StringValue OnAction
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getPressed, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getPressed</para>
/// </summary>
public StringValue GetPressed
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "toggleButton");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<BackstageMenuToggleButton>()
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "description", a => a.Description, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (4096L) });
})
.AddAttribute(0, "getDescription", a => a.GetDescription, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "onAction", a => a.OnAction, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getPressed", a => a.GetPressed, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<BackstageMenuToggleButton>(deep);
}
/// <summary>
/// <para>Defines the BackstageGroupButton Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:button.</para>
/// </summary>
public partial class BackstageGroupButton : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the BackstageGroupButton class.
/// </summary>
public BackstageGroupButton() : base()
{
}
/// <summary>
/// <para>expand, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: expand</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues> Expand
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>style, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: style</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.Style2Values> Style
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.Style2Values>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>screentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: screentip</para>
/// </summary>
public StringValue Screentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getScreentip</para>
/// </summary>
public StringValue GetScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>supertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: supertip</para>
/// </summary>
public StringValue Supertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSupertip</para>
/// </summary>
public StringValue GetSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>onAction, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: onAction</para>
/// </summary>
public StringValue OnAction
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>isDefinitive, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: isDefinitive</para>
/// </summary>
public BooleanValue IsDefinitive
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "button");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<BackstageGroupButton>()
.AddAttribute(0, "expand", a => a.Expand)
.AddAttribute(0, "style", a => a.Style)
.AddAttribute(0, "screentip", a => a.Screentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getScreentip", a => a.GetScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "supertip", a => a.Supertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSupertip", a => a.GetSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "onAction", a => a.OnAction, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "isDefinitive", a => a.IsDefinitive)
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<BackstageGroupButton>(deep);
}
/// <summary>
/// <para>Defines the BackstageCheckBox Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:checkBox.</para>
/// </summary>
public partial class BackstageCheckBox : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the BackstageCheckBox class.
/// </summary>
public BackstageCheckBox() : base()
{
}
/// <summary>
/// <para>expand, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: expand</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues> Expand
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>description, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: description</para>
/// </summary>
public StringValue Description
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getDescription, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getDescription</para>
/// </summary>
public StringValue GetDescription
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>screentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: screentip</para>
/// </summary>
public StringValue Screentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getScreentip</para>
/// </summary>
public StringValue GetScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>supertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: supertip</para>
/// </summary>
public StringValue Supertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSupertip</para>
/// </summary>
public StringValue GetSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>onAction, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: onAction</para>
/// </summary>
public StringValue OnAction
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getPressed, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getPressed</para>
/// </summary>
public StringValue GetPressed
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "checkBox");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<BackstageCheckBox>()
.AddAttribute(0, "expand", a => a.Expand)
.AddAttribute(0, "description", a => a.Description, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (4096L) });
})
.AddAttribute(0, "getDescription", a => a.GetDescription, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "screentip", a => a.Screentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getScreentip", a => a.GetScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "supertip", a => a.Supertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSupertip", a => a.GetSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "onAction", a => a.OnAction, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getPressed", a => a.GetPressed, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<BackstageCheckBox>(deep);
}
/// <summary>
/// <para>Defines the BackstageEditBox Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:editBox.</para>
/// </summary>
public partial class BackstageEditBox : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the BackstageEditBox class.
/// </summary>
public BackstageEditBox() : base()
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>alignLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: alignLabel</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues> AlignLabel
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>expand, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: expand</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues> Expand
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getText, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getText</para>
/// </summary>
public StringValue GetText
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>onChange, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: onChange</para>
/// </summary>
public StringValue OnChange
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>maxLength, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: maxLength</para>
/// </summary>
public IntegerValue MaxLength
{
get => GetAttribute<IntegerValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>sizeString, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: sizeString</para>
/// </summary>
public StringValue SizeString
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "editBox");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<BackstageEditBox>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "alignLabel", a => a.AlignLabel)
.AddAttribute(0, "expand", a => a.Expand)
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getText", a => a.GetText, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "onChange", a => a.OnChange, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "maxLength", a => a.MaxLength, aBuilder =>
{
aBuilder.AddValidator(new NumberValidator() { MinInclusive = (1L), MaxInclusive = (1024L), IsPositive = (true) });
})
.AddAttribute(0, "sizeString", a => a.SizeString, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<BackstageEditBox>(deep);
}
/// <summary>
/// <para>Defines the BackstageDropDown Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:dropDown.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>ItemBackstageItem <mso14:item></description></item>
/// </list>
/// </remark>
public partial class BackstageDropDown : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the BackstageDropDown class.
/// </summary>
public BackstageDropDown() : base()
{
}
/// <summary>
/// Initializes a new instance of the BackstageDropDown class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public BackstageDropDown(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the BackstageDropDown class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public BackstageDropDown(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the BackstageDropDown class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public BackstageDropDown(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>alignLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: alignLabel</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues> AlignLabel
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>expand, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: expand</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues> Expand
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>onAction, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: onAction</para>
/// </summary>
public StringValue OnAction
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>screentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: screentip</para>
/// </summary>
public StringValue Screentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getScreentip</para>
/// </summary>
public StringValue GetScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>supertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: supertip</para>
/// </summary>
public StringValue Supertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSupertip</para>
/// </summary>
public StringValue GetSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSelectedItemIndex, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSelectedItemIndex</para>
/// </summary>
public StringValue GetSelectedItemIndex
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>sizeString, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: sizeString</para>
/// </summary>
public StringValue SizeString
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemCount, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemCount</para>
/// </summary>
public StringValue GetItemCount
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemLabel</para>
/// </summary>
public StringValue GetItemLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemID, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemID</para>
/// </summary>
public StringValue GetItemID
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "dropDown");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<ItemBackstageItem>();
builder.AddElement<BackstageDropDown>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "alignLabel", a => a.AlignLabel)
.AddAttribute(0, "expand", a => a.Expand)
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "onAction", a => a.OnAction, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "screentip", a => a.Screentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getScreentip", a => a.GetScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "supertip", a => a.Supertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSupertip", a => a.GetSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSelectedItemIndex", a => a.GetSelectedItemIndex, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "sizeString", a => a.SizeString, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemCount", a => a.GetItemCount, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemLabel", a => a.GetItemLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemID", a => a.GetItemID, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ItemBackstageItem), 0, 1000, version: FileFormatVersions.Office2010)
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<BackstageDropDown>(deep);
}
/// <summary>
/// <para>Defines the RadioGroup Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:radioGroup.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>RadioButtonBackstageItem <mso14:radioButton></description></item>
/// </list>
/// </remark>
public partial class RadioGroup : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the RadioGroup class.
/// </summary>
public RadioGroup() : base()
{
}
/// <summary>
/// Initializes a new instance of the RadioGroup class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public RadioGroup(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the RadioGroup class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public RadioGroup(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the RadioGroup class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public RadioGroup(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>alignLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: alignLabel</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues> AlignLabel
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>expand, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: expand</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues> Expand
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>onAction, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: onAction</para>
/// </summary>
public StringValue OnAction
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSelectedItemIndex, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSelectedItemIndex</para>
/// </summary>
public StringValue GetSelectedItemIndex
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemCount, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemCount</para>
/// </summary>
public StringValue GetItemCount
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemLabel</para>
/// </summary>
public StringValue GetItemLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemID, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemID</para>
/// </summary>
public StringValue GetItemID
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "radioGroup");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<RadioButtonBackstageItem>();
builder.AddElement<RadioGroup>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "alignLabel", a => a.AlignLabel)
.AddAttribute(0, "expand", a => a.Expand)
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "onAction", a => a.OnAction, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSelectedItemIndex", a => a.GetSelectedItemIndex, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemCount", a => a.GetItemCount, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemLabel", a => a.GetItemLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemID", a => a.GetItemID, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.RadioButtonBackstageItem), 0, 1000, version: FileFormatVersions.Office2010)
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<RadioGroup>(deep);
}
/// <summary>
/// <para>Defines the BackstageComboBox Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:comboBox.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>ItemBackstageItem <mso14:item></description></item>
/// </list>
/// </remark>
public partial class BackstageComboBox : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the BackstageComboBox class.
/// </summary>
public BackstageComboBox() : base()
{
}
/// <summary>
/// Initializes a new instance of the BackstageComboBox class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public BackstageComboBox(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the BackstageComboBox class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public BackstageComboBox(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the BackstageComboBox class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public BackstageComboBox(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>alignLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: alignLabel</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues> AlignLabel
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>expand, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: expand</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues> Expand
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getText, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getText</para>
/// </summary>
public StringValue GetText
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>onChange, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: onChange</para>
/// </summary>
public StringValue OnChange
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>sizeString, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: sizeString</para>
/// </summary>
public StringValue SizeString
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemCount, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemCount</para>
/// </summary>
public StringValue GetItemCount
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemLabel</para>
/// </summary>
public StringValue GetItemLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getItemID, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getItemID</para>
/// </summary>
public StringValue GetItemID
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "comboBox");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<ItemBackstageItem>();
builder.AddElement<BackstageComboBox>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "alignLabel", a => a.AlignLabel)
.AddAttribute(0, "expand", a => a.Expand)
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getText", a => a.GetText, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "onChange", a => a.OnChange, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "sizeString", a => a.SizeString, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemCount", a => a.GetItemCount, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemLabel", a => a.GetItemLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getItemID", a => a.GetItemID, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ItemBackstageItem), 0, 1000, version: FileFormatVersions.Office2010)
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<BackstageComboBox>(deep);
}
/// <summary>
/// <para>Defines the Hyperlink Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:hyperlink.</para>
/// </summary>
public partial class Hyperlink : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the Hyperlink class.
/// </summary>
public Hyperlink() : base()
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>alignLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: alignLabel</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues> AlignLabel
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>expand, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: expand</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues> Expand
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>onAction, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: onAction</para>
/// </summary>
public StringValue OnAction
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>screentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: screentip</para>
/// </summary>
public StringValue Screentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getScreentip</para>
/// </summary>
public StringValue GetScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>supertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: supertip</para>
/// </summary>
public StringValue Supertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSupertip</para>
/// </summary>
public StringValue GetSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>target, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: target</para>
/// </summary>
public StringValue Target
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getTarget, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getTarget</para>
/// </summary>
public StringValue GetTarget
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "hyperlink");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<Hyperlink>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "alignLabel", a => a.AlignLabel)
.AddAttribute(0, "expand", a => a.Expand)
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "onAction", a => a.OnAction, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "screentip", a => a.Screentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getScreentip", a => a.GetScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "supertip", a => a.Supertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSupertip", a => a.GetSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "target", a => a.Target, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getTarget", a => a.GetTarget, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<Hyperlink>(deep);
}
/// <summary>
/// <para>Defines the BackstageLabelControl Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:labelControl.</para>
/// </summary>
public partial class BackstageLabelControl : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the BackstageLabelControl class.
/// </summary>
public BackstageLabelControl() : base()
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>alignLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: alignLabel</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues> AlignLabel
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>expand, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: expand</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues> Expand
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>noWrap, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: noWrap</para>
/// </summary>
public BooleanValue NoWrap
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "labelControl");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<BackstageLabelControl>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "alignLabel", a => a.AlignLabel)
.AddAttribute(0, "expand", a => a.Expand)
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "noWrap", a => a.NoWrap);
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<BackstageLabelControl>(deep);
}
/// <summary>
/// <para>Defines the GroupBox Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:groupBox.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>BackstageGroupButton <mso14:button></description></item>
/// <item><description>BackstageCheckBox <mso14:checkBox></description></item>
/// <item><description>BackstageEditBox <mso14:editBox></description></item>
/// <item><description>BackstageDropDown <mso14:dropDown></description></item>
/// <item><description>RadioGroup <mso14:radioGroup></description></item>
/// <item><description>BackstageComboBox <mso14:comboBox></description></item>
/// <item><description>Hyperlink <mso14:hyperlink></description></item>
/// <item><description>BackstageLabelControl <mso14:labelControl></description></item>
/// <item><description>GroupBox <mso14:groupBox></description></item>
/// <item><description>LayoutContainer <mso14:layoutContainer></description></item>
/// <item><description>ImageControl <mso14:imageControl></description></item>
/// </list>
/// </remark>
public partial class GroupBox : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the GroupBox class.
/// </summary>
public GroupBox() : base()
{
}
/// <summary>
/// Initializes a new instance of the GroupBox class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public GroupBox(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the GroupBox class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public GroupBox(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the GroupBox class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public GroupBox(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>expand, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: expand</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues> Expand
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "groupBox");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<BackstageGroupButton>();
builder.AddChild<BackstageCheckBox>();
builder.AddChild<BackstageEditBox>();
builder.AddChild<BackstageDropDown>();
builder.AddChild<RadioGroup>();
builder.AddChild<BackstageComboBox>();
builder.AddChild<Hyperlink>();
builder.AddChild<BackstageLabelControl>();
builder.AddChild<GroupBox>();
builder.AddChild<LayoutContainer>();
builder.AddChild<ImageControl>();
builder.AddElement<GroupBox>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "expand", a => a.Expand)
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Group, 0, 1000, version: FileFormatVersions.Office2010)
{
new CompositeParticle(ParticleType.Choice, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageGroupButton), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageCheckBox), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageEditBox), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageDropDown), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.RadioGroup), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageComboBox), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.Hyperlink), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageLabelControl), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.GroupBox), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.LayoutContainer), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ImageControl), 1, 1, version: FileFormatVersions.Office2010)
}
}
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<GroupBox>(deep);
}
/// <summary>
/// <para>Defines the LayoutContainer Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:layoutContainer.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>BackstageGroupButton <mso14:button></description></item>
/// <item><description>BackstageCheckBox <mso14:checkBox></description></item>
/// <item><description>BackstageEditBox <mso14:editBox></description></item>
/// <item><description>BackstageDropDown <mso14:dropDown></description></item>
/// <item><description>RadioGroup <mso14:radioGroup></description></item>
/// <item><description>BackstageComboBox <mso14:comboBox></description></item>
/// <item><description>Hyperlink <mso14:hyperlink></description></item>
/// <item><description>BackstageLabelControl <mso14:labelControl></description></item>
/// <item><description>GroupBox <mso14:groupBox></description></item>
/// <item><description>LayoutContainer <mso14:layoutContainer></description></item>
/// <item><description>ImageControl <mso14:imageControl></description></item>
/// </list>
/// </remark>
public partial class LayoutContainer : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the LayoutContainer class.
/// </summary>
public LayoutContainer() : base()
{
}
/// <summary>
/// Initializes a new instance of the LayoutContainer class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public LayoutContainer(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the LayoutContainer class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public LayoutContainer(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the LayoutContainer class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public LayoutContainer(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>align, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: align</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues> Align
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>expand, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: expand</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues> Expand
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ExpandValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>layoutChildren, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: layoutChildren</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.LayoutChildrenValues> LayoutChildren
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.LayoutChildrenValues>>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "layoutContainer");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<BackstageGroupButton>();
builder.AddChild<BackstageCheckBox>();
builder.AddChild<BackstageEditBox>();
builder.AddChild<BackstageDropDown>();
builder.AddChild<RadioGroup>();
builder.AddChild<BackstageComboBox>();
builder.AddChild<Hyperlink>();
builder.AddChild<BackstageLabelControl>();
builder.AddChild<GroupBox>();
builder.AddChild<LayoutContainer>();
builder.AddChild<ImageControl>();
builder.AddElement<LayoutContainer>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "align", a => a.Align)
.AddAttribute(0, "expand", a => a.Expand)
.AddAttribute(0, "layoutChildren", a => a.LayoutChildren);
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Group, 0, 1000, version: FileFormatVersions.Office2010)
{
new CompositeParticle(ParticleType.Choice, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageGroupButton), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageCheckBox), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageEditBox), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageDropDown), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.RadioGroup), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageComboBox), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.Hyperlink), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageLabelControl), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.GroupBox), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.LayoutContainer), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ImageControl), 1, 1, version: FileFormatVersions.Office2010)
}
}
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<LayoutContainer>(deep);
}
/// <summary>
/// <para>Defines the ImageControl Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:imageControl.</para>
/// </summary>
public partial class ImageControl : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the ImageControl class.
/// </summary>
public ImageControl() : base()
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>altText, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: altText</para>
/// </summary>
public StringValue AltText
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getAltText, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getAltText</para>
/// </summary>
public StringValue GetAltText
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "imageControl");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<ImageControl>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "altText", a => a.AltText, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (4096L) });
})
.AddAttribute(0, "getAltText", a => a.GetAltText, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<ImageControl>(deep);
}
/// <summary>
/// <para>Defines the BackstageGroup Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:group.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>PrimaryItem <mso14:primaryItem></description></item>
/// <item><description>TopItemsGroupControls <mso14:topItems></description></item>
/// <item><description>BottomItemsGroupControls <mso14:bottomItems></description></item>
/// </list>
/// </remark>
public partial class BackstageGroup : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the BackstageGroup class.
/// </summary>
public BackstageGroup() : base()
{
}
/// <summary>
/// Initializes a new instance of the BackstageGroup class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public BackstageGroup(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the BackstageGroup class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public BackstageGroup(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the BackstageGroup class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public BackstageGroup(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>style, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: style</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.StyleValues> Style
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.StyleValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getStyle, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getStyle</para>
/// </summary>
public StringValue GetStyle
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>helperText, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: helperText</para>
/// </summary>
public StringValue HelperText
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getHelperText, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getHelperText</para>
/// </summary>
public StringValue GetHelperText
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showLabel</para>
/// </summary>
public BooleanValue ShowLabel
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowLabel</para>
/// </summary>
public StringValue GetShowLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "group");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<PrimaryItem>();
builder.AddChild<TopItemsGroupControls>();
builder.AddChild<BottomItemsGroupControls>();
builder.AddElement<BackstageGroup>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "style", a => a.Style)
.AddAttribute(0, "getStyle", a => a.GetStyle, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "helperText", a => a.HelperText, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (4096L) });
})
.AddAttribute(0, "getHelperText", a => a.GetHelperText, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showLabel", a => a.ShowLabel)
.AddAttribute(0, "getShowLabel", a => a.GetShowLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Choice, 0, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.PrimaryItem), 0, 1, version: FileFormatVersions.Office2010)
},
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.TopItemsGroupControls), 0, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BottomItemsGroupControls), 0, 1, version: FileFormatVersions.Office2010)
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<BackstageGroup>(deep);
}
/// <summary>
/// <para>Defines the TaskGroup Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:taskGroup.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>TaskGroupCategory <mso14:category></description></item>
/// </list>
/// </remark>
public partial class TaskGroup : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the TaskGroup class.
/// </summary>
public TaskGroup() : base()
{
}
/// <summary>
/// Initializes a new instance of the TaskGroup class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public TaskGroup(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the TaskGroup class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public TaskGroup(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the TaskGroup class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public TaskGroup(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>helperText, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: helperText</para>
/// </summary>
public StringValue HelperText
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getHelperText, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getHelperText</para>
/// </summary>
public StringValue GetHelperText
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showLabel</para>
/// </summary>
public BooleanValue ShowLabel
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowLabel</para>
/// </summary>
public StringValue GetShowLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>allowedTaskSizes, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: allowedTaskSizes</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.TaskSizesValues> AllowedTaskSizes
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.TaskSizesValues>>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "taskGroup");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<TaskGroupCategory>();
builder.AddElement<TaskGroup>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "helperText", a => a.HelperText, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (4096L) });
})
.AddAttribute(0, "getHelperText", a => a.GetHelperText, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showLabel", a => a.ShowLabel)
.AddAttribute(0, "getShowLabel", a => a.GetShowLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "allowedTaskSizes", a => a.AllowedTaskSizes);
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.TaskGroupCategory), 0, 100, version: FileFormatVersions.Office2010)
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<TaskGroup>(deep);
}
/// <summary>
/// <para>Defines the MenuRoot Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:menu.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>ControlCloneRegular <mso14:control></description></item>
/// <item><description>ButtonRegular <mso14:button></description></item>
/// <item><description>CheckBox <mso14:checkBox></description></item>
/// <item><description>GalleryRegular <mso14:gallery></description></item>
/// <item><description>ToggleButtonRegular <mso14:toggleButton></description></item>
/// <item><description>MenuSeparator <mso14:menuSeparator></description></item>
/// <item><description>SplitButtonRegular <mso14:splitButton></description></item>
/// <item><description>MenuRegular <mso14:menu></description></item>
/// <item><description>DynamicMenuRegular <mso14:dynamicMenu></description></item>
/// </list>
/// </remark>
public partial class MenuRoot : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the MenuRoot class.
/// </summary>
public MenuRoot() : base()
{
}
/// <summary>
/// Initializes a new instance of the MenuRoot class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public MenuRoot(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the MenuRoot class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public MenuRoot(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the MenuRoot class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public MenuRoot(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>title, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: title</para>
/// </summary>
public StringValue Title
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getTitle, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getTitle</para>
/// </summary>
public StringValue GetTitle
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>itemSize, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: itemSize</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ItemSizeValues> ItemSize
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ItemSizeValues>>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "menu");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<ControlCloneRegular>();
builder.AddChild<ButtonRegular>();
builder.AddChild<CheckBox>();
builder.AddChild<GalleryRegular>();
builder.AddChild<ToggleButtonRegular>();
builder.AddChild<MenuSeparator>();
builder.AddChild<SplitButtonRegular>();
builder.AddChild<MenuRegular>();
builder.AddChild<DynamicMenuRegular>();
builder.AddElement<MenuRoot>()
.AddAttribute(0, "title", a => a.Title, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getTitle", a => a.GetTitle, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "itemSize", a => a.ItemSize);
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Choice, 0, 1000)
{
new CompositeParticle(ParticleType.Group, 1, 1, version: FileFormatVersions.Office2010)
{
new CompositeParticle(ParticleType.Choice, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ControlCloneRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ButtonRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.CheckBox), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.GalleryRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ToggleButtonRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.MenuSeparator), 1, 1, version: FileFormatVersions.Office2010)
}
},
new CompositeParticle(ParticleType.Group, 1, 1, version: FileFormatVersions.Office2010)
{
new CompositeParticle(ParticleType.Choice, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.SplitButtonRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.MenuRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.DynamicMenuRegular), 1, 1, version: FileFormatVersions.Office2010)
}
}
}
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<MenuRoot>(deep);
}
/// <summary>
/// <para>Defines the CustomUI Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:customUI.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>Commands <mso14:commands></description></item>
/// <item><description>Ribbon <mso14:ribbon></description></item>
/// <item><description>Backstage <mso14:backstage></description></item>
/// <item><description>ContextMenus <mso14:contextMenus></description></item>
/// </list>
/// </remark>
public partial class CustomUI : OpenXmlPartRootElement
{
/// <summary>
/// Initializes a new instance of the CustomUI class.
/// </summary>
public CustomUI() : base()
{
}
/// <summary>
/// Initializes a new instance of the CustomUI class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public CustomUI(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the CustomUI class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public CustomUI(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the CustomUI class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public CustomUI(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>onLoad, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: onLoad</para>
/// </summary>
public StringValue OnLoad
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>loadImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: loadImage</para>
/// </summary>
public StringValue LoadImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "customUI");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<Commands>();
builder.AddChild<Ribbon>();
builder.AddChild<Backstage>();
builder.AddChild<ContextMenus>();
builder.AddElement<CustomUI>()
.AddAttribute(0, "onLoad", a => a.OnLoad, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "loadImage", a => a.LoadImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.Commands), 0, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.Ribbon), 0, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.Backstage), 0, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ContextMenus), 0, 1, version: FileFormatVersions.Office2010)
};
}
/// <summary>
/// <para>Commands.</para>
/// <para>Represents the following element tag in the schema: mso14:commands.</para>
/// </summary>
/// <remark>
/// xmlns:mso14 = http://schemas.microsoft.com/office/2009/07/customui
/// </remark>
public Commands Commands
{
get => GetElement<Commands>();
set => SetElement(value);
}
/// <summary>
/// <para>Ribbon.</para>
/// <para>Represents the following element tag in the schema: mso14:ribbon.</para>
/// </summary>
/// <remark>
/// xmlns:mso14 = http://schemas.microsoft.com/office/2009/07/customui
/// </remark>
public Ribbon Ribbon
{
get => GetElement<Ribbon>();
set => SetElement(value);
}
/// <summary>
/// <para>Backstage.</para>
/// <para>Represents the following element tag in the schema: mso14:backstage.</para>
/// </summary>
/// <remark>
/// xmlns:mso14 = http://schemas.microsoft.com/office/2009/07/customui
/// </remark>
public Backstage Backstage
{
get => GetElement<Backstage>();
set => SetElement(value);
}
/// <summary>
/// <para>ContextMenus.</para>
/// <para>Represents the following element tag in the schema: mso14:contextMenus.</para>
/// </summary>
/// <remark>
/// xmlns:mso14 = http://schemas.microsoft.com/office/2009/07/customui
/// </remark>
public ContextMenus ContextMenus
{
get => GetElement<ContextMenus>();
set => SetElement(value);
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<CustomUI>(deep);
internal CustomUI(RibbonAndBackstageCustomizationsPart ownerPart) : base(ownerPart)
{
}
/// <summary>
/// Loads the DOM from the RibbonAndBackstageCustomizationsPart
/// </summary>
/// <param name="openXmlPart">Specifies the part to be loaded.</param>
public void Load(RibbonAndBackstageCustomizationsPart openXmlPart)
{
LoadFromPart(openXmlPart);
}
/// <summary>
/// Saves the DOM into the RibbonAndBackstageCustomizationsPart.
/// </summary>
/// <param name="openXmlPart">Specifies the part to save to.</param>
public void Save(RibbonAndBackstageCustomizationsPart openXmlPart)
{
base.SaveToPart(openXmlPart);
}
/// <summary>
/// Gets the RibbonAndBackstageCustomizationsPart associated with this element.
/// </summary>
public RibbonAndBackstageCustomizationsPart RibbonAndBackstageCustomizationsPart
{
get => OpenXmlPart as RibbonAndBackstageCustomizationsPart;
internal set => OpenXmlPart = value;
}
}
/// <summary>
/// <para>Defines the Item Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:item.</para>
/// </summary>
public partial class Item : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the Item class.
/// </summary>
public Item() : base()
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>screentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: screentip</para>
/// </summary>
public StringValue Screentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>supertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: supertip</para>
/// </summary>
public StringValue Supertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "item");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<Item>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "screentip", a => a.Screentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "supertip", a => a.Supertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<Item>(deep);
}
/// <summary>
/// <para>Defines the VisibleButton Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:button.</para>
/// </summary>
public partial class VisibleButton : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the VisibleButton class.
/// </summary>
public VisibleButton() : base()
{
}
/// <summary>
/// <para>onAction, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: onAction</para>
/// </summary>
public StringValue OnAction
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>description, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: description</para>
/// </summary>
public StringValue Description
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getDescription, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getDescription</para>
/// </summary>
public StringValue GetDescription
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>screentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: screentip</para>
/// </summary>
public StringValue Screentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getScreentip</para>
/// </summary>
public StringValue GetScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>supertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: supertip</para>
/// </summary>
public StringValue Supertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSupertip</para>
/// </summary>
public StringValue GetSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showLabel</para>
/// </summary>
public BooleanValue ShowLabel
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowLabel</para>
/// </summary>
public StringValue GetShowLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showImage</para>
/// </summary>
public BooleanValue ShowImage
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowImage</para>
/// </summary>
public StringValue GetShowImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "button");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<VisibleButton>()
.AddAttribute(0, "onAction", a => a.OnAction, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "description", a => a.Description, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (4096L) });
})
.AddAttribute(0, "getDescription", a => a.GetDescription, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "screentip", a => a.Screentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getScreentip", a => a.GetScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "supertip", a => a.Supertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSupertip", a => a.GetSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showLabel", a => a.ShowLabel)
.AddAttribute(0, "getShowLabel", a => a.GetShowLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showImage", a => a.ShowImage)
.AddAttribute(0, "getShowImage", a => a.GetShowImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<VisibleButton>(deep);
}
/// <summary>
/// <para>Defines the VisibleToggleButton Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:toggleButton.</para>
/// </summary>
public partial class VisibleToggleButton : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the VisibleToggleButton class.
/// </summary>
public VisibleToggleButton() : base()
{
}
/// <summary>
/// <para>getPressed, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getPressed</para>
/// </summary>
public StringValue GetPressed
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>onAction, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: onAction</para>
/// </summary>
public StringValue OnAction
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>description, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: description</para>
/// </summary>
public StringValue Description
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getDescription, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getDescription</para>
/// </summary>
public StringValue GetDescription
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>screentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: screentip</para>
/// </summary>
public StringValue Screentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getScreentip</para>
/// </summary>
public StringValue GetScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>supertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: supertip</para>
/// </summary>
public StringValue Supertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSupertip</para>
/// </summary>
public StringValue GetSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showLabel</para>
/// </summary>
public BooleanValue ShowLabel
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowLabel</para>
/// </summary>
public StringValue GetShowLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showImage</para>
/// </summary>
public BooleanValue ShowImage
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowImage</para>
/// </summary>
public StringValue GetShowImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "toggleButton");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<VisibleToggleButton>()
.AddAttribute(0, "getPressed", a => a.GetPressed, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "onAction", a => a.OnAction, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "description", a => a.Description, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (4096L) });
})
.AddAttribute(0, "getDescription", a => a.GetDescription, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "screentip", a => a.Screentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getScreentip", a => a.GetScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "supertip", a => a.Supertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSupertip", a => a.GetSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showLabel", a => a.ShowLabel)
.AddAttribute(0, "getShowLabel", a => a.GetShowLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showImage", a => a.ShowImage)
.AddAttribute(0, "getShowImage", a => a.GetShowImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<VisibleToggleButton>(deep);
}
/// <summary>
/// <para>Defines the Separator Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:separator.</para>
/// </summary>
public partial class Separator : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the Separator class.
/// </summary>
public Separator() : base()
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "separator");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<Separator>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
});
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<Separator>(deep);
}
/// <summary>
/// <para>Defines the DialogBoxLauncher Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:dialogBoxLauncher.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>ButtonRegular <mso14:button></description></item>
/// </list>
/// </remark>
public partial class DialogBoxLauncher : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the DialogBoxLauncher class.
/// </summary>
public DialogBoxLauncher() : base()
{
}
/// <summary>
/// Initializes a new instance of the DialogBoxLauncher class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public DialogBoxLauncher(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the DialogBoxLauncher class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public DialogBoxLauncher(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the DialogBoxLauncher class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public DialogBoxLauncher(string outerXml) : base(outerXml)
{
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "dialogBoxLauncher");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<ButtonRegular>();
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ButtonRegular), 1, 1, version: FileFormatVersions.Office2010)
};
}
/// <summary>
/// <para>ButtonRegular.</para>
/// <para>Represents the following element tag in the schema: mso14:button.</para>
/// </summary>
/// <remark>
/// xmlns:mso14 = http://schemas.microsoft.com/office/2009/07/customui
/// </remark>
public ButtonRegular ButtonRegular
{
get => GetElement<ButtonRegular>();
set => SetElement(value);
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<DialogBoxLauncher>(deep);
}
/// <summary>
/// <para>Defines the Group Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:group.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>ControlClone <mso14:control></description></item>
/// <item><description>LabelControl <mso14:labelControl></description></item>
/// <item><description>Button <mso14:button></description></item>
/// <item><description>ToggleButton <mso14:toggleButton></description></item>
/// <item><description>CheckBox <mso14:checkBox></description></item>
/// <item><description>EditBox <mso14:editBox></description></item>
/// <item><description>ComboBox <mso14:comboBox></description></item>
/// <item><description>DropDownRegular <mso14:dropDown></description></item>
/// <item><description>Gallery <mso14:gallery></description></item>
/// <item><description>Menu <mso14:menu></description></item>
/// <item><description>DynamicMenu <mso14:dynamicMenu></description></item>
/// <item><description>SplitButton <mso14:splitButton></description></item>
/// <item><description>Box <mso14:box></description></item>
/// <item><description>ButtonGroup <mso14:buttonGroup></description></item>
/// <item><description>Separator <mso14:separator></description></item>
/// <item><description>DialogBoxLauncher <mso14:dialogBoxLauncher></description></item>
/// </list>
/// </remark>
public partial class Group : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the Group class.
/// </summary>
public Group() : base()
{
}
/// <summary>
/// Initializes a new instance of the Group class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public Group(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the Group class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public Group(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the Group class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public Group(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>screentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: screentip</para>
/// </summary>
public StringValue Screentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getScreentip</para>
/// </summary>
public StringValue GetScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>supertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: supertip</para>
/// </summary>
public StringValue Supertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSupertip</para>
/// </summary>
public StringValue GetSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>autoScale, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: autoScale</para>
/// </summary>
public BooleanValue AutoScale
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>centerVertically, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: centerVertically</para>
/// </summary>
public BooleanValue CenterVertically
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "group");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<ControlClone>();
builder.AddChild<LabelControl>();
builder.AddChild<Button>();
builder.AddChild<ToggleButton>();
builder.AddChild<CheckBox>();
builder.AddChild<EditBox>();
builder.AddChild<ComboBox>();
builder.AddChild<DropDownRegular>();
builder.AddChild<Gallery>();
builder.AddChild<Menu>();
builder.AddChild<DynamicMenu>();
builder.AddChild<SplitButton>();
builder.AddChild<Box>();
builder.AddChild<ButtonGroup>();
builder.AddChild<Separator>();
builder.AddChild<DialogBoxLauncher>();
builder.AddElement<Group>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "screentip", a => a.Screentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getScreentip", a => a.GetScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "supertip", a => a.Supertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSupertip", a => a.GetSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "autoScale", a => a.AutoScale)
.AddAttribute(0, "centerVertically", a => a.CenterVertically);
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Choice, 0, 1000)
{
new CompositeParticle(ParticleType.Group, 1, 1, version: FileFormatVersions.Office2010)
{
new CompositeParticle(ParticleType.Choice, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ControlClone), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.LabelControl), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.Button), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ToggleButton), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.CheckBox), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.EditBox), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ComboBox), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.DropDownRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.Gallery), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.Menu), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.DynamicMenu), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.SplitButton), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.Box), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ButtonGroup), 1, 1, version: FileFormatVersions.Office2010)
}
},
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.Separator), 1, 1, version: FileFormatVersions.Office2010)
}
},
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.DialogBoxLauncher), 0, 1, version: FileFormatVersions.Office2010)
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<Group>(deep);
}
/// <summary>
/// <para>Defines the ControlCloneQat Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:control.</para>
/// </summary>
public partial class ControlCloneQat : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the ControlCloneQat class.
/// </summary>
public ControlCloneQat() : base()
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue IdQ
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>description, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: description</para>
/// </summary>
public StringValue Description
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getDescription, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getDescription</para>
/// </summary>
public StringValue GetDescription
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>size, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: size</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.SizeValues> Size
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.SizeValues>>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSize, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSize</para>
/// </summary>
public StringValue GetSize
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>screentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: screentip</para>
/// </summary>
public StringValue Screentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getScreentip</para>
/// </summary>
public StringValue GetScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>supertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: supertip</para>
/// </summary>
public StringValue Supertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSupertip</para>
/// </summary>
public StringValue GetSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showLabel</para>
/// </summary>
public BooleanValue ShowLabel
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowLabel</para>
/// </summary>
public StringValue GetShowLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showImage</para>
/// </summary>
public BooleanValue ShowImage
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowImage</para>
/// </summary>
public StringValue GetShowImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "control");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<ControlCloneQat>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.IdQ, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "description", a => a.Description, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (4096L) });
})
.AddAttribute(0, "getDescription", a => a.GetDescription, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "size", a => a.Size)
.AddAttribute(0, "getSize", a => a.GetSize, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "screentip", a => a.Screentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getScreentip", a => a.GetScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "supertip", a => a.Supertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSupertip", a => a.GetSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showLabel", a => a.ShowLabel)
.AddAttribute(0, "getShowLabel", a => a.GetShowLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showImage", a => a.ShowImage)
.AddAttribute(0, "getShowImage", a => a.GetShowImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
}
private static readonly ISemanticConstraint[] _semanticConstraint = new ISemanticConstraint[] {
new AttributeMutualExclusive(5, 6) /*:size, :getSize*/ { Version = FileFormatVersions.Office2010 }
};
internal override ISemanticConstraint[] SemanticConstraints => _semanticConstraint;
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<ControlCloneQat>(deep);
}
/// <summary>
/// <para>Defines the SharedControlsQatItems Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:sharedControls.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>ControlCloneQat <mso14:control></description></item>
/// <item><description>ButtonRegular <mso14:button></description></item>
/// <item><description>Separator <mso14:separator></description></item>
/// </list>
/// </remark>
public partial class SharedControlsQatItems : QatItemsType
{
/// <summary>
/// Initializes a new instance of the SharedControlsQatItems class.
/// </summary>
public SharedControlsQatItems() : base()
{
}
/// <summary>
/// Initializes a new instance of the SharedControlsQatItems class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public SharedControlsQatItems(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the SharedControlsQatItems class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public SharedControlsQatItems(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the SharedControlsQatItems class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public SharedControlsQatItems(string outerXml) : base(outerXml)
{
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "sharedControls");
builder.Availability = FileFormatVersions.Office2010;
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Choice, 0, 1000)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ControlCloneQat), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ButtonRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.Separator), 1, 1, version: FileFormatVersions.Office2010)
}
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<SharedControlsQatItems>(deep);
}
/// <summary>
/// <para>Defines the DocumentControlsQatItems Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:documentControls.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>ControlCloneQat <mso14:control></description></item>
/// <item><description>ButtonRegular <mso14:button></description></item>
/// <item><description>Separator <mso14:separator></description></item>
/// </list>
/// </remark>
public partial class DocumentControlsQatItems : QatItemsType
{
/// <summary>
/// Initializes a new instance of the DocumentControlsQatItems class.
/// </summary>
public DocumentControlsQatItems() : base()
{
}
/// <summary>
/// Initializes a new instance of the DocumentControlsQatItems class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public DocumentControlsQatItems(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the DocumentControlsQatItems class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public DocumentControlsQatItems(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the DocumentControlsQatItems class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public DocumentControlsQatItems(string outerXml) : base(outerXml)
{
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "documentControls");
builder.Availability = FileFormatVersions.Office2010;
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Choice, 0, 1000)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ControlCloneQat), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ButtonRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.Separator), 1, 1, version: FileFormatVersions.Office2010)
}
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<DocumentControlsQatItems>(deep);
}
/// <summary>
/// <para>Defines the QatItemsType Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is :.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>ControlCloneQat <mso14:control></description></item>
/// <item><description>ButtonRegular <mso14:button></description></item>
/// <item><description>Separator <mso14:separator></description></item>
/// </list>
/// </remark>
public abstract partial class QatItemsType : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the QatItemsType class.
/// </summary>
protected QatItemsType() : base()
{
}
/// <summary>
/// Initializes a new instance of the QatItemsType class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
protected QatItemsType(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the QatItemsType class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
protected QatItemsType(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the QatItemsType class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
protected QatItemsType(string outerXml) : base(outerXml)
{
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.AddChild<ControlCloneQat>();
builder.AddChild<ButtonRegular>();
builder.AddChild<Separator>();
}
}
/// <summary>
/// <para>Defines the Tab Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:tab.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>Group <mso14:group></description></item>
/// </list>
/// </remark>
public partial class Tab : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the Tab class.
/// </summary>
public Tab() : base()
{
}
/// <summary>
/// Initializes a new instance of the Tab class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public Tab(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the Tab class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public Tab(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the Tab class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public Tab(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "tab");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<Group>();
builder.AddElement<Tab>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Choice, 0, 100)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.Group), 1, 1, version: FileFormatVersions.Office2010)
}
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<Tab>(deep);
}
/// <summary>
/// <para>Defines the TabSet Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:tabSet.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>Tab <mso14:tab></description></item>
/// </list>
/// </remark>
public partial class TabSet : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the TabSet class.
/// </summary>
public TabSet() : base()
{
}
/// <summary>
/// Initializes a new instance of the TabSet class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public TabSet(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the TabSet class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public TabSet(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the TabSet class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public TabSet(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "tabSet");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<Tab>();
builder.AddElement<TabSet>()
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(RequiredValidator.Instance);
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.Tab), 0, 50, version: FileFormatVersions.Office2010)
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<TabSet>(deep);
}
/// <summary>
/// <para>Defines the Command Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:command.</para>
/// </summary>
public partial class Command : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the Command class.
/// </summary>
public Command() : base()
{
}
/// <summary>
/// <para>onAction, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: onAction</para>
/// </summary>
public StringValue OnAction
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "command");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<Command>()
.AddAttribute(0, "onAction", a => a.OnAction, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
});
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<Command>(deep);
}
/// <summary>
/// <para>Defines the QuickAccessToolbar Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:qat.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>SharedControlsQatItems <mso14:sharedControls></description></item>
/// <item><description>DocumentControlsQatItems <mso14:documentControls></description></item>
/// </list>
/// </remark>
public partial class QuickAccessToolbar : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the QuickAccessToolbar class.
/// </summary>
public QuickAccessToolbar() : base()
{
}
/// <summary>
/// Initializes a new instance of the QuickAccessToolbar class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public QuickAccessToolbar(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the QuickAccessToolbar class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public QuickAccessToolbar(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the QuickAccessToolbar class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public QuickAccessToolbar(string outerXml) : base(outerXml)
{
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "qat");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<SharedControlsQatItems>();
builder.AddChild<DocumentControlsQatItems>();
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.SharedControlsQatItems), 0, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.DocumentControlsQatItems), 0, 1, version: FileFormatVersions.Office2010)
};
}
/// <summary>
/// <para>SharedControlsQatItems.</para>
/// <para>Represents the following element tag in the schema: mso14:sharedControls.</para>
/// </summary>
/// <remark>
/// xmlns:mso14 = http://schemas.microsoft.com/office/2009/07/customui
/// </remark>
public SharedControlsQatItems SharedControlsQatItems
{
get => GetElement<SharedControlsQatItems>();
set => SetElement(value);
}
/// <summary>
/// <para>DocumentControlsQatItems.</para>
/// <para>Represents the following element tag in the schema: mso14:documentControls.</para>
/// </summary>
/// <remark>
/// xmlns:mso14 = http://schemas.microsoft.com/office/2009/07/customui
/// </remark>
public DocumentControlsQatItems DocumentControlsQatItems
{
get => GetElement<DocumentControlsQatItems>();
set => SetElement(value);
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<QuickAccessToolbar>(deep);
}
/// <summary>
/// <para>Defines the Tabs Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:tabs.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>Tab <mso14:tab></description></item>
/// </list>
/// </remark>
public partial class Tabs : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the Tabs class.
/// </summary>
public Tabs() : base()
{
}
/// <summary>
/// Initializes a new instance of the Tabs class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public Tabs(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the Tabs class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public Tabs(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the Tabs class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public Tabs(string outerXml) : base(outerXml)
{
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "tabs");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<Tab>();
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.Tab), 1, 100, version: FileFormatVersions.Office2010)
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<Tabs>(deep);
}
/// <summary>
/// <para>Defines the ContextualTabs Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:contextualTabs.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>TabSet <mso14:tabSet></description></item>
/// </list>
/// </remark>
public partial class ContextualTabs : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the ContextualTabs class.
/// </summary>
public ContextualTabs() : base()
{
}
/// <summary>
/// Initializes a new instance of the ContextualTabs class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public ContextualTabs(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the ContextualTabs class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public ContextualTabs(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the ContextualTabs class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public ContextualTabs(string outerXml) : base(outerXml)
{
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "contextualTabs");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<TabSet>();
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.TabSet), 1, 100, version: FileFormatVersions.Office2010)
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<ContextualTabs>(deep);
}
/// <summary>
/// <para>Defines the ContextMenu Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:contextMenu.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>ControlCloneRegular <mso14:control></description></item>
/// <item><description>ButtonRegular <mso14:button></description></item>
/// <item><description>CheckBox <mso14:checkBox></description></item>
/// <item><description>GalleryRegular <mso14:gallery></description></item>
/// <item><description>ToggleButtonRegular <mso14:toggleButton></description></item>
/// <item><description>SplitButtonRegular <mso14:splitButton></description></item>
/// <item><description>MenuRegular <mso14:menu></description></item>
/// <item><description>DynamicMenuRegular <mso14:dynamicMenu></description></item>
/// <item><description>MenuSeparatorNoTitle <mso14:menuSeparator></description></item>
/// </list>
/// </remark>
public partial class ContextMenu : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the ContextMenu class.
/// </summary>
public ContextMenu() : base()
{
}
/// <summary>
/// Initializes a new instance of the ContextMenu class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public ContextMenu(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the ContextMenu class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public ContextMenu(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the ContextMenu class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public ContextMenu(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "contextMenu");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<ControlCloneRegular>();
builder.AddChild<ButtonRegular>();
builder.AddChild<CheckBox>();
builder.AddChild<GalleryRegular>();
builder.AddChild<ToggleButtonRegular>();
builder.AddChild<SplitButtonRegular>();
builder.AddChild<MenuRegular>();
builder.AddChild<DynamicMenuRegular>();
builder.AddChild<MenuSeparatorNoTitle>();
builder.AddElement<ContextMenu>()
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
});
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Choice, 0, 1000)
{
new CompositeParticle(ParticleType.Group, 1, 1, version: FileFormatVersions.Office2010)
{
new CompositeParticle(ParticleType.Choice, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ControlCloneRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ButtonRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.CheckBox), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.GalleryRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ToggleButtonRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.SplitButtonRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.MenuRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.DynamicMenuRegular), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.MenuSeparatorNoTitle), 1, 1, version: FileFormatVersions.Office2010)
}
}
}
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<ContextMenu>(deep);
}
/// <summary>
/// <para>Defines the ItemBackstageItem Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:item.</para>
/// </summary>
public partial class ItemBackstageItem : BackstageItemType
{
/// <summary>
/// Initializes a new instance of the ItemBackstageItem class.
/// </summary>
public ItemBackstageItem() : base()
{
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "item");
builder.Availability = FileFormatVersions.Office2010;
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<ItemBackstageItem>(deep);
}
/// <summary>
/// <para>Defines the RadioButtonBackstageItem Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:radioButton.</para>
/// </summary>
public partial class RadioButtonBackstageItem : BackstageItemType
{
/// <summary>
/// Initializes a new instance of the RadioButtonBackstageItem class.
/// </summary>
public RadioButtonBackstageItem() : base()
{
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "radioButton");
builder.Availability = FileFormatVersions.Office2010;
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<RadioButtonBackstageItem>(deep);
}
/// <summary>
/// <para>Defines the BackstageItemType Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is :.</para>
/// </summary>
public abstract partial class BackstageItemType : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the BackstageItemType class.
/// </summary>
protected BackstageItemType() : base()
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.AddElement<BackstageItemType>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
}
}
/// <summary>
/// <para>Defines the BackstageRegularButton Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:button.</para>
/// </summary>
public partial class BackstageRegularButton : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the BackstageRegularButton class.
/// </summary>
public BackstageRegularButton() : base()
{
}
/// <summary>
/// <para>screentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: screentip</para>
/// </summary>
public StringValue Screentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getScreentip</para>
/// </summary>
public StringValue GetScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>supertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: supertip</para>
/// </summary>
public StringValue Supertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSupertip</para>
/// </summary>
public StringValue GetSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>onAction, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: onAction</para>
/// </summary>
public StringValue OnAction
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>isDefinitive, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: isDefinitive</para>
/// </summary>
public BooleanValue IsDefinitive
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "button");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<BackstageRegularButton>()
.AddAttribute(0, "screentip", a => a.Screentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getScreentip", a => a.GetScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "supertip", a => a.Supertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSupertip", a => a.GetSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "onAction", a => a.OnAction, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "isDefinitive", a => a.IsDefinitive)
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<BackstageRegularButton>(deep);
}
/// <summary>
/// <para>Defines the BackstagePrimaryMenu Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:menu.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>BackstageMenuGroup <mso14:menuGroup></description></item>
/// </list>
/// </remark>
public partial class BackstagePrimaryMenu : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the BackstagePrimaryMenu class.
/// </summary>
public BackstagePrimaryMenu() : base()
{
}
/// <summary>
/// Initializes a new instance of the BackstagePrimaryMenu class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public BackstagePrimaryMenu(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the BackstagePrimaryMenu class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public BackstagePrimaryMenu(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the BackstagePrimaryMenu class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public BackstagePrimaryMenu(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>screentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: screentip</para>
/// </summary>
public StringValue Screentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getScreentip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getScreentip</para>
/// </summary>
public StringValue GetScreentip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>supertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: supertip</para>
/// </summary>
public StringValue Supertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getSupertip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getSupertip</para>
/// </summary>
public StringValue GetSupertip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "menu");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<BackstageMenuGroup>();
builder.AddElement<BackstagePrimaryMenu>()
.AddAttribute(0, "screentip", a => a.Screentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getScreentip", a => a.GetScreentip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "supertip", a => a.Supertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getSupertip", a => a.GetSupertip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Choice, 0, 1000)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageMenuGroup), 1, 1, version: FileFormatVersions.Office2010)
}
}
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<BackstagePrimaryMenu>(deep);
}
/// <summary>
/// <para>Defines the BackstageMenuGroup Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:menuGroup.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>BackstageMenuButton <mso14:button></description></item>
/// <item><description>BackstageMenuCheckBox <mso14:checkBox></description></item>
/// <item><description>BackstageSubMenu <mso14:menu></description></item>
/// <item><description>BackstageMenuToggleButton <mso14:toggleButton></description></item>
/// </list>
/// </remark>
public partial class BackstageMenuGroup : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the BackstageMenuGroup class.
/// </summary>
public BackstageMenuGroup() : base()
{
}
/// <summary>
/// Initializes a new instance of the BackstageMenuGroup class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public BackstageMenuGroup(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the BackstageMenuGroup class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public BackstageMenuGroup(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the BackstageMenuGroup class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public BackstageMenuGroup(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>itemSize, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: itemSize</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ItemSizeValues> ItemSize
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.ItemSizeValues>>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "menuGroup");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<BackstageMenuButton>();
builder.AddChild<BackstageMenuCheckBox>();
builder.AddChild<BackstageSubMenu>();
builder.AddChild<BackstageMenuToggleButton>();
builder.AddElement<BackstageMenuGroup>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "itemSize", a => a.ItemSize);
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Choice, 0, 1000)
{
new CompositeParticle(ParticleType.Group, 1, 1, version: FileFormatVersions.Office2010)
{
new CompositeParticle(ParticleType.Choice, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageMenuButton), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageMenuCheckBox), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageSubMenu), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageMenuToggleButton), 1, 1, version: FileFormatVersions.Office2010)
}
}
}
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<BackstageMenuGroup>(deep);
}
/// <summary>
/// <para>Defines the PrimaryItem Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:primaryItem.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>BackstageRegularButton <mso14:button></description></item>
/// <item><description>BackstagePrimaryMenu <mso14:menu></description></item>
/// </list>
/// </remark>
public partial class PrimaryItem : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the PrimaryItem class.
/// </summary>
public PrimaryItem() : base()
{
}
/// <summary>
/// Initializes a new instance of the PrimaryItem class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public PrimaryItem(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the PrimaryItem class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public PrimaryItem(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the PrimaryItem class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public PrimaryItem(string outerXml) : base(outerXml)
{
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "primaryItem");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<BackstageRegularButton>();
builder.AddChild<BackstagePrimaryMenu>();
builder.Particle = new CompositeParticle(ParticleType.Choice, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageRegularButton), 0, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstagePrimaryMenu), 0, 1, version: FileFormatVersions.Office2010)
};
}
/// <summary>
/// <para>BackstageRegularButton.</para>
/// <para>Represents the following element tag in the schema: mso14:button.</para>
/// </summary>
/// <remark>
/// xmlns:mso14 = http://schemas.microsoft.com/office/2009/07/customui
/// </remark>
public BackstageRegularButton BackstageRegularButton
{
get => GetElement<BackstageRegularButton>();
set => SetElement(value);
}
/// <summary>
/// <para>BackstagePrimaryMenu.</para>
/// <para>Represents the following element tag in the schema: mso14:menu.</para>
/// </summary>
/// <remark>
/// xmlns:mso14 = http://schemas.microsoft.com/office/2009/07/customui
/// </remark>
public BackstagePrimaryMenu BackstagePrimaryMenu
{
get => GetElement<BackstagePrimaryMenu>();
set => SetElement(value);
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<PrimaryItem>(deep);
}
/// <summary>
/// <para>Defines the TopItemsGroupControls Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:topItems.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>BackstageGroupButton <mso14:button></description></item>
/// <item><description>BackstageCheckBox <mso14:checkBox></description></item>
/// <item><description>BackstageEditBox <mso14:editBox></description></item>
/// <item><description>BackstageDropDown <mso14:dropDown></description></item>
/// <item><description>RadioGroup <mso14:radioGroup></description></item>
/// <item><description>BackstageComboBox <mso14:comboBox></description></item>
/// <item><description>Hyperlink <mso14:hyperlink></description></item>
/// <item><description>BackstageLabelControl <mso14:labelControl></description></item>
/// <item><description>GroupBox <mso14:groupBox></description></item>
/// <item><description>LayoutContainer <mso14:layoutContainer></description></item>
/// <item><description>ImageControl <mso14:imageControl></description></item>
/// </list>
/// </remark>
public partial class TopItemsGroupControls : GroupControlsType
{
/// <summary>
/// Initializes a new instance of the TopItemsGroupControls class.
/// </summary>
public TopItemsGroupControls() : base()
{
}
/// <summary>
/// Initializes a new instance of the TopItemsGroupControls class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public TopItemsGroupControls(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the TopItemsGroupControls class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public TopItemsGroupControls(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the TopItemsGroupControls class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public TopItemsGroupControls(string outerXml) : base(outerXml)
{
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "topItems");
builder.Availability = FileFormatVersions.Office2010;
builder.Particle = new CompositeParticle(ParticleType.Choice, 0, 1000)
{
new CompositeParticle(ParticleType.Group, 0, 1000, version: FileFormatVersions.Office2010)
{
new CompositeParticle(ParticleType.Choice, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageGroupButton), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageCheckBox), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageEditBox), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageDropDown), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.RadioGroup), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageComboBox), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.Hyperlink), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageLabelControl), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.GroupBox), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.LayoutContainer), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ImageControl), 1, 1, version: FileFormatVersions.Office2010)
}
}
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<TopItemsGroupControls>(deep);
}
/// <summary>
/// <para>Defines the BottomItemsGroupControls Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:bottomItems.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>BackstageGroupButton <mso14:button></description></item>
/// <item><description>BackstageCheckBox <mso14:checkBox></description></item>
/// <item><description>BackstageEditBox <mso14:editBox></description></item>
/// <item><description>BackstageDropDown <mso14:dropDown></description></item>
/// <item><description>RadioGroup <mso14:radioGroup></description></item>
/// <item><description>BackstageComboBox <mso14:comboBox></description></item>
/// <item><description>Hyperlink <mso14:hyperlink></description></item>
/// <item><description>BackstageLabelControl <mso14:labelControl></description></item>
/// <item><description>GroupBox <mso14:groupBox></description></item>
/// <item><description>LayoutContainer <mso14:layoutContainer></description></item>
/// <item><description>ImageControl <mso14:imageControl></description></item>
/// </list>
/// </remark>
public partial class BottomItemsGroupControls : GroupControlsType
{
/// <summary>
/// Initializes a new instance of the BottomItemsGroupControls class.
/// </summary>
public BottomItemsGroupControls() : base()
{
}
/// <summary>
/// Initializes a new instance of the BottomItemsGroupControls class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public BottomItemsGroupControls(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the BottomItemsGroupControls class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public BottomItemsGroupControls(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the BottomItemsGroupControls class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public BottomItemsGroupControls(string outerXml) : base(outerXml)
{
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "bottomItems");
builder.Availability = FileFormatVersions.Office2010;
builder.Particle = new CompositeParticle(ParticleType.Choice, 0, 1000)
{
new CompositeParticle(ParticleType.Group, 0, 1000, version: FileFormatVersions.Office2010)
{
new CompositeParticle(ParticleType.Choice, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageGroupButton), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageCheckBox), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageEditBox), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageDropDown), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.RadioGroup), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageComboBox), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.Hyperlink), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageLabelControl), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.GroupBox), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.LayoutContainer), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ImageControl), 1, 1, version: FileFormatVersions.Office2010)
}
}
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<BottomItemsGroupControls>(deep);
}
/// <summary>
/// <para>Defines the GroupControlsType Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is :.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>BackstageGroupButton <mso14:button></description></item>
/// <item><description>BackstageCheckBox <mso14:checkBox></description></item>
/// <item><description>BackstageEditBox <mso14:editBox></description></item>
/// <item><description>BackstageDropDown <mso14:dropDown></description></item>
/// <item><description>RadioGroup <mso14:radioGroup></description></item>
/// <item><description>BackstageComboBox <mso14:comboBox></description></item>
/// <item><description>Hyperlink <mso14:hyperlink></description></item>
/// <item><description>BackstageLabelControl <mso14:labelControl></description></item>
/// <item><description>GroupBox <mso14:groupBox></description></item>
/// <item><description>LayoutContainer <mso14:layoutContainer></description></item>
/// <item><description>ImageControl <mso14:imageControl></description></item>
/// </list>
/// </remark>
public abstract partial class GroupControlsType : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the GroupControlsType class.
/// </summary>
protected GroupControlsType() : base()
{
}
/// <summary>
/// Initializes a new instance of the GroupControlsType class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
protected GroupControlsType(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the GroupControlsType class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
protected GroupControlsType(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the GroupControlsType class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
protected GroupControlsType(string outerXml) : base(outerXml)
{
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.AddChild<BackstageGroupButton>();
builder.AddChild<BackstageCheckBox>();
builder.AddChild<BackstageEditBox>();
builder.AddChild<BackstageDropDown>();
builder.AddChild<RadioGroup>();
builder.AddChild<BackstageComboBox>();
builder.AddChild<Hyperlink>();
builder.AddChild<BackstageLabelControl>();
builder.AddChild<GroupBox>();
builder.AddChild<LayoutContainer>();
builder.AddChild<ImageControl>();
}
}
/// <summary>
/// <para>Defines the TaskGroupCategory Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:category.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>TaskGroupTask <mso14:task></description></item>
/// </list>
/// </remark>
public partial class TaskGroupCategory : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the TaskGroupCategory class.
/// </summary>
public TaskGroupCategory() : base()
{
}
/// <summary>
/// Initializes a new instance of the TaskGroupCategory class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public TaskGroupCategory(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the TaskGroupCategory class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public TaskGroupCategory(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the TaskGroupCategory class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public TaskGroupCategory(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "category");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<TaskGroupTask>();
builder.AddElement<TaskGroupCategory>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.TaskGroupTask), 0, 1000, version: FileFormatVersions.Office2010)
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<TaskGroupCategory>(deep);
}
/// <summary>
/// <para>Defines the TaskGroupTask Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:task.</para>
/// </summary>
public partial class TaskGroupTask : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the TaskGroupTask class.
/// </summary>
public TaskGroupTask() : base()
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>onAction, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: onAction</para>
/// </summary>
public StringValue OnAction
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>isDefinitive, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: isDefinitive</para>
/// </summary>
public BooleanValue IsDefinitive
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>description, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: description</para>
/// </summary>
public StringValue Description
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getDescription, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getDescription</para>
/// </summary>
public StringValue GetDescription
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "task");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<TaskGroupTask>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "onAction", a => a.OnAction, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "isDefinitive", a => a.IsDefinitive)
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "description", a => a.Description, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (4096L) });
})
.AddAttribute(0, "getDescription", a => a.GetDescription, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<TaskGroupTask>(deep);
}
/// <summary>
/// <para>Defines the TaskFormGroupCategory Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:category.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>TaskFormGroupTask <mso14:task></description></item>
/// </list>
/// </remark>
public partial class TaskFormGroupCategory : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the TaskFormGroupCategory class.
/// </summary>
public TaskFormGroupCategory() : base()
{
}
/// <summary>
/// Initializes a new instance of the TaskFormGroupCategory class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public TaskFormGroupCategory(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the TaskFormGroupCategory class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public TaskFormGroupCategory(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the TaskFormGroupCategory class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public TaskFormGroupCategory(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "category");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<TaskFormGroupTask>();
builder.AddElement<TaskFormGroupCategory>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.TaskFormGroupTask), 0, 1000, version: FileFormatVersions.Office2010)
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<TaskFormGroupCategory>(deep);
}
/// <summary>
/// <para>Defines the TaskFormGroupTask Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:task.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>BackstageGroup <mso14:group></description></item>
/// </list>
/// </remark>
public partial class TaskFormGroupTask : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the TaskFormGroupTask class.
/// </summary>
public TaskFormGroupTask() : base()
{
}
/// <summary>
/// Initializes a new instance of the TaskFormGroupTask class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public TaskFormGroupTask(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the TaskFormGroupTask class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public TaskFormGroupTask(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the TaskFormGroupTask class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public TaskFormGroupTask(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>description, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: description</para>
/// </summary>
public StringValue Description
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getDescription, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getDescription</para>
/// </summary>
public StringValue GetDescription
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "task");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<BackstageGroup>();
builder.AddElement<TaskFormGroupTask>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "description", a => a.Description, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (4096L) });
})
.AddAttribute(0, "getDescription", a => a.GetDescription, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageGroup), 0, 1000, version: FileFormatVersions.Office2010)
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<TaskFormGroupTask>(deep);
}
/// <summary>
/// <para>Defines the TaskFormGroup Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:taskFormGroup.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>TaskFormGroupCategory <mso14:category></description></item>
/// </list>
/// </remark>
public partial class TaskFormGroup : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the TaskFormGroup class.
/// </summary>
public TaskFormGroup() : base()
{
}
/// <summary>
/// Initializes a new instance of the TaskFormGroup class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public TaskFormGroup(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the TaskFormGroup class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public TaskFormGroup(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the TaskFormGroup class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public TaskFormGroup(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>helperText, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: helperText</para>
/// </summary>
public StringValue HelperText
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getHelperText, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getHelperText</para>
/// </summary>
public StringValue GetHelperText
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>showLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: showLabel</para>
/// </summary>
public BooleanValue ShowLabel
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getShowLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getShowLabel</para>
/// </summary>
public StringValue GetShowLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>allowedTaskSizes, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: allowedTaskSizes</para>
/// </summary>
public EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.TaskSizesValues> AllowedTaskSizes
{
get => GetAttribute<EnumValue<DocumentFormat.OpenXml.Office2010.CustomUI.TaskSizesValues>>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "taskFormGroup");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<TaskFormGroupCategory>();
builder.AddElement<TaskFormGroup>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "helperText", a => a.HelperText, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (4096L) });
})
.AddAttribute(0, "getHelperText", a => a.GetHelperText, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "showLabel", a => a.ShowLabel)
.AddAttribute(0, "getShowLabel", a => a.GetShowLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "allowedTaskSizes", a => a.AllowedTaskSizes);
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.TaskFormGroupCategory), 0, 100, version: FileFormatVersions.Office2010)
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<TaskFormGroup>(deep);
}
/// <summary>
/// <para>Defines the BackstageGroups Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:firstColumn.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>TaskFormGroup <mso14:taskFormGroup></description></item>
/// <item><description>BackstageGroup <mso14:group></description></item>
/// <item><description>TaskGroup <mso14:taskGroup></description></item>
/// </list>
/// </remark>
public partial class BackstageGroups : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the BackstageGroups class.
/// </summary>
public BackstageGroups() : base()
{
}
/// <summary>
/// Initializes a new instance of the BackstageGroups class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public BackstageGroups(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the BackstageGroups class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public BackstageGroups(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the BackstageGroups class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public BackstageGroups(string outerXml) : base(outerXml)
{
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "firstColumn");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<TaskFormGroup>();
builder.AddChild<BackstageGroup>();
builder.AddChild<TaskGroup>();
builder.Particle = new CompositeParticle(ParticleType.Choice, 1, 1)
{
new CompositeParticle(ParticleType.Choice, 0, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.TaskFormGroup), 1, 1, version: FileFormatVersions.Office2010)
},
new CompositeParticle(ParticleType.Choice, 0, 1000)
{
new CompositeParticle(ParticleType.Group, 1, 1, version: FileFormatVersions.Office2010)
{
new CompositeParticle(ParticleType.Choice, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageGroup), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.TaskGroup), 1, 1, version: FileFormatVersions.Office2010)
}
}
}
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<BackstageGroups>(deep);
}
/// <summary>
/// <para>Defines the SimpleGroups Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:secondColumn.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>BackstageGroup <mso14:group></description></item>
/// <item><description>TaskGroup <mso14:taskGroup></description></item>
/// </list>
/// </remark>
public partial class SimpleGroups : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the SimpleGroups class.
/// </summary>
public SimpleGroups() : base()
{
}
/// <summary>
/// Initializes a new instance of the SimpleGroups class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public SimpleGroups(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the SimpleGroups class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public SimpleGroups(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the SimpleGroups class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public SimpleGroups(string outerXml) : base(outerXml)
{
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "secondColumn");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<BackstageGroup>();
builder.AddChild<TaskGroup>();
builder.Particle = new CompositeParticle(ParticleType.Choice, 0, 1000)
{
new CompositeParticle(ParticleType.Group, 1, 1, version: FileFormatVersions.Office2010)
{
new CompositeParticle(ParticleType.Choice, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageGroup), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.TaskGroup), 1, 1, version: FileFormatVersions.Office2010)
}
}
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<SimpleGroups>(deep);
}
/// <summary>
/// <para>Defines the BackstageTab Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:tab.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>BackstageGroups <mso14:firstColumn></description></item>
/// <item><description>SimpleGroups <mso14:secondColumn></description></item>
/// </list>
/// </remark>
public partial class BackstageTab : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the BackstageTab class.
/// </summary>
public BackstageTab() : base()
{
}
/// <summary>
/// Initializes a new instance of the BackstageTab class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public BackstageTab(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the BackstageTab class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public BackstageTab(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the BackstageTab class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public BackstageTab(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>title, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: title</para>
/// </summary>
public StringValue Title
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getTitle, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getTitle</para>
/// </summary>
public StringValue GetTitle
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>columnWidthPercent, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: columnWidthPercent</para>
/// </summary>
public IntegerValue ColumnWidthPercent
{
get => GetAttribute<IntegerValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>firstColumnMinWidth, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: firstColumnMinWidth</para>
/// </summary>
public IntegerValue FirstColumnMinWidth
{
get => GetAttribute<IntegerValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>firstColumnMaxWidth, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: firstColumnMaxWidth</para>
/// </summary>
public IntegerValue FirstColumnMaxWidth
{
get => GetAttribute<IntegerValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>secondColumnMinWidth, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: secondColumnMinWidth</para>
/// </summary>
public IntegerValue SecondColumnMinWidth
{
get => GetAttribute<IntegerValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>secondColumnMaxWidth, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: secondColumnMaxWidth</para>
/// </summary>
public IntegerValue SecondColumnMaxWidth
{
get => GetAttribute<IntegerValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "tab");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<BackstageGroups>();
builder.AddChild<SimpleGroups>();
builder.AddElement<BackstageTab>()
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "title", a => a.Title, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getTitle", a => a.GetTitle, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "columnWidthPercent", a => a.ColumnWidthPercent, aBuilder =>
{
aBuilder.AddValidator(new NumberValidator() { MinInclusive = (1L), MaxInclusive = (99L), IsPositive = (true) });
})
.AddAttribute(0, "firstColumnMinWidth", a => a.FirstColumnMinWidth, aBuilder =>
{
aBuilder.AddValidator(new NumberValidator() { MinInclusive = (1L), MaxInclusive = (10000L), IsPositive = (true) });
})
.AddAttribute(0, "firstColumnMaxWidth", a => a.FirstColumnMaxWidth, aBuilder =>
{
aBuilder.AddValidator(new NumberValidator() { MinInclusive = (1L), MaxInclusive = (10000L), IsPositive = (true) });
})
.AddAttribute(0, "secondColumnMinWidth", a => a.SecondColumnMinWidth, aBuilder =>
{
aBuilder.AddValidator(new NumberValidator() { MinInclusive = (1L), MaxInclusive = (10000L), IsPositive = (true) });
})
.AddAttribute(0, "secondColumnMaxWidth", a => a.SecondColumnMaxWidth, aBuilder =>
{
aBuilder.AddValidator(new NumberValidator() { MinInclusive = (1L), MaxInclusive = (10000L), IsPositive = (true) });
});
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageGroups), 0, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.SimpleGroups), 0, 1, version: FileFormatVersions.Office2010)
};
}
/// <summary>
/// <para>BackstageGroups.</para>
/// <para>Represents the following element tag in the schema: mso14:firstColumn.</para>
/// </summary>
/// <remark>
/// xmlns:mso14 = http://schemas.microsoft.com/office/2009/07/customui
/// </remark>
public BackstageGroups BackstageGroups
{
get => GetElement<BackstageGroups>();
set => SetElement(value);
}
/// <summary>
/// <para>SimpleGroups.</para>
/// <para>Represents the following element tag in the schema: mso14:secondColumn.</para>
/// </summary>
/// <remark>
/// xmlns:mso14 = http://schemas.microsoft.com/office/2009/07/customui
/// </remark>
public SimpleGroups SimpleGroups
{
get => GetElement<SimpleGroups>();
set => SetElement(value);
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<BackstageTab>(deep);
}
/// <summary>
/// <para>Defines the BackstageFastCommandButton Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:button.</para>
/// </summary>
public partial class BackstageFastCommandButton : OpenXmlLeafElement
{
/// <summary>
/// Initializes a new instance of the BackstageFastCommandButton class.
/// </summary>
public BackstageFastCommandButton() : base()
{
}
/// <summary>
/// <para>idMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idMso</para>
/// </summary>
public StringValue IdMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterMso</para>
/// </summary>
public StringValue InsertAfterMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeMso</para>
/// </summary>
public StringValue InsertBeforeMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertAfterQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertAfterQ</para>
/// </summary>
public StringValue InsertAfterQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>insertBeforeQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: insertBeforeQ</para>
/// </summary>
public StringValue InsertBeforeQulifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>id, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: id</para>
/// </summary>
public StringValue Id
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>idQ, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: idQ</para>
/// </summary>
public StringValue QualifiedId
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>tag, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: tag</para>
/// </summary>
public StringValue Tag
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>onAction, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: onAction</para>
/// </summary>
public StringValue OnAction
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>isDefinitive, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: isDefinitive</para>
/// </summary>
public BooleanValue IsDefinitive
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>enabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: enabled</para>
/// </summary>
public BooleanValue Enabled
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getEnabled, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getEnabled</para>
/// </summary>
public StringValue GetEnabled
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>label, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: label</para>
/// </summary>
public StringValue Label
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getLabel, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getLabel</para>
/// </summary>
public StringValue GetLabel
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>visible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: visible</para>
/// </summary>
public BooleanValue Visible
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getVisible, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getVisible</para>
/// </summary>
public StringValue GetVisible
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>keytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: keytip</para>
/// </summary>
public StringValue Keytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getKeytip, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getKeytip</para>
/// </summary>
public StringValue GetKeytip
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>image, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: image</para>
/// </summary>
public StringValue Image
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>imageMso, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: imageMso</para>
/// </summary>
public StringValue ImageMso
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>getImage, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: getImage</para>
/// </summary>
public StringValue GetImage
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "button");
builder.Availability = FileFormatVersions.Office2010;
builder.AddElement<BackstageFastCommandButton>()
.AddAttribute(0, "idMso", a => a.IdMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterMso", a => a.InsertAfterMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeMso", a => a.InsertBeforeMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertAfterQ", a => a.InsertAfterQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "insertBeforeQ", a => a.InsertBeforeQulifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "id", a => a.Id, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsId = (true), IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "idQ", a => a.QualifiedId, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsQName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "tag", a => a.Tag, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "onAction", a => a.OnAction, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "isDefinitive", a => a.IsDefinitive)
.AddAttribute(0, "enabled", a => a.Enabled)
.AddAttribute(0, "getEnabled", a => a.GetEnabled, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "label", a => a.Label, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getLabel", a => a.GetLabel, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "visible", a => a.Visible)
.AddAttribute(0, "getVisible", a => a.GetVisible, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "keytip", a => a.Keytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), MinLength = (1L), MaxLength = (3L) });
})
.AddAttribute(0, "getKeytip", a => a.GetKeytip, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "image", a => a.Image, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "imageMso", a => a.ImageMso, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { IsToken = (true), IsNcName = (true), MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "getImage", a => a.GetImage, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<BackstageFastCommandButton>(deep);
}
/// <summary>
/// <para>Defines the Commands Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:commands.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>Command <mso14:command></description></item>
/// </list>
/// </remark>
public partial class Commands : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the Commands class.
/// </summary>
public Commands() : base()
{
}
/// <summary>
/// Initializes a new instance of the Commands class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public Commands(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the Commands class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public Commands(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the Commands class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public Commands(string outerXml) : base(outerXml)
{
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "commands");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<Command>();
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.Command), 1, 5000, version: FileFormatVersions.Office2010)
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<Commands>(deep);
}
/// <summary>
/// <para>Defines the Ribbon Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:ribbon.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>QuickAccessToolbar <mso14:qat></description></item>
/// <item><description>Tabs <mso14:tabs></description></item>
/// <item><description>ContextualTabs <mso14:contextualTabs></description></item>
/// </list>
/// </remark>
public partial class Ribbon : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the Ribbon class.
/// </summary>
public Ribbon() : base()
{
}
/// <summary>
/// Initializes a new instance of the Ribbon class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public Ribbon(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the Ribbon class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public Ribbon(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the Ribbon class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public Ribbon(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>startFromScratch, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: startFromScratch</para>
/// </summary>
public BooleanValue StartFromScratch
{
get => GetAttribute<BooleanValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "ribbon");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<QuickAccessToolbar>();
builder.AddChild<Tabs>();
builder.AddChild<ContextualTabs>();
builder.AddElement<Ribbon>()
.AddAttribute(0, "startFromScratch", a => a.StartFromScratch);
builder.Particle = new CompositeParticle(ParticleType.All, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.QuickAccessToolbar), 0, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.Tabs), 0, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ContextualTabs), 0, 1, version: FileFormatVersions.Office2010)
};
}
/// <summary>
/// <para>QuickAccessToolbar.</para>
/// <para>Represents the following element tag in the schema: mso14:qat.</para>
/// </summary>
/// <remark>
/// xmlns:mso14 = http://schemas.microsoft.com/office/2009/07/customui
/// </remark>
public QuickAccessToolbar QuickAccessToolbar
{
get => GetElement<QuickAccessToolbar>();
set => SetElement(value);
}
/// <summary>
/// <para>Tabs.</para>
/// <para>Represents the following element tag in the schema: mso14:tabs.</para>
/// </summary>
/// <remark>
/// xmlns:mso14 = http://schemas.microsoft.com/office/2009/07/customui
/// </remark>
public Tabs Tabs
{
get => GetElement<Tabs>();
set => SetElement(value);
}
/// <summary>
/// <para>ContextualTabs.</para>
/// <para>Represents the following element tag in the schema: mso14:contextualTabs.</para>
/// </summary>
/// <remark>
/// xmlns:mso14 = http://schemas.microsoft.com/office/2009/07/customui
/// </remark>
public ContextualTabs ContextualTabs
{
get => GetElement<ContextualTabs>();
set => SetElement(value);
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<Ribbon>(deep);
}
/// <summary>
/// <para>Defines the Backstage Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:backstage.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>BackstageTab <mso14:tab></description></item>
/// <item><description>BackstageFastCommandButton <mso14:button></description></item>
/// </list>
/// </remark>
public partial class Backstage : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the Backstage class.
/// </summary>
public Backstage() : base()
{
}
/// <summary>
/// Initializes a new instance of the Backstage class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public Backstage(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the Backstage class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public Backstage(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the Backstage class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public Backstage(string outerXml) : base(outerXml)
{
}
/// <summary>
/// <para>onShow, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: onShow</para>
/// </summary>
public StringValue OnShow
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
/// <summary>
/// <para>onHide, this property is only available in Office2010, Office2013, Office2016</para>
/// <para>Represents the following attribute in the schema: onHide</para>
/// </summary>
public StringValue OnHide
{
get => GetAttribute<StringValue>();
set => SetAttribute(value);
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "backstage");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<BackstageTab>();
builder.AddChild<BackstageFastCommandButton>();
builder.AddElement<Backstage>()
.AddAttribute(0, "onShow", a => a.OnShow, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
})
.AddAttribute(0, "onHide", a => a.OnHide, aBuilder =>
{
aBuilder.AddValidator(new StringValidator() { MinLength = (1L), MaxLength = (1024L) });
});
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new CompositeParticle(ParticleType.Choice, 0, 255)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageTab), 1, 1, version: FileFormatVersions.Office2010),
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.BackstageFastCommandButton), 1, 1, version: FileFormatVersions.Office2010)
}
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<Backstage>(deep);
}
/// <summary>
/// <para>Defines the ContextMenus Class.</para>
/// <para>This class is available in Office 2010 or above.</para>
/// <para>When the object is serialized out as xml, it's qualified name is mso14:contextMenus.</para>
/// </summary>
/// <remark>
/// <para>The following table lists the possible child types:</para>
/// <list type="bullet">
/// <item><description>ContextMenu <mso14:contextMenu></description></item>
/// </list>
/// </remark>
public partial class ContextMenus : OpenXmlCompositeElement
{
/// <summary>
/// Initializes a new instance of the ContextMenus class.
/// </summary>
public ContextMenus() : base()
{
}
/// <summary>
/// Initializes a new instance of the ContextMenus class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public ContextMenus(IEnumerable<OpenXmlElement> childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the ContextMenus class with the specified child elements.
/// </summary>
/// <param name="childElements">Specifies the child elements.</param>
public ContextMenus(params OpenXmlElement[] childElements) : base(childElements)
{
}
/// <summary>
/// Initializes a new instance of the ContextMenus class from outer XML.
/// </summary>
/// <param name="outerXml">Specifies the outer XML of the element.</param>
public ContextMenus(string outerXml) : base(outerXml)
{
}
internal override void ConfigureMetadata(ElementMetadata.Builder builder)
{
base.ConfigureMetadata(builder);
builder.SetSchema(57, "contextMenus");
builder.Availability = FileFormatVersions.Office2010;
builder.AddChild<ContextMenu>();
builder.Particle = new CompositeParticle(ParticleType.Sequence, 1, 1)
{
new ElementParticle(typeof(DocumentFormat.OpenXml.Office2010.CustomUI.ContextMenu), 1, 1000, version: FileFormatVersions.Office2010)
};
}
/// <inheritdoc/>
public override OpenXmlElement CloneNode(bool deep) => CloneImp<ContextMenus>(deep);
}
/// <summary>
/// Defines the GalleryShowInRibbonValues enumeration.
/// </summary>
[OfficeAvailability(FileFormatVersions.Office2010)]
public enum GalleryShowInRibbonValues
{
///<summary>
///false.
///<para>When the item is serialized out as xml, its value is "false".</para>
///</summary>
[EnumString("false")]
False,
///<summary>
///0.
///<para>When the item is serialized out as xml, its value is "0".</para>
///</summary>
[EnumString("0")]
Zero,
}
/// <summary>
/// Defines the SizeValues enumeration.
/// </summary>
[OfficeAvailability(FileFormatVersions.Office2010)]
public enum SizeValues
{
///<summary>
///normal.
///<para>When the item is serialized out as xml, its value is "normal".</para>
///</summary>
[EnumString("normal")]
Normal,
///<summary>
///large.
///<para>When the item is serialized out as xml, its value is "large".</para>
///</summary>
[EnumString("large")]
Large,
}
/// <summary>
/// Defines the ItemSizeValues enumeration.
/// </summary>
[OfficeAvailability(FileFormatVersions.Office2010)]
public enum ItemSizeValues
{
///<summary>
///normal.
///<para>When the item is serialized out as xml, its value is "normal".</para>
///</summary>
[EnumString("normal")]
Normal,
///<summary>
///large.
///<para>When the item is serialized out as xml, its value is "large".</para>
///</summary>
[EnumString("large")]
Large,
}
/// <summary>
/// Defines the BoxStyleValues enumeration.
/// </summary>
[OfficeAvailability(FileFormatVersions.Office2010)]
public enum BoxStyleValues
{
///<summary>
///horizontal.
///<para>When the item is serialized out as xml, its value is "horizontal".</para>
///</summary>
[EnumString("horizontal")]
Horizontal,
///<summary>
///vertical.
///<para>When the item is serialized out as xml, its value is "vertical".</para>
///</summary>
[EnumString("vertical")]
Vertical,
}
/// <summary>
/// Defines the TaskSizesValues enumeration.
/// </summary>
[OfficeAvailability(FileFormatVersions.Office2010)]
public enum TaskSizesValues
{
///<summary>
///largeMediumSmall.
///<para>When the item is serialized out as xml, its value is "largeMediumSmall".</para>
///</summary>
[EnumString("largeMediumSmall")]
LargeMediumSmall,
///<summary>
///largeMedium.
///<para>When the item is serialized out as xml, its value is "largeMedium".</para>
///</summary>
[EnumString("largeMedium")]
LargeMedium,
///<summary>
///large.
///<para>When the item is serialized out as xml, its value is "large".</para>
///</summary>
[EnumString("large")]
Large,
///<summary>
///mediumSmall.
///<para>When the item is serialized out as xml, its value is "mediumSmall".</para>
///</summary>
[EnumString("mediumSmall")]
MediumSmall,
///<summary>
///medium.
///<para>When the item is serialized out as xml, its value is "medium".</para>
///</summary>
[EnumString("medium")]
Medium,
///<summary>
///small.
///<para>When the item is serialized out as xml, its value is "small".</para>
///</summary>
[EnumString("small")]
Small,
}
/// <summary>
/// Defines the ExpandValues enumeration.
/// </summary>
[OfficeAvailability(FileFormatVersions.Office2010)]
public enum ExpandValues
{
///<summary>
///topLeft.
///<para>When the item is serialized out as xml, its value is "topLeft".</para>
///</summary>
[EnumString("topLeft")]
TopLeft,
///<summary>
///top.
///<para>When the item is serialized out as xml, its value is "top".</para>
///</summary>
[EnumString("top")]
Top,
///<summary>
///topRight.
///<para>When the item is serialized out as xml, its value is "topRight".</para>
///</summary>
[EnumString("topRight")]
TopRight,
///<summary>
///left.
///<para>When the item is serialized out as xml, its value is "left".</para>
///</summary>
[EnumString("left")]
Left,
///<summary>
///center.
///<para>When the item is serialized out as xml, its value is "center".</para>
///</summary>
[EnumString("center")]
Center,
///<summary>
///right.
///<para>When the item is serialized out as xml, its value is "right".</para>
///</summary>
[EnumString("right")]
Right,
///<summary>
///bottomLeft.
///<para>When the item is serialized out as xml, its value is "bottomLeft".</para>
///</summary>
[EnumString("bottomLeft")]
BottomLeft,
///<summary>
///bottom.
///<para>When the item is serialized out as xml, its value is "bottom".</para>
///</summary>
[EnumString("bottom")]
Bottom,
///<summary>
///bottomRight.
///<para>When the item is serialized out as xml, its value is "bottomRight".</para>
///</summary>
[EnumString("bottomRight")]
BottomRight,
}
/// <summary>
/// Defines the StyleValues enumeration.
/// </summary>
[OfficeAvailability(FileFormatVersions.Office2010)]
public enum StyleValues
{
///<summary>
///normal.
///<para>When the item is serialized out as xml, its value is "normal".</para>
///</summary>
[EnumString("normal")]
Normal,
///<summary>
///warning.
///<para>When the item is serialized out as xml, its value is "warning".</para>
///</summary>
[EnumString("warning")]
Warning,
///<summary>
///error.
///<para>When the item is serialized out as xml, its value is "error".</para>
///</summary>
[EnumString("error")]
Error,
}
/// <summary>
/// Defines the Style2Values enumeration.
/// </summary>
[OfficeAvailability(FileFormatVersions.Office2010)]
public enum Style2Values
{
///<summary>
///normal.
///<para>When the item is serialized out as xml, its value is "normal".</para>
///</summary>
[EnumString("normal")]
Normal,
///<summary>
///borderless.
///<para>When the item is serialized out as xml, its value is "borderless".</para>
///</summary>
[EnumString("borderless")]
Borderless,
///<summary>
///large.
///<para>When the item is serialized out as xml, its value is "large".</para>
///</summary>
[EnumString("large")]
Large,
}
/// <summary>
/// Defines the LayoutChildrenValues enumeration.
/// </summary>
[OfficeAvailability(FileFormatVersions.Office2010)]
public enum LayoutChildrenValues
{
///<summary>
///horizontal.
///<para>When the item is serialized out as xml, its value is "horizontal".</para>
///</summary>
[EnumString("horizontal")]
Horizontal,
///<summary>
///vertical.
///<para>When the item is serialized out as xml, its value is "vertical".</para>
///</summary>
[EnumString("vertical")]
Vertical,
}
} | 40.338954 | 174 | 0.609792 | [
"MIT"
] | HotspurHN/Open-XML-SDK | src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_2009_07_customui.g.cs | 904,361 | C# |
using Gooios.Infrastructure;
using Gooios.PartnerGateway.Proxies;
using Gooios.PartnerGatewayService.Applications.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Gooios.PartnerGateway.Applications.Services
{
public interface IWeChatAppService : IApplicationServiceContract
{
Task WeChatPaymentNotify(WeChatPaymentNotifyMessageDTO model);
}
public class WeChatAppService : ApplicationServiceContract, IWeChatAppService
{
readonly IPaymentServiceProxy _paymentServiceProxy;
public WeChatAppService(IPaymentServiceProxy paymentServiceProxy)
{
_paymentServiceProxy = paymentServiceProxy;
}
public async Task WeChatPaymentNotify(WeChatPaymentNotifyMessageDTO model)
{
await _paymentServiceProxy.WeChatPaymentNotify(model);
}
}
}
| 30.133333 | 82 | 0.756637 | [
"Apache-2.0"
] | hccoo/gooios | netcoremicroservices/Gooios.PartnerGateway/Applications/Services/IWeChatAppService.cs | 906 | C# |
// <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace Gov.Jag.PillPressRegistry.Interfaces
{
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
/// <summary>
/// Extension methods for Applicationtypes.
/// </summary>
public static partial class ApplicationtypesExtensions
{
/// <summary>
/// Get entities from bcgov_applicationtypes
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='top'>
/// </param>
/// <param name='skip'>
/// </param>
/// <param name='search'>
/// </param>
/// <param name='filter'>
/// </param>
/// <param name='count'>
/// </param>
/// <param name='orderby'>
/// Order items by property values
/// </param>
/// <param name='select'>
/// Select properties to be returned
/// </param>
/// <param name='expand'>
/// Expand related entities
/// </param>
public static ApplicationtypesGetResponseModel Get(this IApplicationtypes operations, int? top = default(int?), int? skip = default(int?), string search = default(string), string filter = default(string), bool? count = default(bool?), IList<string> orderby = default(IList<string>), IList<string> select = default(IList<string>), IList<string> expand = default(IList<string>))
{
return operations.GetAsync(top, skip, search, filter, count, orderby, select, expand).GetAwaiter().GetResult();
}
/// <summary>
/// Get entities from bcgov_applicationtypes
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='top'>
/// </param>
/// <param name='skip'>
/// </param>
/// <param name='search'>
/// </param>
/// <param name='filter'>
/// </param>
/// <param name='count'>
/// </param>
/// <param name='orderby'>
/// Order items by property values
/// </param>
/// <param name='select'>
/// Select properties to be returned
/// </param>
/// <param name='expand'>
/// Expand related entities
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<ApplicationtypesGetResponseModel> GetAsync(this IApplicationtypes operations, int? top = default(int?), int? skip = default(int?), string search = default(string), string filter = default(string), bool? count = default(bool?), IList<string> orderby = default(IList<string>), IList<string> select = default(IList<string>), IList<string> expand = default(IList<string>), CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.GetWithHttpMessagesAsync(top, skip, search, filter, count, orderby, select, expand, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Add new entity to bcgov_applicationtypes
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='body'>
/// New entity
/// </param>
/// <param name='prefer'>
/// Required in order for the service to return a JSON representation of the
/// object.
/// </param>
public static MicrosoftDynamicsCRMbcgovApplicationtype Create(this IApplicationtypes operations, MicrosoftDynamicsCRMbcgovApplicationtype body, string prefer = "return=representation")
{
return operations.CreateAsync(body, prefer).GetAwaiter().GetResult();
}
/// <summary>
/// Add new entity to bcgov_applicationtypes
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='body'>
/// New entity
/// </param>
/// <param name='prefer'>
/// Required in order for the service to return a JSON representation of the
/// object.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<MicrosoftDynamicsCRMbcgovApplicationtype> CreateAsync(this IApplicationtypes operations, MicrosoftDynamicsCRMbcgovApplicationtype body, string prefer = "return=representation", CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.CreateWithHttpMessagesAsync(body, prefer, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get entity from bcgov_applicationtypes by key
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='bcgovApplicationtypeid'>
/// key: bcgov_applicationtypeid
/// </param>
/// <param name='select'>
/// Select properties to be returned
/// </param>
/// <param name='expand'>
/// Expand related entities
/// </param>
public static MicrosoftDynamicsCRMbcgovApplicationtype GetByKey(this IApplicationtypes operations, string bcgovApplicationtypeid, IList<string> select = default(IList<string>), IList<string> expand = default(IList<string>))
{
return operations.GetByKeyAsync(bcgovApplicationtypeid, select, expand).GetAwaiter().GetResult();
}
/// <summary>
/// Get entity from bcgov_applicationtypes by key
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='bcgovApplicationtypeid'>
/// key: bcgov_applicationtypeid
/// </param>
/// <param name='select'>
/// Select properties to be returned
/// </param>
/// <param name='expand'>
/// Expand related entities
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<MicrosoftDynamicsCRMbcgovApplicationtype> GetByKeyAsync(this IApplicationtypes operations, string bcgovApplicationtypeid, IList<string> select = default(IList<string>), IList<string> expand = default(IList<string>), CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.GetByKeyWithHttpMessagesAsync(bcgovApplicationtypeid, select, expand, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Delete entity from bcgov_applicationtypes
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='bcgovApplicationtypeid'>
/// key: bcgov_applicationtypeid
/// </param>
/// <param name='ifMatch'>
/// ETag
/// </param>
public static void Delete(this IApplicationtypes operations, string bcgovApplicationtypeid, string ifMatch = default(string))
{
operations.DeleteAsync(bcgovApplicationtypeid, ifMatch).GetAwaiter().GetResult();
}
/// <summary>
/// Delete entity from bcgov_applicationtypes
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='bcgovApplicationtypeid'>
/// key: bcgov_applicationtypeid
/// </param>
/// <param name='ifMatch'>
/// ETag
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task DeleteAsync(this IApplicationtypes operations, string bcgovApplicationtypeid, string ifMatch = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
(await operations.DeleteWithHttpMessagesAsync(bcgovApplicationtypeid, ifMatch, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
/// <summary>
/// Update entity in bcgov_applicationtypes
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='bcgovApplicationtypeid'>
/// key: bcgov_applicationtypeid
/// </param>
/// <param name='body'>
/// New property values
/// </param>
public static void Update(this IApplicationtypes operations, string bcgovApplicationtypeid, MicrosoftDynamicsCRMbcgovApplicationtype body)
{
operations.UpdateAsync(bcgovApplicationtypeid, body).GetAwaiter().GetResult();
}
/// <summary>
/// Update entity in bcgov_applicationtypes
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='bcgovApplicationtypeid'>
/// key: bcgov_applicationtypeid
/// </param>
/// <param name='body'>
/// New property values
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task UpdateAsync(this IApplicationtypes operations, string bcgovApplicationtypeid, MicrosoftDynamicsCRMbcgovApplicationtype body, CancellationToken cancellationToken = default(CancellationToken))
{
(await operations.UpdateWithHttpMessagesAsync(bcgovApplicationtypeid, body, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
}
}
| 45.384 | 471 | 0.552618 | [
"Apache-2.0"
] | WadeBarnes/jag-pill-press-registry | pill-press-interfaces/Dynamics-Autorest/ApplicationtypesExtensions.cs | 11,346 | C# |
using EventStore.Core.Tests.TransactionLog.Scavenging.Helpers;
using EventStore.Core.TransactionLog.LogRecords;
using NUnit.Framework;
namespace EventStore.Core.Tests.Services.Storage.AllReader {
[TestFixture]
public class
when_multiple_single_writes_are_after_transaction_end_but_before_commit_is_present : RepeatableDbTestScenario {
[Test]
public void should_be_able_to_read_the_transactional_writes_when_the_commit_is_present() {
/*
* create a db with a transaction where the commit is not present yet (read happened before the chaser could commit)
* in the following case the read will return the event for the single non-transactional write
* performing a read from the next position returned will fail as the prepares are all less than what we have asked for.
*/
CreateDb(Rec.TransSt(0, "transaction_stream_id"),
Rec.Prepare(0, "transaction_stream_id"),
Rec.TransEnd(0, "transaction_stream_id"),
Rec.Prepare(1, "single_write_stream_id_1", prepareFlags: PrepareFlags.Data | PrepareFlags.IsCommitted),
Rec.Prepare(2, "single_write_stream_id_2", prepareFlags: PrepareFlags.Data | PrepareFlags.IsCommitted),
Rec.Prepare(3, "single_write_stream_id_3", prepareFlags: PrepareFlags.Data | PrepareFlags.IsCommitted));
var firstRead = ReadIndex.ReadAllEventsForward(new Data.TFPos(0, 0), 10);
Assert.AreEqual(3, firstRead.Records.Count);
Assert.AreEqual("single_write_stream_id_1", firstRead.Records[0].Event.EventStreamId);
Assert.AreEqual("single_write_stream_id_2", firstRead.Records[1].Event.EventStreamId);
Assert.AreEqual("single_write_stream_id_3", firstRead.Records[2].Event.EventStreamId);
//create the exact same db as above but now with the transaction's commit
CreateDb(Rec.TransSt(0, "transaction_stream_id"),
Rec.Prepare(0, "transaction_stream_id"),
Rec.TransEnd(0, "transaction_stream_id"),
Rec.Prepare(1, "single_write_stream_id_1", prepareFlags: PrepareFlags.Data | PrepareFlags.IsCommitted),
Rec.Prepare(2, "single_write_stream_id_2", prepareFlags: PrepareFlags.Data | PrepareFlags.IsCommitted),
Rec.Prepare(3, "single_write_stream_id_3", prepareFlags: PrepareFlags.Data | PrepareFlags.IsCommitted),
Rec.Commit(0, "transaction_stream_id"));
var transactionRead = ReadIndex.ReadAllEventsForward(firstRead.NextPos, 10);
Assert.AreEqual(1, transactionRead.Records.Count);
Assert.AreEqual("transaction_stream_id", transactionRead.Records[0].Event.EventStreamId);
}
}
}
| 54.195652 | 123 | 0.785399 | [
"Apache-2.0",
"CC0-1.0"
] | 01100010011001010110010101110000/EventStore | src/EventStore.Core.Tests/Services/Storage/AllReader/when_multiple_single_writes_are_after_transaction_end_but_before_commit_is_present.cs | 2,495 | C# |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Addressee")]
[assembly: AssemblyDescription("An address validation framework")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Ultima Labs Pty Ltd")]
[assembly: AssemblyProduct("Addressee")]
[assembly: AssemblyCopyright("Original idea by Ultima Labs Pty Ltd contributors, 2017. Provided under MIT License.")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("eb7d752a-c973-426a-95c2-cc87f8c804d9")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
[assembly: AssemblyVersion("0.1.0.0")]
[assembly: AssemblyFileVersion("0.1.0.0")]
[assembly: InternalsVisibleTo("Addressee.UnitTests")] | 40.057143 | 117 | 0.760342 | [
"MIT"
] | ultima-labs/addressee | Addressee/Properties/AssemblyInfo.cs | 1,404 | C# |
/*
Create a class Person with two fields – name and age. Age can be left unspecified (may contain null value. Override ToString() to display the information of a person and if age is not specified – to say so.
Write a program to test this functionality.
*/
namespace Problem_4.Person_class
{
using System;
public class StartProgram
{
public static void Main()
{
Person ivan = new Person();
ivan.Name = "Ivan";
ivan.Age = 50;
Console.WriteLine("Printing ivan (ivan has setted age) ->");
Console.WriteLine(ivan);
Person pesho = new Person();
pesho.Name = "Pesho";
Console.WriteLine("Printing pesho (pesho hasnt setted age) ->");
Console.WriteLine(pesho);
}
}
}
| 33.791667 | 207 | 0.600493 | [
"MIT"
] | fr0wsTyl/TelerikAcademy-2015 | Telerik - C# OOP/Old Homeworks/06. Common Type System/Problem 4. Person class/StartProgram.cs | 817 | C# |
using Microsoft.Extensions.Logging;
using Ordering.Domain.Entities;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Ordering.Infrastructure.Persistance
{
public class OrderContextSeed
{
public static async Task SeedAsync(OrderContext orderContext, ILogger<OrderContextSeed> logger)
{
if (!orderContext.Orders.Any())
{
orderContext.Orders.AddRange(GetProconfiguredOrders());
await orderContext.SaveChangesAsync();
logger.LogInformation("Seed database associated with context {DbContextName}", typeof(OrderContext).Name);
}
}
private static IEnumerable<Order> GetProconfiguredOrders()
{
return new List<Order>
{
new Order() {UserName = "swn", FirstName = "Mehmet", LastName = "Ozkaya", EmailAddress = "ezozkme@gmail.com", AddressLine = "Bahcelievler", Country = "Turkey", TotalPrice = 350 }
};
}
}
}
| 34.733333 | 194 | 0.637236 | [
"MIT"
] | onter7/AspNetMicroservices | src/Services/Ordering/Ordering.Infrastructure/Persistance/OrderContextSeed.cs | 1,044 | C# |
using System.IO;
using TableauAPI.RESTHelpers;
namespace TableauAPI.RESTRequests
{
/// <summary>
/// Download a Tableau View and associated artifacts such as Preview Images.
/// </summary>
public class DownloadView : TableauServerSignedInRequestBase
{
private readonly TableauServerUrls _onlineUrls;
/// <summary>
/// Create a View request for the Tableau REST API
/// </summary>
/// <param name="onlineUrls">Tableau Server Information</param>
/// <param name="logInInfo">Tableau Sign In Information</param>
public DownloadView(TableauServerUrls onlineUrls, TableauServerSignIn logInInfo) : base(logInInfo)
{
_onlineUrls = onlineUrls;
}
/// <summary>
/// Return a Preview Image for a View
/// </summary>
/// <param name="workbookId"></param>
/// <param name="viewId"></param>
/// <returns></returns>
public byte[] GetPreviewImage(string workbookId, string viewId)
{
var url = _onlineUrls.Url_ViewThumbnail(workbookId, viewId, OnlineSession);
var webRequest = CreateLoggedInWebRequest(url);
webRequest.Method = "GET";
var response = GetWebResponseLogErrors(webRequest, "get view thumbnail");
byte[] thumbnail;
using (var stream = response.GetResponseStream())
{
using (var ms = new MemoryStream())
{
stream.CopyTo(ms);
thumbnail = ms.ToArray();
}
}
return thumbnail;
}
/// <summary>
/// Return data for a View (CSV format)
/// </summary>
/// <param name="viewId"></param>
/// <returns></returns>
public string GetData(string viewId)
{
var url = _onlineUrls.Url_ViewData(viewId, OnlineSession);
var webRequest = CreateLoggedInWebRequest(url);
webRequest.Method = "GET";
var response = GetWebResponseLogErrors(webRequest, "get view data");
byte[] data;
using (var stream = response.GetResponseStream())
{
using (var ms = new MemoryStream())
{
stream.CopyTo(ms);
data = ms.ToArray();
}
}
return System.Text.Encoding.UTF8.GetString(data);
}
}
}
| 34.013699 | 106 | 0.548933 | [
"MIT"
] | lmzyk/TableauAPI | TableauAPI/RESTRequests/DownloadView.cs | 2,485 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.