Share via


Selection.Flags Property 

Returns or sets properties of the selection.

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

Usage

Dim selection1 As Selection

Dim returnValue As WdSelectionFlags
returnValue = selection1.Flags

Dim sampleValue As WdSelectionFlags
selection1.Flags = sampleValue

Syntax

Property Flags() As WdSelectionFlags
WdSelectionFlags Flags {get; set;}
property WdSelectionFlags^ Flags{
    WdSelectionFlags^ get();
    Void set(WdSelectionFlags^);
}
public WdSelectionFlags get_Flags();
public void set_Flags(WdSelectionFlags);
function get Flags() : WdSelectionFlags;
function set Flags(WdSelectionFlags);

Remarks

The return value of the Flags property is the sum of the WdSelectionFlags constants that apply to the selection.

Setting the Flags property to wdSelAtEOL will make the end of the selection active.

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

Selection Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

Selection Members