CopyTo Method

ResourceDictionary.CopyTo Method

Copies the ResourceDictionary elements to a one-dimensional DictionaryEntry at the specified index.

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

public void CopyTo (
	DictionaryEntry[] array,
	int arrayIndex
)
public void CopyTo (
	DictionaryEntry[] array, 
	int arrayIndex
)
public function CopyTo (
	array : DictionaryEntry[], 
	arrayIndex : int
)
You cannot use methods in XAML.

Parameters

array

The one-dimensional array that is the destination of the DictionaryEntry objects copied from the ResourceDictionary instance. The array must have zero-based indexing.

arrayIndex

The zero-based index of array where copying begins.

This copies only the base dictionary. The result array will have no MergedDictionaries if it is reconstituted to be a ResourceDictionary again.

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

ADD
Show:
© 2016 Microsoft