Paragraph.OutlineLevel Property
Returns or sets the outline level for the specified paragraphs.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Usage
Dim paragraph1 As Paragraph
Dim returnValue As WdOutlineLevel
returnValue = paragraph1.OutlineLevel
Dim sampleValue As WdOutlineLevel
paragraph1.OutlineLevel = sampleValue
Syntax
Property OutlineLevel() As WdOutlineLevel
WdOutlineLevel OutlineLevel {get; set;}
property WdOutlineLevel^ OutlineLevel{
WdOutlineLevel^ get();
Void set(WdOutlineLevel^);
}
public WdOutlineLevel get_OutlineLevel();
public void set_OutlineLevel(WdOutlineLevel);
function get OutlineLevel() : WdOutlineLevel;
function set OutlineLevel(WdOutlineLevel);
Remarks
This property returns one of the following WdOutlineLevel constants:
wdOutLineLevel1
wdOutLineLevel2
wdOutLineLevel3
wdOutLineLevel4
wdOutLineLevel5
wdOutLineLevel6
wdOutLineLevel7
wdOutLineLevel8
wdOutLineLevel9
wdOutLineLevelBodyText
If a paragraph has a heading style applied to it (Heading 1 through Heading 9), the outline level is the same as the heading style and cannot be changed.
Outline levels are visible only in outline view or the document map pane.
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
Paragraph Interface
Microsoft.Office.Interop.Word Namespace