返回或设置指定的自定义邮件标签的页面大小。WdCustomLabelPageSize,可读写。
| WdCustomLabelPageSize 可以是下列 WdCustomLabelPageSize 常量之一: |
| wdCustomLabelA4 |
| wdCustomLabelA4LS |
| wdCustomLabelA5 |
| wdCustomLabelA5LS |
| wdCustomLabelB4JIS |
| wdCustomLabelB5 |
| wdCustomLabelFanfold |
| wdCustomLabelHigaki |
| wdCustomLabelHigakiLS |
| wdCustomLabelLetter |
| wdCustomLabelLetterLS |
| wdCustomLabelMini |
| wdCustomLabelVertHalfSheet |
| wdCustomLabelVertHalfSheetLS |
expression.PageSize
expression 必需。该表达式返回一个 CustomLabel 对象。
由于您选择或安装的语言支持不同,例如,英语(美国),上述部分常量可能无法使用。
本示例创建名为“Home Address”的新自定义标签,然后设置包括页面大小属性在内的多个属性。
Set myLabel = Application.MailingLabel _
.CustomLabels.Add(Name:="Home Address", DotMatrix:=False)
With myLabel
.Height = InchesToPoints(0.5)
.HorizontalPitch = InchesToPoints(2.06)
.NumberAcross = 4
.NumberDown = 20
.PageSize = wdCustomLabelLetter
.SideMargin = InchesToPoints(0.28)
.TopMargin = InchesToPoints(0.5)
.VerticalPitch = InchesToPoints(0.5)
.Width = InchesToPoints(1.75)
End With