Skip to content

Commit 1e2a456

Browse files
authored
add extension to CoreFilePropertiesPart to access package properties (dotnet#1895)
This allows CoreFilePropertiesPart to access package properties via the parent package properties per discussion in dotnet#389 .
1 parent a7e4a4f commit 1e2a456

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Copyright (c) Microsoft. All rights reserved.
2+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
3+
4+
namespace DocumentFormat.OpenXml.Packaging
5+
{
6+
/// <summary>
7+
/// Defines the CoreFilePropertiesPart
8+
/// </summary>
9+
public partial class CoreFilePropertiesPart : OpenXmlPart,
10+
IFixedContentTypePart
11+
{
12+
/// <summary>
13+
/// Gets the package (core.xml) properties.
14+
/// </summary>
15+
public IPackageProperties CoreFileProperties => OpenXmlPackage.PackageProperties;
16+
}
17+
}

0 commit comments

Comments
 (0)