Aracılığıyla paylaş


ChartSheet.Location Yöntem

Hareket Microsoft.Office.Tools.Excel.ChartSheet yeni bir konuma.

Ad alanı:  Microsoft.Office.Tools.Excel
Derleme:  Microsoft.Office.Tools.Excel (Microsoft.Office.Tools.Excel.dll içinde)

Sözdizimi

'Bildirim
Function Location ( _
    Where As XlChartLocation, _
    Name As Object _
) As Chart
Chart Location(
    XlChartLocation Where,
    Object Name
)

Parametreler

Dönüş Değeri

Tür: Microsoft.Office.Interop.Excel.Chart

Örnekler

Aşağıdaki kod örneğinde Location geçerli taşıma yöntemi Microsoft.Office.Tools.Excel.ChartSheet "NewSheet" adlı yeni bir çalışma sayfası için.

Private Sub MoveToNewSheet()
    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.xl3DColumn

    Me.Location(Excel.XlChartLocation.xlLocationAsNewSheet, _
        "NewSheet")
End Sub
private void MoveToNewSheet()
{
    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.xl3DColumn; 

    this.Location(Excel.XlChartLocation.xlLocationAsNewSheet, 
        "NewSheet");
}

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

ChartSheet Arabirim

Microsoft.Office.Tools.Excel Ad Alanı