Aracılığıyla paylaş


ChartSheetBase.Location Yöntem

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

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 Function Location ( _
    where As XlChartLocation, _
    name As Object _
) As Chart
public 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.ChartSheetBase "NewSheet" adlı yeni bir çalışma sayfasına.

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

ChartSheetBase Sınıf

Microsoft.Office.Tools.Excel Ad Alanı