ChartSheet.ActivateEvent Olay

Oluşur, Microsoft.Office.Tools.Excel.ChartSheet etkinleştirilir.

Ad alanı:  Microsoft.Office.Tools.Excel
Derlemeler:   Microsoft.Office.Tools.Excel.v4.0.Utilities (Microsoft.Office.Tools.Excel.v4.0.Utilities.dll içinde)
  Microsoft.Office.Tools.Excel (Microsoft.Office.Tools.Excel.dll içinde)

Sözdizimi

'Bildirim
Event ActivateEvent As ChartEvents_ActivateEventHandler
event ChartEvents_ActivateEventHandler ActivateEvent

Örnekler

Aşağıdaki kod örneği için bir işleyici gösterir ActivateEvent bir ileti görüntüler Olay kutusunda geçerli Microsoft.Office.Tools.Excel.ChartSheet etkinleştirilir.

Private Sub DisplayWhenActivated()
    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
End Sub

Sub ChartSheet1_ActivateEvent() Handles Me.ActivateEvent
    MsgBox("The chart sheet was was activated.")
End Sub
private void DisplayWhenActivated()
{
    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.ActivateEvent +=
        new Excel.ChartEvents_ActivateEventHandler(
        ChartSheet1_ActivateEvent);
}

void ChartSheet1_ActivateEvent()
{
    MessageBox.Show("The chart sheet was was activated.");
}

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

ChartSheet Arabirim

Microsoft.Office.Tools.Excel Ad Alanı