MarginTop Property
Description
Top margin of the printed calendar.
Property Type
Read-write property
Syntax (Visual Basic)
Public Property MarginTop() As Long
Remarks
Gets/sets the distance between the top of the page and the top of the calendar (or header if it is displayed) printed on the page.
The MarginsMeasureMetrics property indicates whether the margins are calculated using millimeters or inches. Measurement units are millimeters * 100 or inches * 1000.
Example
With CalendarControl.PrintOptions
' Measurement units are mm * 100 or inches * 1000.
.MarginBottom = IIf(.MarginsMeasureMetrics, 1.5 * 100, 1.5 * 1000)
.MarginLeft = IIf(.MarginsMeasureMetrics, 1.5 * 100, 1.5 * 1000)
.MarginRight = IIf(.MarginsMeasureMetrics, 1.5 * 100, 1.5 * 1000)
.MarginTop = IIf(.MarginsMeasureMetrics, 1.5 * 100, 1.5 * 1000)
End With
See Also
- CalendarPrintOptions Object
- MarginsMeasureMetrics Property
- MarginBottom Property
- MarginLeft Property
- MarginRight Property
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.