Shapes.AddChart2(Int32, XlChartType, Object, Object, Object, Object, 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 Shape objet qui représente un graphique et l’ajoute à la collection spécifiée.
public Microsoft.Office.Interop.Word.Shape AddChart2 (int Style = -1, Microsoft.Office.Core.XlChartType Type = (Microsoft.Office.Core.XlChartType) -1, ref object Left, ref object Top, ref object Width, ref object Height, ref object Anchor, ref object NewLayout);
abstract member AddChart2 : int * Microsoft.Office.Core.XlChartType * obj * obj * obj * obj * obj * obj -> Microsoft.Office.Interop.Word.Shape
Public Function AddChart2 (Optional Style As Integer = -1, Optional Type As XlChartType = (Microsoft.Office.Core.XlChartType) -1, Optional ByRef Left As Object, Optional ByRef Top As Object, Optional ByRef Width As Object, Optional ByRef Height As Object, Optional ByRef Anchor As Object, Optional ByRef NewLayout As Object) As Shape
Paramètres
- Style
- Int32
Style du graphique.
- Type
- XlChartType
Type du graphique
- Left
- Object
Position, exprimée en points, du bord gauche du graphique, par rapport à l'ancrage.
- Top
- Object
Position, exprimée en points, du bord supérieur du graphique, par rapport à l'ancrage.
- Width
- Object
Largeur, en points, du graphique.
- Height
- Object
Hauteur, en points, du graphique.
- Anchor
- 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).
- 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).