Word Primary Interop Assembly Reference
Style.InUse Property
True if the specified style is a built-in style that has been modified or applied in the document or a new style that has been created in the document. Read-only Boolean.

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

Usage

Visual Basic
Dim style1 As Style

Dim returnValue As Boolean
returnValue = style1.InUse
Syntax

Visual Basic
ReadOnly Property InUse() As Boolean
C#
bool InUse {get;}
C++
property Boolean InUse{
	Boolean get();
}
J#
public boolean get_InUse();
JScript
function get InUse() : Boolean;
Remarks

This property doesn't necessarily indicate whether the style is currently applied to any text in the document. For instance, if text that's been formatted with a style is deleted, the InUse property of the style remains True. For built-in styles that have never been used in the document, this property returns False.


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

Page view tracker