TextElementCollection.AddRange Method

Appends a specified range of items to the collection.

Namespace: System.Windows.Documents
Assembly: PresentationFramework (in presentationframework.dll)

public void AddRange (
	IEnumerable range
public void AddRange (
	IEnumerable range
public function AddRange (
	range : IEnumerable
You cannot use methods in XAML.



An object that implements the IEnumerable interface, and that specifies a range of items to add to the collection.

Exception typeCondition


Raised when range includes any null items.


Raised when range is null.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions