Share via


CustomLabels.Add Method

Adds a custom mailing label to the CustomLabels collection.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Function Add ( _
    Name As String, _
    ByRef DotMatrix As Object _
) As CustomLabel
'Usage
Dim instance As CustomLabels
Dim Name As String
Dim DotMatrix As Object
Dim returnValue As CustomLabel

returnValue = instance.Add(Name, DotMatrix)
CustomLabel Add(
    string Name,
    ref Object DotMatrix
)

Parameters

  • Name
    Type: System.String
    Required String. The name for the custom mailing labels.
  • DotMatrix
    Type: System.Object%
    Optional Object. True to have the mailing labels printed on a dot-matrix printer.

Return Value

Type: Microsoft.Office.Interop.Word.CustomLabel

See Also

Reference

CustomLabels Interface

CustomLabels Members

Microsoft.Office.Interop.Word Namespace