|
Dieser Artikel wurde maschinell übersetzt. Bewegen Sie den Mauszeiger über die Sätze im Artikel, um den Originaltext anzuzeigen. Weitere Informationen
|
Übersetzung
Original
|
PictureContentControl-Schnittstelle
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)
Der PictureContentControl-Typ macht die folgenden Member verfügbar.
| Name | Beschreibung | |
|---|---|---|
![]() | Application | |
![]() | BindingContext | |
![]() | Container | Infrastruktur. (Von ContentControlBase geerbt.) |
![]() | ContainerComponent | Infrastruktur. (Von ContentControlBase geerbt.) |
![]() | Creator | |
![]() | DataBindings | |
![]() | DefaultDataSourceUpdateMode | |
![]() | ID | |
![]() | Image | |
![]() | InnerObject | |
![]() | LockContentControl | |
![]() | LockContents | |
![]() | Parent | |
![]() | ParentContentControl | |
![]() | Range | |
![]() | ShowInsertPictureIcon | |
![]() | Site | |
![]() | Tag | |
![]() | Temporary | |
![]() | Title | |
![]() | XMLMapping |
| Name | Beschreibung | |
|---|---|---|
![]() | BeginInit | |
![]() | Copy | |
![]() | Cut | |
![]() | Delete | |
![]() | Dispose | |
![]() | EndInit |
| Name | Beschreibung | |
|---|---|---|
![]() | Added | |
![]() | BindingContextChanged | |
![]() | ContentUpdating | |
![]() | Deleting | |
![]() | Disposed | |
![]() | Entering | |
![]() | Exiting | |
![]() | StoreUpdating | |
![]() | Validated | |
![]() | Validating |
Hinweis |
|---|
|
Diese Schnittstelle wird von der Visual Studio-Tools für Office-Laufzeit implementiert. Es ist nicht vorgesehen, dass der Typ direkt vom Code implementiert wird. Weitere Informationen finden Sie unter Übersicht über die Visual Studio Tools for Office-Laufzeit. |
Inhaltssteuerelemente
Verwendung
In dieser Dokumentation wird die Version dieses Typs beschrieben, der in Office-Projekten mit der Zielversion .NET Framework 4 verwendet wird. In Projekten mit der Zielversion .NET Framework 3.5 verfügt dieser Typ möglicherweise über unterschiedliche Member und die für diesen Typ bereitgestellten Codebeispiele funktionieren möglicherweise nicht. Dokumentation zu diesem Typ in Projekten mit der Zielversion .NET Framework 3.5 finden Sie im folgenden Verweisabschnitt in der Visual Studio 2008-Dokumentation: http://go.microsoft.com/fwlink/?LinkId=160658.
private Microsoft.Office.Tools.Word.PictureContentControl pictureControl1; private System.Drawing.Bitmap bitmap1; private void AddPictureControlAtSelection() { this.Paragraphs[1].Range.InsertParagraphBefore(); this.Paragraphs[1].Range.Select(); pictureControl1 = this.Controls.AddPictureContentControl("pictureControl1"); string imagePath = System.Environment.GetFolderPath( Environment.SpecialFolder.MyDocuments) + "\\picture.bmp"; bitmap1 = new System.Drawing.Bitmap(imagePath, true); pictureControl1.Image = bitmap1; }
private Microsoft.Office.Tools.Word.PictureContentControl pictureControl1; private System.Drawing.Bitmap bitmap1; private void AddPictureControlAtSelection() { if (this.Application.ActiveDocument == null) return; Document vstoDoc = Globals.Factory.GetVstoObject(this.Application.ActiveDocument); vstoDoc.Paragraphs[1].Range.InsertParagraphBefore(); vstoDoc.Paragraphs[1].Range.Select(); pictureControl1 = vstoDoc.Controls.AddPictureContentControl("pictureControl1"); string imagePath = System.Environment.GetFolderPath( Environment.SpecialFolder.MyDocuments) + "\\picture.bmp"; bitmap1 = new System.Drawing.Bitmap(imagePath, true); pictureControl1.Image = bitmap1; }
