12345678910111213141516171819202122232425262728293031323334 |
- // Copyright (c) Microsoft. All rights reserved.
- // Licensed under the MIT license. See LICENSE file in the project root for full license information.
- using System;
- using System.Security.Cryptography;
- using System.Text;
- namespace OpenXmlPowerTools
- {
- internal static class WmlComparerUtil
- {
-
- public static ComparisonUnitGroupType ComparisonUnitGroupTypeFromLocalName(string localName)
- {
- switch (localName)
- {
- case "p":
- return ComparisonUnitGroupType.Paragraph;
- case "tbl":
- return ComparisonUnitGroupType.Table;
- case "tr":
- return ComparisonUnitGroupType.Row;
- case "tc":
- return ComparisonUnitGroupType.Cell;
- case "txbxContent":
- return ComparisonUnitGroupType.Textbox;
- default:
- throw new ArgumentOutOfRangeException(nameof(localName),
- $@"Unsupported localName: '{localName}'.");
- }
- }
- }
- }
|