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)
Usage
Dim Name As String
Dim DotMatrix As Object
Dim returnValue As CustomLabel
Dim customLabels1 As CustomLabels
returnValue = customLabels1.Add(Name, DotMatrix)
Syntax
Function Add( _
<InAttribute()> ByVal Name As String, _
<InAttribute()> Optional ByRef DotMatrix As Object _
) As CustomLabel
CustomLabel Add(
[In] string Name,
[In, Optional] ref object DotMatrix
);
public: CustomLabel^ Add(
String^ Name,
&Object^ DotMatrix
);
public CustomLabel Add(
/*in*/System.String Name,
/*in*/System.Object DotMatrix
);
function Add(
Name : String,
DotMatrix : Object
) : CustomLabel;
Parameters
- Name
Required String. The name for the custom mailing labels.
- DotMatrix
Optional Object. True to have the mailing labels printed on a dot-matrix printer.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms
See Also
Reference
CustomLabels Interface
Microsoft.Office.Interop.Word Namespace