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.worksheets.worksheet
Class Comment

    java.lang.Object
      application.workbooks.workbook.shapes.Shape
          application.workbooks.workbook.worksheets.worksheet.Comment

All Implemented Interfaces:
  application.resource.com.ComExceptionConstants

public class Comment
extends Shape

该类设置了在单元格中显示和隐藏注释框的方法。

Field Summary

Fields inherited from interface application.resource.com.ComExceptionConstants
`CANNOT_EDIT, CANNOT_MAKE_ARROW, DELETE_DOCFIELD, DELETE_SHAPE, DIRECTRY_NOT_FIND, ERROR_DOCFIELD, ERROR_MACRO_NAME, FILE_NOT_FIND, LOCKED_DOCFIELD, LOCKED_POSITION_DOCFIELD, NO_ARROW_STYLE, NO_BOOK_NAME, NO_BUILDER, NO_CONNECTOR_TYPE, NO_DOCFIELDNAME, NO_MACRO_FOUND, NO_OBJECT, NO_PATH_NAME, NO_PRINT_PREVIEW, NO_PRODUCT, NO_Seal, NO_Seal_File, NO_SELECTED_OBJECT, NO_SHAPE, NO_TOOLBAR, NO_UNDO_TIMES, NO_WINDOW, NO_WORKBOOK, NO_WORKBOOK_TYPE, NOT_CONNECT, NOT_IMAGE, NOT_PRESENTATION, NOT_SUPPORT_DIALOG_SHOW, NOT_SUPPORT_DIALOG_TYPE, NOT_TEXT_EFFECT, Repeat_Name, Seal_Sign, SHAPE_TYPE_ERROR, WRONG_FREEFORM_TYPE`

Method Summary
`boolean` | `isHide()` 判断注释是否隐藏。
`boolean` | `isVisible()` 判断注释框是否可见。
`void` | `setVisible(boolean visible)` 设置注释是否显示。

Methods inherited from class application.workbooks.workbook.shapes.Shape
`changeConnector, changeOrder, changeType, copyFormatInfo, delete, duplicate, flipHorizontal, flipVertical, getCanDelete, getConnectFormat, getEndPoint, getFillFormat, getHalfDrag, getHeight, getHeightDoubleValue, getIndex, getLineFormat, getName, getOrientationIndex, getPictureFormat, getRotateAngle, getShadowFormat, getStartPoint, getText, getTextBoxAnchorPoint, getTextEffectFormat, getThreeDFormat, getType, getWidth, getWidthDoubleValue, isConnectable, isDocField, isEditable, isPicture, isPrintShape, isRatio, isSeal, isSelected, isTextEffect, move, moveByValue, pasteFormatInfo, reShape, reShape, select, selectToEdit, setCanDelete, setHalfDrag, setHeight, setHorizonAlignment, setLayoutIndex, setLevelDown, setLevelLeft, setLevelRight, setLevelUp, setObjectPosition, setOrientationIndex, setPosition, setPrintShape, setRatio, setRotateAngle, setRotateAngleByDegree, setSign, setSurroundType, setTextBoxAnchorPoint, setTextBoxMarginBottom, setTextBoxMarginLeft, setTextBoxMarginRight, setTextBoxMarginTop, setVerifySeal, setWidth, unSelect`

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

Method Detail

### isHide

    public boolean isHide()

  判断注释是否隐藏。

  Returns:
    布尔型，如果隐藏注释，则返回true；否则，返回false

    例子：

         Worksheet worksheet = Application.getWorkbooks().getActiveWorkbook()
                                         .getWorksheets().getActiveWorksheet();
         worksheet.insertComment(3,2);
         worksheet.getComment(3,2).isHide();

### isVisible

    public boolean isVisible()

  判断注释框是否可见。

  Returns:
    布尔型，如果该注释可见，则返回true；否则，返回false

    例子：

         Worksheet worksheet = Application.getWorkbooks().getActiveWorkbook()
                                         .getWorksheets().getActiveWorksheet();
         worksheet.insertComment(3,2);
         worksheet.getComment(3,2).isVisible();

### setVisible

    public void setVisible(boolean visible)

  设置注释是否显示。

  例子：

       Worksheet worksheet = Application.getWorkbooks().getActiveWorkbook()
                                       .getWorksheets().getActiveWorksheet();
       worksheet.insertComment(3,2);
       worksheet.getComment(3,2).setVisible(true);

Overview | Package | Class | Tree | Index | Help

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

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