Proprietà ChartSheet.HeightPercent
Ottiene o imposta l'altezza di un grafico 3D, espressa in percentuale rispetto alla larghezza dell'oggetto Microsoft.Office.Tools.Excel.ChartSheet.
Spazio dei nomi: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)
Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Sintassi
'Dichiarazione
Property HeightPercent As Integer
int HeightPercent { get; set; }
Valore proprietà
Tipo: System.Int32
Altezza di un grafico 3D, espressa in percentuale rispetto alla larghezza dell'oggetto Microsoft.Office.Tools.Excel.ChartSheet (valore compreso tra 5 e 500%).
Esempi
Nell'esempio di codice riportato di seguito viene utilizzata la proprietà HeightPercent per impostare l'altezza dell'oggetto Microsoft.Office.Tools.Excel.ChartSheet corrente sul 50% della larghezza dell'oggetto Microsoft.Office.Tools.Excel.ChartSheet.
Private Sub AdjustHeight()
Globals.Sheet1.Range("A1", "A5").Value2 = 22
Globals.Sheet1.Range("B1", "B5").Value2 = 55
Me.SetSourceData(Globals.Sheet1.Range("A1", "B5"), _
Excel.XlRowCol.xlColumns)
Me.ChartType = Excel.XlChartType.xl3DBarClustered
Me.HeightPercent = 50
End Sub
private void AdjustHeight()
{
Globals.Sheet1.Range["A1", "A5"].Value2 = 22;
Globals.Sheet1.Range["B1", "B5"].Value2 = 55;
this.SetSourceData(Globals.Sheet1.Range["A1", "B5"],
Excel.XlRowCol.xlColumns);
this.ChartType = Excel.XlChartType.xl3DBarClustered;
this.HeightPercent = 50;
}
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per ulteriori informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.