⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fields.java

📁 使用Java将Word转为Html或txt
💻 JAVA
字号:
import com.jacob.com.*;

public class Fields extends Dispatch
{
	/**
	 * This constructor is used instead of a case operation to
	 * turn a Dispatch object into a wider object - it must exist
	 * in every wrapper class whose instances may be returned from
	 * method calls wrapped in VT_DISPATCH Variants.
	 */
	public Fields(Dispatch d)
	{
		// take over the IDispatch pointer
	  m_pDispatch = d.m_pDispatch;
		// null out the input's pointer
		d.m_pDispatch = 0;
	}

  public int getCount()
	{
	  return Dispatch.get(this, "Count").toInt();
	}

  public Variant _NewEnum()
	{
	  return Dispatch.call(this, "_NewEnum");
	}

  public void Refresh()
	{
	  Dispatch.call(this, "Refresh");
	}

  public Field getItem(int Index)
	{
	  return new Field(Dispatch.call(this, "Item", new Variant(Index)).toDispatch());
	}

  public void Append(String Name, int Type, int DefinedSize, int Attrib)
	{
	  Dispatch.call(this, "Append", Name, new Variant(Type),
		    new Variant(DefinedSize), new Variant(Attrib));
	}

  public void Delete(Variant Index)
	{
	  Dispatch.call(this, "Delete", Index);
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -