_Chart.ApplyCustomType Method
Applies a standard or custom chart type to a chart.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Sub ApplyCustomType ( _
ChartType As XlChartType, _
TypeName As Object _
)
'Usage
Dim instance As _Chart
Dim ChartType As XlChartType
Dim TypeName As Object
instance.ApplyCustomType(ChartType, TypeName)
void ApplyCustomType(
XlChartType ChartType,
Object TypeName
)
Parameters
ChartType
Type: Microsoft.Office.Interop.Excel.XlChartTypeRequired XlChartType. A standard chart type.
TypeName
Type: System.ObjectOptional object (used only with a Chart object). The name of the custom chart type if ChartType specifies a custom chart gallery.