Share via


OpenXmlPartContainer.TryGetPartById(String, OpenXmlPart) Method

Definition

Try to get the child part by the relationship ID.

public bool TryGetPartById (string id, out DocumentFormat.OpenXml.Packaging.OpenXmlPart part);
member this.TryGetPartById : string * OpenXmlPart -> bool
Public Function TryGetPartById (id As String, ByRef part As OpenXmlPart) As Boolean

Parameters

id
String

The relationship ID of the part.

part
OpenXmlPart

The part.

Returns

Return true when the part with the specified id exist, otherwise false

Applies to