NumberMode Property

[Top]  [Chapter]  [Previous]  [Next]

Applies to

IWPParInterface                                                workswithseltext

Declaration

int NumberMode;

Description

The numbering mode for this paragraph or style. If you assign a value NumberLevel will be cleared.

Possible values are:

0 : no numbering

1 : bullets

2 : circles (not used)

3 : arabic numbering 1,2,3

4 : captital roman

5 : roman

6 : capital latin

7 : latin

Note, this property is not stored as property with WPAT code "WPAT_NumberMode". WPAT_NumberMode is not used by paragraph styles or paragraphs, only by numberstyles. To get a numberstyle the use the ID stored as property WPAT_NumberStyle with GetNumberStyle.

 

 

Example - "Simple numbering":

   IWPTextCursor Cursor = rtF2PDF1.Memo.TextCursor;

   IWPParInterface Par =  rtF2PDF1.Memo.CurrPar;

   Cursor.InputText("This is not numbered text");

   Cursor.InputParagraph(0,"");

   for (int i = 0; i < 10; i++)

   {

               Cursor.InputText("List Item " + i.ToString());

               Par.NumberMode = 3;

               Cursor.InputParagraph(0,"");

   }

   Par.NumberMode = 0;

   Cursor.InputText("This is not numbered text");

 

 

Example - Multi Level Numbering:

   IWPTextCursor Cursor = rtF2PDF1.Memo.TextCursor;

   IWPParInterface Par =  rtF2PDF1.Memo.CurrPar;

 

   IWPNumberStyle NStyle = rtF2PDF1.Memo.GetNumberStyle(001);

   NStyle.ASet((int)WPAT.NumberMODE,1); // Arabic

   rtF2PDF1.ReleaseInt(NStyle);

 

   Cursor.InputText("This is not numbered text");

   Cursor.InputParagraph(0,"");

   for (int i = 0; i < 10; i++)

   {

               Cursor.InputText("List Item " + i.ToString());

               Par.NumberLevel=1;

               Cursor.InputParagraph(0,"");

   }

   Par.NumberMode = 0;

   Cursor.InputText("This is not numbered text");


[idh_iwpparinterface_numbermode.htm]    Copyright © 2007 by WPCubed GmbH