Object Model Reference : Classes : P : Page : Properties : Page.Background |
Property Background As cdrPageBackground
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.
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 |
Copyright 2013 Corel Corporation. All rights reserved.