Chart.ApplyLayout Method

Applies the layouts shown in the ribbon.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)


Sub ApplyLayout ( _
    Layout As Integer, _
    ChartType As Object _
Dim instance As Chart
Dim Layout As Integer
Dim ChartType As Object

instance.ApplyLayout(Layout, ChartType)
void ApplyLayout(
    int Layout,
    Object ChartType


  • Layout
    Type: System.Int32
    Integer Specifies the type of layout. The type of layout is denoted by a number from 1 to 10.
  • ChartType
    Type: System.Object
    Object that contains a XlChartType constant representing the type of chart.


When you use a layout on the current chart type, a number from 1 to 10 is applied to the chart type. You can also apply the layout of one chart type on another chart type. For example, you can apply the layouts that are available from a line chart to a column chart. The layout only adds chart elements that are available for that particular chart type.

See Also


Chart Interface

Chart Members

Microsoft.Office.Interop.Word Namespace