PageContentCollection.Add Method (PageContent)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Adds a new page to the page collection.

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

public int Add(
	PageContent newPageContent
)

Parameters

newPageContent
Type: System.Windows.Documents.PageContent

The new page to add to the collection.

Return Value

Type: System.Int32

The zero-based index within the collection where the page was added.

Exception Condition
ArgumentNullException

newPageContent was passed as null.

InvalidOperationException

The page passed as newPageContent already existed in the collection.

.NET Framework
Available since 3.0
Return to top
Show: