OpenXmlPartContainer.GetPartById Method

Gets the child part through the relationship ID.

Namespace:  DocumentFormat.OpenXml.Packaging
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public OpenXmlPart GetPartById(
	string id
)

Parameters

id
Type: System.String
The relationship ID of the part.

ExceptionCondition
ArgumentOutOfRangeException

Thrown when the part with the specified id does not exist.

Community Additions

ADD
Show:
© 2015 Microsoft