PageContentCollection.Add(PageContent) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a new page to the page collection.
public:
int Add(System::Windows::Documents::PageContent ^ newPageContent);
public int Add (System.Windows.Documents.PageContent newPageContent);
member this.Add : System.Windows.Documents.PageContent -> int
Public Function Add (newPageContent As PageContent) As Integer
Parameters
- newPageContent
- PageContent
The new page to add to the collection.
Returns
The zero-based index within the collection where the page was added.
Exceptions
newPageContent
was passed as null
.
The page passed as newPageContent
already existed in the collection.
Applies to
Bekerjasama dengan kami di GitHub
Sumber untuk kandungan ini boleh didapati di GitHub, di mana anda juga boleh mencipta dan menyemak isu dan menarik permintaan. Untuk maklumat lanjut, lihat panduan penyumbang kami.