Share via


MailingLabel.DefaultLabelName Property

Returns or sets the name for the default mailing label.

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

Syntax

'Declaration
Property DefaultLabelName As String
    Get
    Set
'Usage
Dim instance As MailingLabel
Dim value As String

value = instance.DefaultLabelName

instance.DefaultLabelName = value
string DefaultLabelName { get; set; }

Property Value

Type: System.String

Remarks

To find the string for the specified built-in label, select the label in the Label Options dialog box (Tools menu, Envelopes and Labels dialog box, Labels tab, Options button). Then click Details and look at the Label name box, which contains the correct string to use for this property. To set a custom label as the default mailing label, use the label name that appears in the Details dialog box, or use the Name property with a CustomLabel object.

Creating a new label document from a CustomLabel object automatically sets the DefaultLabelName property to the name of the CustomLabel object.

See Also

Reference

MailingLabel Interface

MailingLabel Members

Microsoft.Office.Interop.Word Namespace