Previous Document Next Document

Object Model Reference : Classes : P : Page : Properties : Page.Background


Page.Background

Property Background As cdrPageBackground

Description

Member of Page

The Background property returns or specifies the type of background for a page.

The Background property returns a value of cdrPageBackground. A background can contain a bitmap image, a solid fill, or nothing at all.

VBA example

The following VBA example displays the type of background for the specified page.

Sub Test()
 Select Case ActiveDocument.Pages(0).Background
  Case cdrPageBackgroundNone
   MsgBox "No page background"
  Case cdrPageBackgroundSolid
   MsgBox "Solid color background"
  Case cdrPageBackgroundBitmap
   MsgBox "Bitmap page background"
 End Select
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.