共用方式為


PictureBox 類別 (2007 系統)

更新:2007 年 11 月

表示可以加入 Microsoft Office Word 文件的 Windows Form PictureBox。

命名空間:  Microsoft.Office.Tools.Word.Controls
組件:  Microsoft.Office.Tools.Word.v9.0 (在 Microsoft.Office.Tools.Word.v9.0.dll 中)

語法

<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
Public Class PictureBox _
    Inherits PictureBox _
    Implements ISupportInitializeExtendedControl

Dim instance As PictureBox
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public class PictureBox : PictureBox, ISupportInitializeExtendedControl

備註

Microsoft.Office.Tools.Word.Controls.PictureBox 與 System.Windows.Forms.PictureBox 不同。Microsoft.Office.Tools.Word.Controls.PictureBox 具有其他成員,使得它可以加入 Word 文件,並為它提供其他方法和屬性。

請不要使用 New 建構函式來建立新的 PictureBox。使用 AddPictureBox 方法,將新的 PictureBox 加入文件中。

繼承階層架構

System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      System.Windows.Forms.Control
        System.Windows.Forms.PictureBox
          Microsoft.Office.Tools.Word.Controls.PictureBox

執行緒安全

這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。並非所有的執行個體成員都是安全執行緒。

請參閱

參考

PictureBox 成員

Microsoft.Office.Tools.Word.Controls 命名空間