InlineShapes.AddChart2(Int32, XlChartType, Object, Object) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Ajoute un graphique au document. Renvoie un InlineShape Object qui représente le graphique et l’ajoute à la collection spécifiée.
public Microsoft.Office.Interop.Word.InlineShape AddChart2 (int Style = -1, Microsoft.Office.Core.XlChartType Type = (Microsoft.Office.Core.XlChartType) -1, ref object Range, ref object NewLayout);
abstract member AddChart2 : int * Microsoft.Office.Core.XlChartType * obj * obj -> Microsoft.Office.Interop.Word.InlineShape
Public Function AddChart2 (Optional Style As Integer = -1, Optional Type As XlChartType = (Microsoft.Office.Core.XlChartType) -1, Optional ByRef Range As Object, Optional ByRef NewLayout As Object) As InlineShape
Paramètres
- Style
- Int32
Style du graphique.
- Type
- XlChartType
Type du graphique
- Range
- Object
Plage dans laquelle le graphique est placé dans le texte. Le graphique remplace la plage, sauf si la plage est réduite. Si vous ne spécifiez pas cet argument, le graphique est placé automatiquement.
- NewLayout
- Object
Si NewLayout la valeur est true, le graphique est inséré en utilisant les nouvelles règles de mise en forme dynamique (le titre est activé et légende est activé uniquement s’il y a plusieurs séries).