ChartSheetBase.HeightPercent Propriedade
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Obtém ou define a altura de um gráfico 3D como um percentual da largura do ChartSheetBase.
public int HeightPercent { get; set; }
Valor da propriedade
A altura de um gráfico 3D como um percentual da largura do ChartSheetBase (entre 5 e 500 por cento).
Exemplos
O exemplo de código a seguir usa a HeightPercent propriedade para definir a altura do atual Microsoft.Office.Tools.Excel.ChartSheetBase como 50 por cento da largura de Microsoft.Office.Tools.Excel.ChartSheetBase .
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;
}
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