Overview | Package | Class | Tree | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## application.workbooks.workbook.documents.document
Class WordBulletLevel

    java.lang.Object
      application.workbooks.workbook.documents.document.WordBulletLevel

public class WordBulletLevel
extends java.lang.Object

关于项目符号和编号对话盒中宏记录的多级编号列表信息。

Constructor Summary
`WordBulletLevel()` 创建一个多级编号对象。

Method Summary
`java.lang.String` | `getAfterNumber()` 获取编号格式后面的文本。
`java.lang.String` | `getBeforeNumber()` 获取编号格式中编号前的文本。
`int` | `getBulletNumberStartAt()` 获取起始编号。
`FontAttribute` | `getFontAttribute()` 获得字体属性。
`java.lang.String` | `getLinkStyle()` 获取多级编号中需要链接的样式。
`int` | `getListNo()` 获取级别数字列表。
`int` | `getNumberAlignment()` 获取编号对齐位置。
`java.lang.String` | `getNumberFormat()` 获取编号样式。
`float` | `getNumberIndent()` 获取编号缩进位置。
`int` | `getNumberStyle()` 获取编号样式。
`float` | `getNumberTextIndent()` 获取文本缩进位置。
`boolean` | `isExternal()` 获取编号为外部图片标记。
`boolean` | `isPicture()` 获取编号图片标记。
`void` | `setAfterNumber(java.lang.String bnAfterNumber)` 设置编号格式后面的文本。
`void` | `setBeforeNumber(java.lang.String bnBeforeNumber)` 设置编号格式中编号前的文本。
`void` | `setBulletedType(int type)` 设置项目符号类型。
`void` | `setBulletNumberFontAttributes(FontAttribute fontAttribute)` 设置编号字体的属性。
`void` | `setBulletNumberStartAt(int bnStartAt)` 设置起始编号。
`void` | `setExternal(boolean isExternal)` 设置编号为外部图片标记。
`void` | `setLinkStyle(java.lang.String bnLinkStyle)` 设置多级编号中需要链接的样式。
`void` | `setListNo(int bnListNo)` 设置多级项目符合列表。
`void` | `setNumberAlignment(int bnAlignment)` 设置编号位置。
`void` | `setNumberedType(int type)` 设置编号类型。
`void` | `setNumberFormat(int bnNumberFormat)` 设置编号样式。
`void` | `setNumberFormat(java.lang.String bnNumberFormat)` 设置编号样式。
`void` | `setNumberIndent(float bnIndent)` 设置编号缩进位置。
`void` | `setNumberStyle(int bnStyle)` 设置编号样式。
`void` | `setNumberTextIndent(float bnTextIndent)` 设置文本缩进位置。
`void` | `setPicture(boolean isPicture)` 设置编号图片标记。

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### WordBulletLevel

    public WordBulletLevel()

  创建一个多级编号对象。

Method Detail

### getAfterNumber

    public java.lang.String getAfterNumber()

  获取编号格式后面的文本。

  Returns:
    编号格式后面的文本，为字符串型

    例子:

         Document doc = Application.getWorkbooks().getActiveDocument();
         Section section = doc.getSection(0);
         BaseText baseText = section.getBaseText();
         WordBulletLevel wordBulletLevel = baseText.getWordBulletLevel();
         wordBulletLevel.setAfterNumber("s");
         baseText.setBulletedNumberPara(0,0,wordBulletLevel,false);
         System.out.println(wordBulletLevel.getAfterNumber());

### getBeforeNumber

    public java.lang.String getBeforeNumber()

  获取编号格式中编号前的文本。

  Returns:
    编号格式中编号前的文本

    例子:

         Document doc = Application.getWorkbooks().getActiveDocument();
         Section section = doc.getSection(0);
         BaseText baseText = section.getBaseText();
         WordBulletLevel wordBulletLevel = baseText.getWordBulletLevel();
         wordBulletLevel.setBeforeNumber("w");
         baseText.setBulletedNumberPara(0,0,wordBulletLevel,false);
         System.out.println(wordBulletLevel.getBeforeNumber());

### getBulletNumberStartAt

    public int getBulletNumberStartAt()

  获取起始编号。

  Returns:
    起始编号，为整型值

    例子:

         Document doc = Application.getWorkbooks().getActiveDocument();
         Section section = doc.getSection(0);
         BaseText baseText = section.getBaseText();
         WordBulletLevel wordBulletLevel = baseText.getWordBulletLevel();
         wordBulletLevel.setBulletNumberStartAt(1);
         baseText.setBulletedNumberPara(0,0,wordBulletLevel,false);
         System.out.println(wordBulletLevel.getBulletNumberStartAt());

