Visual Studio Development Bookmark and Share   
 index > Visual Studio Tools for Office > Width and height of wdContentControlPicture
 

Width and height of wdContentControlPicture

Hi all.

How can be set width and height of wdContentControlPicture, created like that:

object defaultRange = System.Type.Missing;
Word.ContentControl cc = doc.ContentControls.Add(WdContentControlType.wdContentControlPicture, ref defaultRange);

?

Thanks in advance.
MRozzi  Wednesday, October 14, 2009 8:23 PM
There is no way to specify the height or width of the content control.

Best you can do is to insert the control into a "container", such as a Frame or text box with an "exact" height and/or width. The content control will proportionately adapt itself to the "tightest" dimension of that container.
Cindy Meister, VSTO/Word MVP
Cindy Meister  Thursday, October 15, 2009 5:11 PM

You can use google to search for other answers

Custom Search

More Threads

• XmlImportXml cause System.IndexOutOfRangeException
• Localizable VSTO Addins
• Optional Parameters and overloading in a C# Managed Automation Add-in for Excel
• Does Microsoft Office InfoPath 2003 Toolkit for Visual Studio 2005 available to download?
• Error: QueryInterface for interface Microsoft.Office.Interop.Word._Application failed.
• Using Office 2003 PIA with Office 2007 installed.
• How to get a reference to Word.BuildingBlocks interface on the fly?
• Trying to Deploy Access 2002 as an application
• Excel Constants
• Word sub-menus not visible in VSTO 2005