Line Interface

Definition

Represents an individual line in a Rectangle object of type wdTextRectangle.

public interface class Line
[System.Runtime.InteropServices.Guid("AE6CE2F5-B9D3-407D-85A8-0F10C63289A4")]
public interface Line
type Line = interface
Public Interface Line
Attributes

Remarks

Use the Line object and related methods and properties to programmatically define page layout in a document.

Use the Item[Object] method to return a specific Line object.

Use the LineType property to determine whether the specified line is a text line (wdTextLine) or a table row (wdTableRow). Then use the Range(Object) property to access the contents and formatting for the line.

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.

Height

Returns or sets the height of the specified object in points.

Left

Returns or sets an Integer that represents the horizontal position, measured in points, of the specified line.

LineType

Returns a WdLineType constant that indicates whether a line is a text line or a table row.

Parent

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

Range

Returns a Range object that represents the portion of a document that's contained in the specified object.

Rectangles

Returns a Rectangles collection that represents a portion of text or graphics in a page in a document.

Top

Returns or sets the vertical position of the specified line in points.

Width

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

Applies to