### getFontAttribute

    public FontAttribute getFontAttribute()

  获得字体属性。

  Returns:
    字体属性。

    例子:

         Document doc = Application.getWorkbooks().getActiveDocument();
         Section section = doc.getSection(0);
         BaseText baseText = section.getBaseText();
         WordBulletLevel wordBulletLevel = baseText.getWordBulletLevel();
         baseText.setBulletedNumberPara(0,0,wordBulletLevel,false);
         System.out.println(wordBulletLevel.getFontAttribute());

  See Also:
    `FontAttribute`

### getLinkStyle

    public java.lang.String getLinkStyle()

  获取多级编号中需要链接的样式。

  Returns:
    需要链接的样式，为字符串型

    例子:

         Document doc = Application.getWorkbooks().getActiveDocument();
         Section section = doc.getSection(0);
         BaseText baseText = section.getBaseText();
         WordBulletLevel wordBulletLevel = baseText.getWordBulletLevel();
         wordBulletLevel.setLinkStyle("");
         baseText.setBulletedNumberPara(0,0,wordBulletLevel,false);
         System.out.println(wordBulletLevel.getLinkStyle());

### getListNo

    public int getListNo()

  获取级别数字列表。

  Returns:
    级别数字列表的索引号

    例子:

         Document doc = Application.getWorkbooks().getActiveDocument();
         Section section = doc.getSection(0);
         BaseText baseText = section.getBaseText();
         WordBulletLevel wordBulletLevel = baseText.getWordBulletLevel();
         wordBulletLevel.setListNo(11);
         baseText.setBulletedNumberPara(0,0,wordBulletLevel,false);
         System.out.println(wordBulletLevel.getListNo());

### getNumberAlignment

    public int getNumberAlignment()

  获取编号对齐位置。

  Returns:
    编号对齐类型索引值

    例子:

         Document doc = Application.getWorkbooks().getActiveDocument();
         Section section = doc.getSection(0);
         BaseText baseText = section.getBaseText();
         WordBulletLevel wordBulletLevel = baseText.getWordBulletLevel();
         wordBulletLevel.setNumberAlignment(0);
         baseText.setBulletedNumberPara(0,0,wordBulletLevel,false);
         System.out.println(wordBulletLevel.getNumberAlignment());

  See Also:
    `BulletNumberConstants`

### getNumberFormat

    public java.lang.String getNumberFormat()

  获取编号样式。

  Returns:
    编号样式，为字符串型

    例子:

         Document doc = Application.getWorkbooks().getActiveDocument();
         Section section = doc.getSection(0);
         BaseText baseText = section.getBaseText();
         WordBulletLevel wordBulletLevel = baseText.getWordBulletLevel();
         wordBulletLevel.setNumberFormat("A");
         baseText.setBulletedNumberPara(0,0,wordBulletLevel,false);
         System.out.println(wordBulletLevel.getNumberFormat());

### getNumberIndent

    public float getNumberIndent()

  获取编号缩进位置。

  Returns:
    编号缩进位置，为float型

    例子:

         Document doc = Application.getWorkbooks().getActiveDocument();
         Section section = doc.getSection(0);
         BaseText baseText = section.getBaseText();
         WordBulletLevel wordBulletLevel = baseText.getWordBulletLevel();
         wordBulletLevel.setNumberIndent(20.0f);
         baseText.setBulletedNumberPara(0,0,wordBulletLevel,false);
         System.out.println(wordBulletLevel.getNumberIndent());

### getNumberStyle

    public int getNumberStyle()

  获取编号样式。

  Returns:
    编号样式索引号

    例子:

         Document doc = Application.getWorkbooks().getActiveDocument();
         Section section = doc.getSection(0);
         BaseText baseText = section.getBaseText();
         WordBulletLevel wordBulletLevel = baseText.getWordBulletLevel();
         wordBulletLevel.setNumberStyle(2);
         baseText.setBulletedNumberPara(0,0,wordBulletLevel,false);
         System.out.println(wordBulletLevel.getNumberStyle());

### getNumberTextIndent

    public float getNumberTextIndent()

  获取文本缩进位置。

  Returns:
    文本缩进位置，为float型

    例子:

         Document doc = Application.getWorkbooks().getActiveDocument();
         Section section = doc.getSection(0);
         BaseText baseText = section.getBaseText();
         WordBulletLevel wordBulletLevel = baseText.getWordBulletLevel();
         wordBulletLevel.setNumberTextIndent(15.0f);
         baseText.setBulletedNumberPara(0,0,wordBulletLevel,false);
         System.out.println(wordBulletLevel.getNumberTextIndent());

### isExternal

    public boolean isExternal()

  获取编号为外部图片标记。

  Returns:
    编号为外部图片标记

    例子:

         Document doc = Application.getWorkbooks().getActiveDocument();
         Section section = doc.getSection(0);
         BaseText baseText = section.getBaseText();
         WordBulletLevel wordBulletLevel = baseText.getWordBulletLevel();
         wordBulletLevel.isPicture(true);
         wordBulletLevel.setExternal(false);
         baseText.setBulletedNumberPara(0,0,wordBulletLevel,false);
         System.out.println(wordBulletLevel.isExternal());

