Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

ruby
communitycreator

How to use ReplaceChild<T>(OpenXmlElement, T) in Ruby

Saad Akbar

What is Ruby?

It is a pure object-oriented language. One of its key features is its relative simplicity compared to other languages. It is easy to read and write.

Features of Ruby

  • It can be linked with HTML.
  • Its simplicity makes it easier for a new developer to learn the language.
  • It is used for developing internet and intranet applications.
  • It has a significant number of built-in functions, which increases the language’s functionality.
  • It has a similar syntax to C++ and many other programming languages.
  • It is connectable to MySQL, Oracle, and DB2.
  • It is a server-side language identical to Perl and Python.

ReplaceChild<T>(OpenXmlElement, T)

The function replaces one of the current element’s child elements with another OpenXmlElement element.

Syntax

public override T ReplaceChild<T> (DocumentFormat.OpenXml.OpenXmlElement newChild, T oldChild) where T : DocumentFormat.OpenXml.OpenXmlElement;

Parameters

  • newChild OpenXmlElement - The new OpenXmlElement to be added to the child list.

  • oldChild T - The OpenXmlElement being changed in the list.

RELATED TAGS

ruby
communitycreator
RELATED COURSES

View all Courses

Keep Exploring