全部显示

PageSize 属性

       

返回或设置指定的自定义邮件标签的页面大小。WdCustomLabelPageSize,可读写。

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