PieChart object, Shapes collection (Placement node), Image object
For a Pie chart object, returns or sets the height property.
When used for placing objects, the Height (Property) sets or returns the height of a shape in pixels.
For an Image object, this property determines the height 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 height of the image. The default value of the property is the maximum height of the image.
Read-write for Pie chart and Shape objects, Read only for Image object. Numeric
This example shows how to change the height of a pie chart in the chart section named Sales Pie Chart:
This example shows how to determine the height of an image and to show the results in a textbox:
//Clear all TextBoxes except TextBox5
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ActiveSection.Name
var ActionName = "RM Height"
TextBox1.Text ="Start " + ActionName
if (TextBox5.Text == "")
{
TextBox1.Text ="Step 1"
try
{
TextBox3.Text = "Height is: " + ActiveDocument.ResourceManager.Images[ListBox1.SelectedList.ItemIndex(1)].Height
}
catch(e)
{
TextBox2.Text = "Caught: " + e.toString()
}
}
else
{
TextBox1.Text ="Step 2"
try
{
ActiveDocument.ResourceManager.Images[ListBox1.SelectedList.ItemIndex(1)].Height = TextBox5.Text
}
catch(e)
{
TextBox2.Text = "Caught: " + e.toString()
}
TextBox1.Text ="Step 3"
try
{
TextBox3.Text = "Height is: " + ActiveDocument.ResourceManager.Images[ListBox1.SelectedList.ItemIndex(1)].Height
}
catch(e)
{
TextBox2.Text = "Caught: " + e.toString()
}
}
TextBox1.Text ="End " + ActionName