Previous Document Next Document
Page.Background

Property Background As cdrPageBackground

Member of Page

The Background property returns or sets 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 no background at all.

The following code 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 2007 Corel Corporation. All rights reserved.