ControlSite 介面

表示在工作表上的一個連結或內嵌的控制項。

命名空間:  Microsoft.Office.Tools.Excel
組件:   Microsoft.Office.Tools.Excel (在 Microsoft.Office.Tools.Excel.dll 中)
  Microsoft.Office.Tools.Excel.v4.0.Utilities (在 Microsoft.Office.Tools.Excel.v4.0.Utilities.dll 中)

語法

'宣告
<GuidAttribute("D7A3AD16-D044-4CDF-989D-AF46A924F1D8")> _
Public Interface ControlSite _
    Inherits IDisposable
[GuidAttribute("D7A3AD16-D044-4CDF-989D-AF46A924F1D8")]
public interface ControlSite : IDisposable

ControlSite 型別會公開下列成員。

屬性

  名稱 說明
公用屬性 AltHTML 基礎架構。
公用屬性 Application 取得 ControlSite 的建立者。
公用屬性 AutoLoad 取得或設定值,指出當包含 ControlSite 的活頁簿開啟時,是否自動載入該物件。
公用屬性 AutoUpdate 取得或設定值,指出當來源變更時,ControlSite 是否會自動更新。
公用屬性 Border 取得 ControlSite 的框線。
公用屬性 BottomRightCell 取得 Range,表示位於 ControlSite 右下角下方的儲存格。
公用屬性 Creator 取得值,表示在 ControlSite 中建立的應用程式。
公用屬性 Enabled 取得或設定值,指出 ControlSite 是否已啟用。
公用屬性 Height 取得或設定 ControlSite 的高度 (以點為單位)。
公用屬性 Index 取得相似物件集合內 ControlSite 的索引編號。
公用屬性 Interior 取得 ControlSite 的內部。
公用屬性 Left 取得或設定從 ControlSite 的左緣至資料行 A (在工作表上) 的左緣,或圖表區域 (在圖表上) 左緣的距離 (以點為單位)。
公用屬性 LinkedCell 取得或設定值,用來辨識連結至 ControlSite 之值的範圍。
公用屬性 ListFillRange 取得或設定值,用來辨識填入指定之清單方塊的範圍。
公用屬性 Locked 取得或設定值,指出 ControlSite 是否已鎖定。
公用屬性 Name 取得或設定 ControlSite 的名稱。
公用屬性 Object 取得與 ControlSite 關聯的 OLE Automation 物件。
公用屬性 OLEType 取得 ControlSite 型別。
公用屬性 OnAction 基礎架構。
公用屬性 Parent 取得 ControlSite 的父物件。
公用屬性 Placement 取得或設定值,指出 ControlSite 如何附加至其下的儲存格。
公用屬性 PrintObject 取得或設定值,指出表示在列印文件時是否要列印 ControlSite。
公用屬性 progID 取得 ControlSite 的程式設計識別項。
公用屬性 Shadow 取得或設定值,指出此字型是否為陰影字型,或是 ControlSite 是否有陰影。
公用屬性 ShapeRange 取得 ShapeRange,表示指定的 ControlSite。
公用屬性 SourceName 取得或設定 ControlSite 的連結來源名稱。
公用屬性 Top 取得或設定從 ControlSite 的上緣至資料列 1 (在工作表上) 的上緣,或圖表區域 (在圖表上) 上緣的距離 (以點為單位)。
公用屬性 TopLeftCell 取得 Range,表示位於 ControlSite 左上角下方的儲存格。
公用屬性 Visible 取得或設定值,這個值會指出 ControlSite 是否為可見的。
公用屬性 Width 取得或設定 ControlSite 的寬度 (以點為單位)。
公用屬性 ZOrder 取得 ControlSite 的疊置順序 (Z-order) 位置。

回頁首

方法

  名稱 說明
公用方法 _VtblGap1_1
公用方法 _VtblGap2_1
公用方法 _VtblGap3_3
公用方法 _VtblGap4_2
公用方法 _VtblGap5_2
公用方法 _VtblGap6_5
公用方法 _VtblGap7_6
公用方法 Activate 啟動 ControlSite。
公用方法 BringToFront 將 ControlSite 提到疊置順序的最上層。
公用方法 Copy 將 ControlSite 複製到 [剪貼簿]。
公用方法 CopyPicture 將 ControlSite 以圖片形式複製到 [剪貼簿] 中。
公用方法 Cut 將 ControlSite 剪下至 [剪貼簿]。
公用方法 Delete 刪除 ControlSite。
公用方法 Dispose 執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。 (繼承自 IDisposable)。
公用方法 Duplicate 複製 ControlSite 並將參考傳回至新的複本。
公用方法 Select 選取 ControlSite。
公用方法 SendToBack 將 ControlSite 移到疊置順序的後面。
公用方法 Update 更新連結。
公用方法 Verb 將動詞傳送至 ControlSite 的伺服器。

回頁首

備註

當您使用 AddControl 方法將控制項加入至文件時,會傳回 ControlSite。 如需詳細資訊,請參閱在執行階段將控制項加入至 Office 文件

注意事項注意事項

這個界面是由 Visual Studio Tools for Office Runtime 實作,並不能實作於您的程式碼中。如需詳細資訊,請參閱 Visual Studio Tools for Office Runtime 概觀

請參閱

參考

Microsoft.Office.Tools.Excel 命名空間