Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

OpenXmlElement.ReplaceChild<T> method

Replaces a child element with another child element in the current element's list of child elements.

Namespace:  DocumentFormat.OpenXml
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
public virtual T ReplaceChild<T>(
	OpenXmlElement newChild,
	T oldChild
where T : OpenXmlElement

Type parameters



Type: DocumentFormat.OpenXml.OpenXmlElement

The new OpenXmlElement to put in the child list.

Type: T

The OpenXmlElement being replaced in the list.

Return value

Type: T
The OpenXmlElement element that was replaced.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.