AddRange Method (CodeCommentStatementCollection)

CodeCommentStatementCollection.AddRange Method (CodeCommentStatementCollection)


Copies the contents of another CodeCommentStatementCollection object to the end of the collection.

Namespace:   System.CodeDom
Assembly:  System (in System.dll)

public void AddRange(
	CodeCommentStatementCollection value


Type: System.CodeDom.CodeCommentStatementCollection

A CodeCommentStatementCollection that contains the objects to add to the collection.

Exception Condition

value is null.

The following example demonstrates how to use the AddRange(CodeCommentStatementCollection) method overload to add the members of one CodeCommentStatementCollection to another.

// This action displays smart tag details.
private void Action2_Click(object sender,
    Microsoft.Office.Tools.Excel.ActionEventArgs e)
    MessageBox.Show("The current smart tag caption is '" +
        smartTagDemo.Caption + "'. The current smart tag type is '" +
        smartTagDemo.SmartTagType + "'.");

.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft