Chart.GetChartElementOutline(Object, ChartElementType) 方法

定義

傳回圖表項目外框。

public:
 System::Windows::Forms::DataVisualization::Charting::ChartElementOutline ^ GetChartElementOutline(System::Object ^ element, System::Windows::Forms::DataVisualization::Charting::ChartElementType elementType);
public System.Windows.Forms.DataVisualization.Charting.ChartElementOutline GetChartElementOutline (object element, System.Windows.Forms.DataVisualization.Charting.ChartElementType elementType);
member this.GetChartElementOutline : obj * System.Windows.Forms.DataVisualization.Charting.ChartElementType -> System.Windows.Forms.DataVisualization.Charting.ChartElementOutline
Public Function GetChartElementOutline (element As Object, elementType As ChartElementType) As ChartElementOutline

參數

element
Object

Chart 物件。

elementType
ChartElementType

元素的類型。

傳回

ChartElementOutline

ChartElementOutline 物件包含:

  • 以絕對座標顯示的資料點陣列,這些資料點可以做為此圖表項目周圍的外框標記。

  • 用於繪製此圖表項目周圍外框的 GraphicsPath 物件。

備註

chartElement如果 不是圖表的一部分,或 elementType 無法與 chartElement 結合,則結果會包含空的標記點陣列。 標記點會順時針排序。

適用於