### isPicture

    public boolean isPicture()

  获取编号图片标记。

  Returns:
    编号图片标记

    例子:

         Document doc = Application.getWorkbooks().getActiveDocument();
         Section section = doc.getSection(0);
         BaseText baseText = section.getBaseText();
         WordBulletLevel wordBulletLevel = baseText.getWordBulletLevel();
         wordBulletLevel.isPicture(true);
         wordBulletLevel.setExternal(false);
         baseText.setBulletedNumberPara(0,0,wordBulletLevel,false);
         System.out.println(wordBulletLevel.isPicture());

### setAfterNumber

    public void setAfterNumber(java.lang.String bnAfterNumber)

  设置编号格式后面的文本。

  Parameters:
    `bnAfterNumber` - 编号格式后面的文本，为字符串型

    例子:

         Document doc = Application.getWorkbooks().getActiveDocument();
         Section section = doc.getSection(0);
         BaseText baseText = section.getBaseText();
         WordBulletLevel wordBulletLevel = baseText.getWordBulletLevel();
         wordBulletLevel.setAfterNumber("s");
         baseText.setBulletedNumberPara(0,0,wordBulletLevel,false);

### setBeforeNumber

    public void setBeforeNumber(java.lang.String bnBeforeNumber)

  设置编号格式中编号前的文本。

  Parameters:
    `bnBeforeNumber` - 编号格式中编号前的文本

    例子:

         Document doc = Application.getWorkbooks().getActiveDocument();
         Section section = doc.getSection(0);
         BaseText baseText = section.getBaseText();
         WordBulletLevel wordBulletLevel = baseText.getWordBulletLevel();
         wordBulletLevel.setBeforeNumber("w");
         baseText.setBulletedNumberPara(0,0,wordBulletLevel,false);

