Rectangle.RectangleType Property 

Returns a WdRectangleType constant that represents the type for the specified rectangle.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Dim rectangle1 As Rectangle

Dim returnValue As WdRectangleType
returnValue = rectangle1.RectangleType

Syntax

ReadOnly Property RectangleType() As WdRectangleType
WdRectangleType RectangleType {get;}
property WdRectangleType^ RectangleType{
    WdRectangleType^ get();
}
public WdRectangleType get_RectangleType();
function get RectangleType() : WdRectangleType;

Remarks

The RectangleType property can be one of the following WdRectangleType constants.

wdLineBetweenColumnRectangle

Represents a region corresponding to a line that separates columns.

wdMarkupRectangle

Represents a space occupied by a comment balloon.

wdMarkupRectangleButton

Represents a space occupied by the more (...) indicator that appears in a comment balloon when there is additional text for the comment.

wdPageBorderRectangle

Represents a space occupied by a page border.

wdSelection

Represents a space occupied by a selection tool, for example the table selection tool in the upper left corner of a table or the anchor for an image.

wdShapeRectangle

Represents a space occupied by a shape.

wdSystem

Not applicable.

wdTextRectangle

Represents a space occupied by text.

Rectangles in Microsoft Word are sections within a page in a document that contain specific types of information. Some sections are portions of text; others are shapes. The purpose of rectangles is to allow more control over programmatic page layout.

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

Rectangle Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

Rectangle Members