ChartSheetBase.Perspective Özellik
Alır veya için 3-b perspektif ayarlar Microsoft.Office.Tools.Excel.ChartSheetBase.
Ad alanı: Microsoft.Office.Tools.Excel
Derleme: Microsoft.Office.Tools.Excel.v4.0.Utilities (Microsoft.Office.Tools.Excel.v4.0.Utilities.dll içinde)
Sözdizimi
'Bildirim
Public Property Perspective As Integer
public int Perspective { get; set; }
Özellik Değeri
Tür: System.Int32
3-B grafik görünümü için perspektif.0 İle 100 arasında olmalıdır.
Notlar
Bu özellik yoksayılır RightAngleAxes özelliği true.
Örnekler
Aşağıdaki kod örneği Perspective özelliği geçerli görünüm perspektifi ayarlamak için Microsoft.Office.Tools.Excel.ChartSheetBase 45 derece için.Örnek ayarlar RightAngleAxes özelliğine false önce ayar Perspective özelliği.
Private Sub AdjustPerspective()
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.RightAngleAxes = False
Me.Perspective = 45
End Sub
private void AdjustPerspective()
{
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.RightAngleAxes = false;
this.Perspective = 45;
}
.NET Framework Güvenliği
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. Kısmen güvenilen kod kitaplıklarını kullanma.