Upravit

Sdílet prostřednictvím


CustomLabel Interface

Definition

Represents a custom mailing label.

public interface class CustomLabel
[System.Runtime.InteropServices.Guid("00020915-0000-0000-C000-000000000046")]
public interface CustomLabel
type CustomLabel = interface
Public Interface CustomLabel
Attributes

Remarks

The CustomLabel object is a member of the CustomLabels collection. The CustomLabels collection contains all the custom mailing labels listed in the Label Options dialog box.

Use CustomLabels(index), where index is the custom label name or index number, to return a single CustomLabel object.

The index number represents the position of the custom mailing label in the CustomLabels collection.

Note: CustomLabel objects are sorted alphabetically in the CustomLabels collection and their index numbers are dynamically reassigned as the contents of the collection change. For that reason, it is safer to refer to a specific CustomLabel object by name rather than by index number.

Use the Add(String, Object) method to create a custom label.

Properties

Application

Returns a Application object that represents the Microsoft Word application.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

DotMatrix

True if the printer type for the specified custom label is dot matrix. False if the printer type is either laser or ink jet.

Height

Returns or sets the height of the specified custom mailing label, in points.

HorizontalPitch

Returns or sets the horizontal distance (in points) between the left edge of one custom mailing label and the left edge of the next mailing label.

Index

Returns an Integer that represents the position of an item in a collection.

Name

Returns or sets the name of the specified object.

NumberAcross

Returns or sets the number of custom mailing labels across a page.

NumberDown

Returns or sets the number of custom mailing labels down the length of a page.

PageSize

Returns or sets the page size for the specified custom mailing label.

Parent

Returns an object that represents the parent object of the specified object.

SideMargin

Returns or sets the side margin widths (in points) for the specified custom mailing label.

TopMargin

Returns or sets the distance (in points) between the top edge of the page and the top boundary of the body text.

Valid

True if the various properties (for example, Height, Width, and NumberDown) for the specified custom label work together to produce a valid mailing label.

VerticalPitch

Returns or sets the vertical distance between the top of one mailing label and the top of the next mailing label.

Width

Returns or sets the width of the specified object, in points.

Methods

Delete()

Deletes the specified object.

Applies to