ListLevel.NumberFormat Property
Returns or sets the number format for the specified list level.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Usage
Dim listLevel1 As ListLevel
Dim returnValue As String
returnValue = listLevel1.NumberFormat
Dim sampleValue As String
listLevel1.NumberFormat = sampleValue
Syntax
Property NumberFormat() As String
string NumberFormat {get; set;}
property String^ NumberFormat{
String^ get();
Void set(String^);
}
public System.String get_NumberFormat();
public void set_NumberFormat(System.String);
function get NumberFormat() : String;
function set NumberFormat(String);
Remarks
The percent sign (%) followed by any number from 1 through 9 represents the number style from the respective list level. For example, if you wanted the format for the first level to be "Article I," "Article II," and so on, the string for the NumberFormat property would be "Article %1" and the NumberStyle property would be set to wdListNumberStyleUpperCaseRoman.
If the NumberStyle property is set to wdListNumberStyleBullet, the string for the NumberFormat property can only contain one character.
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
ListLevel Interface
Microsoft.Office.Interop.Word Namespace