Line object, Shapes collection (Placement node), Image object
The Width (Property) determines the width in pixels of the specific image in the Resource Manager. The property is read-only, and the value returned is a non-string number between zero and the maximum width of the image. The default value of the property is the maximum width of the image.
Read-write for Line and Shape collections, Read only for Image object. Number
This example changes all the rectangles to have a border width of five pixels.
var ShapeCount = ActiveDocument.Sections["Dashboard"].Shapes.Count
var ShapesCol = ActiveDocument.Sections["Dashboard"].Shapes
for ( j =1 ; j <= ShapeCount ; j++)
if (ShapesCol[j].Type == bqShapeTypeRectangle)
ShapesCol[j].Line.Width = 5
This example shows how to show the width of a Resource Manager image in a text box:
//Clear all TextBoxes except TextBox5 TextBox1.Text = "" TextBox2.Text = "" TextBox3.Text = "" TextBox4.Text = ActiveSection.Name var ActionName = "RM Width" TextBox1.Text ="Start " + ActionName if (TextBox5.Text == "") { TextBox1.Text ="Step 1" try { TextBox3.Text = "Width is: " + ActiveDocument.ResourceManager.Images[ListBox1.SelectedList.ItemIndex(1)].Width } catch(e) { TextBox2.Text = "Caught: " + e.toString() } } else { TextBox1.Text ="Step 2" try { ActiveDocument.ResourceManager.Images[ListBox1.SelectedList.ItemIndex(1)].Width = TextBox5.Text } catch(e) { TextBox2.Text = "Caught: " + e.toString() } TextBox1.Text ="Step 3" try { TextBox3.Text = "Width is: " + ActiveDocument.ResourceManager.Images[ListBox1.SelectedList.ItemIndex(1)].Width } catch(e) { TextBox2.Text = "Caught: " + e.toString() } } TextBox1.Text ="End " + ActionName