Share via


Border.LineStyle Property 

Returns or sets the border line style for the specified object.

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

Usage

Dim border1 As Border

Dim returnValue As WdLineStyle
returnValue = border1.LineStyle

Dim sampleValue As WdLineStyle
border1.LineStyle = sampleValue

Syntax

Property LineStyle() As WdLineStyle
WdLineStyle LineStyle {get; set;}
property WdLineStyle^ LineStyle{
    WdLineStyle^ get();
    Void set(WdLineStyle^);
}
public WdLineStyle get_LineStyle();
public void set_LineStyle(WdLineStyle);
function get LineStyle() : WdLineStyle;
function set LineStyle(WdLineStyle);

Remarks

Setting the LineStyle property for a range that refers to individual characters or words applies a character border.

Setting the LineStyle property for a paragraph or range of paragraphs applies a paragraph border. Use the InsideLineStyle property to apply a border between consecutive paragraphs.

Setting the LineStyle property for a section applies a page border around the pages in the section.

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

Border Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

Border Members