OpenXmlPartContainer.TryGetPartById(String, OpenXmlPart) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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