### setBulletedType

    public void setBulletedType(int type)

  设置项目符号类型。

  Parameters:
    `type` - 项目符号类型(0 例子:

         Document doc = Application.getWorkbooks().getActiveDocument();
         Section section = doc.getSection(0);
         BaseText baseText = section.getBaseText();
         WordBulletLevel wordBulletLevel = baseText.getWordBulletLevel();
         wordBulletLevel.setBulletedType(1);
         baseText.setBulletedNumberPara(0,0,wordBulletLevel,false);

### setBulletNumberFontAttributes

    public void setBulletNumberFontAttributes(FontAttribute fontAttribute)

  设置编号字体的属性。

  Parameters:
    `fontAttribute` - 编号字体的属性

    例子:

         Document doc = Application.getWorkbooks().getActiveDocument();
         Section section = doc.getSection(0);
         BaseText baseText = section.getBaseText();
         WordBulletLevel wordBulletLevel = baseText.getWordBulletLevel();
         wordBulletLevel.setBulletNumberFontAttributes(new FontAttribute());
         baseText.setBulletedNumberPara(0,0,wordBulletLevel,false);

### setBulletNumberStartAt

    public void setBulletNumberStartAt(int bnStartAt)

  设置起始编号。

  Parameters:
    `bnStartAt` - 起始编号

    例子:

         Document doc = Application.getWorkbooks().getActiveDocument();
         Section section = doc.getSection(0);
         BaseText baseText = section.getBaseText();
         WordBulletLevel wordBulletLevel = baseText.getWordBulletLevel();
         wordBulletLevel.setBulletNumberStartAt(1);
         baseText.setBulletedNumberPara(0,0,wordBulletLevel,false);

### setExternal

    public void setExternal(boolean isExternal)

  设置编号为外部图片标记。

  Parameters:
    `isExternal` - 编号为外部图片标记

    例子:

         Document doc = Application.getWorkbooks().getActiveDocument();
         Section section = doc.getSection(0);
         BaseText baseText = section.getBaseText();
         WordBulletLevel wordBulletLevel = baseText.getWordBulletLevel();
         wordBulletLevel.isPicture(true);
         wordBulletLevel.setExternal(false);
         baseText.setBulletedNumberPara(0,0,wordBulletLevel,false);

### setLinkStyle

    public void setLinkStyle(java.lang.String bnLinkStyle)

  设置多级编号中需要链接的样式。

  Parameters:
    `bnLinkStyle` - 需要链接的样式，为字符串型

    例子:

         Document doc = Application.getWorkbooks().getActiveDocument();
         Section section = doc.getSection(0);
         BaseText baseText = section.getBaseText();
         WordBulletLevel wordBulletLevel = baseText.getWordBulletLevel();
         wordBulletLevel.setLinkStyle("");
         baseText.setBulletedNumberPara(0,0,wordBulletLevel,false);

### setListNo

    public void setListNo(int bnListNo)

  设置多级项目符合列表。

  Parameters:
    `bnListNo` - 多级项目符合列表

    例子:

         Document doc = Application.getWorkbooks().getActiveDocument();
         Section section = doc.getSection(0);
         BaseText baseText = section.getBaseText();
         WordBulletLevel wordBulletLevel = baseText.getWordBulletLevel();
         wordBulletLevel.setListNo(11);
         baseText.setBulletedNumberPara(0,0,wordBulletLevel,false);

### setNumberAlignment

    public void setNumberAlignment(int bnAlignment)

  设置编号位置。

  Parameters:
    `bnAlignment` - 编号对齐类型，其常量和相应的值如下：

         BulletNumberConstants.LEFT = 0（编号位置左对齐）；
         BulletNumberConstants.CENTER = 1（编号位置居中）；
         BulletNumberConstants.RIGHT = 2（编号位置右对齐）

         例子:

         Document doc = Application.getWorkbooks().getActiveDocument();
         Section section = doc.getSection(0);
         BaseText baseText = section.getBaseText();
         WordBulletLevel wordBulletLevel = baseText.getWordBulletLevel();
         wordBulletLevel.setNumberAlignment(0);
         baseText.setBulletedNumberPara(0,0,wordBulletLevel,false);

### setNumberedType

    public void setNumberedType(int type)

  设置编号类型。

  Parameters:
    `type` - 编号类型。(5 例子:

         Document doc = Application.getWorkbooks().getActiveDocument();
         Section section = doc.getSection(0);
         BaseText baseText = section.getBaseText();
         WordBulletLevel wordBulletLevel = baseText.getWordBulletLevel();
         wordBulletLevel.setNumberedType(7);
         baseText.setBulletedNumberPara(0,0,wordBulletLevel,false);

### setNumberFormat

    public void setNumberFormat(int bnNumberFormat)

  设置编号样式。

  Parameters:
    `bnNumberFormat` - 编号样式索引值，为整型数值

    例子:

         Document doc = Application.getWorkbooks().getActiveDocument();
         Section section = doc.getSection(0);
         BaseText baseText = section.getBaseText();
         WordBulletLevel wordBulletLevel = baseText.getWordBulletLevel();
         wordBulletLevel.setNumberFormat(65);
         baseText.setBulletedNumberPara(0,0,wordBulletLevel,false);

### setNumberFormat

    public void setNumberFormat(java.lang.String bnNumberFormat)

  设置编号样式。

  Parameters:
    `bnNumberFormat` - 编号样式，为字符串型

    例子:

         Document doc = Application.getWorkbooks().getActiveDocument();
         Section section = doc.getSection(0);
         BaseText baseText = section.getBaseText();
         WordBulletLevel wordBulletLevel = baseText.getWordBulletLevel();
         wordBulletLevel.setNumberFormat("A");
         baseText.setBulletedNumberPara(0,0,wordBulletLevel,false);

### setNumberIndent

    public void setNumberIndent(float bnIndent)

  设置编号缩进位置。

  Parameters:
    `bnIndent` - 编号缩进位置，为float型

    例子:

         Document doc = Application.getWorkbooks().getActiveDocument();
         Section section = doc.getSection(0);
         BaseText baseText = section.getBaseText();
         WordBulletLevel wordBulletLevel = baseText.getWordBulletLevel();
         wordBulletLevel.setNumberIndent(20.0f);
         baseText.setBulletedNumberPara(0,0,wordBulletLevel,false);

### setNumberStyle

    public void setNumberStyle(int bnStyle)

  设置编号样式。

  Parameters:
    `bnStyle` - 编号样式索引号

    例子:

         Document doc = Application.getWorkbooks().getActiveDocument();
         Section section = doc.getSection(0);
         BaseText baseText = section.getBaseText();
         WordBulletLevel wordBulletLevel = baseText.getWordBulletLevel();
         wordBulletLevel.setNumberStyle(2);
         baseText.setBulletedNumberPara(0,0,wordBulletLevel,false);

### setNumberTextIndent

    public void setNumberTextIndent(float bnTextIndent)

  设置文本缩进位置。

  Parameters:
    `bnTextIndent` - 文本缩进位置，为float型

    例子:

         Document doc = Application.getWorkbooks().getActiveDocument();
         Section section = doc.getSection(0);
         BaseText baseText = section.getBaseText();
         WordBulletLevel wordBulletLevel = baseText.getWordBulletLevel();
         wordBulletLevel.setNumberTextIndent(15.0f);
         baseText.setBulletedNumberPara(0,0,wordBulletLevel,false);

### setPicture

    public void setPicture(boolean isPicture)

  设置编号图片标记。

Overview | Package | Class | Tree | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

版权所有 2001-2004 无锡永中科技有限公司