接口 IControl

所有已知子接口:
IButton, ICellLinkControl, ICellLinkControlT<T>, ICheckBox, IContentControl, IControlT<T>, IDropDown, IGroupBox, ILabel, IListBox, IOptionButton, IRangeBase, IScrollBar, ISelector, ISelectorT<T,TCollection>, ISpinner

public interface IControl
The base of form controls.
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    Change z-index of this control to front.
    void
    Remove this control from parent.
    Gets the bottom right cell of this control.
    boolean
    Indicates whether the control is enabled.
    Returns the form control type of this control.
    double
    The height of this control.
    double
    The left margin of this control.
    boolean
    Indicates whether the control is locked.
    Gets the name of this control.
    The parent object, typically IWorksheet.
    Gets or sets the way a control is attached to its underlying cells.
    boolean
    Indicates whether the control will be printed.
    The shapes of this control.
    double
    The top margin of this control.
    Gets the top left cell of this control.
    boolean
    Indicates whether the control is visible.
    double
    The width of this control.
    int
    The z-index of this control.
    boolean
    Send the Z-Index to back.
    void
    setEnabled(boolean value)
    Indicates whether the control is enabled.
    void
    setHeight(double value)
    The height of this control.
    void
    setLeft(double value)
    The left margin of this control.
    void
    setLocked(boolean value)
    Indicates whether the control is locked.
    void
    setName(String value)
    Sets the name of this control.
    void
    Gets or sets the way a control is attached to its underlying cells.
    void
    setPrintObject(boolean value)
    Indicates whether the control will be printed.
    void
    setTop(double value)
    The top margin of this control.
    void
    setVisible(boolean value)
    Indicates whether the control is visible.
    void
    setWidth(double value)
    The height of this control.
  • 方法详细资料

    • getParent

      Object getParent()
      The parent object, typically IWorksheet. In some cases, the type of this property is IControl.
    • getFormControlType

      FormControlType getFormControlType()
      Returns the form control type of this control.
    • getEnabled

      boolean getEnabled()
      Indicates whether the control is enabled.
      API Note:
      Not supported by the *.ssjson format.
    • setEnabled

      void setEnabled(boolean value)
      Indicates whether the control is enabled.
      API Note:
      Not supported by the *.ssjson format.
    • getHeight

      double getHeight()
      The height of this control.
    • setHeight

      void setHeight(double value)
      The height of this control.
    • getLeft

      double getLeft()
      The left margin of this control.
    • setLeft

      void setLeft(double value)
      The left margin of this control.
    • getLocked

      boolean getLocked()
      Indicates whether the control is locked.
      API Note:
      Not supported by the *.ssjson format.
    • setLocked

      void setLocked(boolean value)
      Indicates whether the control is locked.
      API Note:
      Not supported by the *.ssjson format.
    • getPlacement

      Placement getPlacement()
      Gets or sets the way a control is attached to its underlying cells.
    • setPlacement

      void setPlacement(Placement value)
      Gets or sets the way a control is attached to its underlying cells.
    • getPrintObject

      boolean getPrintObject()
      Indicates whether the control will be printed.
    • setPrintObject

      void setPrintObject(boolean value)
      Indicates whether the control will be printed.
    • getTop

      double getTop()
      The top margin of this control.
    • setTop

      void setTop(double value)
      The top margin of this control.
    • getVisible

      boolean getVisible()
      Indicates whether the control is visible.
    • setVisible

      void setVisible(boolean value)
      Indicates whether the control is visible.
    • getWidth

      double getWidth()
      The width of this control.
    • setWidth

      void setWidth(double value)
      The height of this control.
    • getZOrder

      int getZOrder()
      The z-index of this control.
    • getShapeRange

      IShapeRange getShapeRange()
      The shapes of this control.
    • bringToFront

      boolean bringToFront()
      Change z-index of this control to front.
    • delete

      void delete()
      Remove this control from parent.
    • sendToBack

      boolean sendToBack()
      Send the Z-Index to back.
      返回:
      Returns true if succeed.
    • getBottomRightCell

      IRange getBottomRightCell()
      Gets the bottom right cell of this control.
    • getName

      String getName()
      Gets the name of this control.
    • setName

      void setName(String value)
      Sets the name of this control.
    • getTopLeftCell

      IRange getTopLeftCell()
      Gets the top left cell of this control.