ChartCharacters.Insert Method
Inserts a new segment after the specified node of the freeform.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Function Insert ( _
String As String _
) As Object
'Usage
Dim instance As ChartCharacters
Dim String As String
Dim returnValue As Object
returnValue = instance.Insert(String)
Object Insert(
string String
)
Parameters
- String
Type: System.String
Return Value
Type: System.Object
Remarks
The SegmentType parameter value can be one of these MsoSegmentType constants.
msoSegmentCurve |
msoSegmentLine |
The EditingType parameter value can be one of these MsoEditingType constants.
msoEditingAuto |
msoEditingCorner |
Examples
This example adds a smooth node with a curved segment after node four in shape three on myDocument. Shape three must be a freeform drawing with at least four nodes.
Set myDocument = ActivePresentation.Slides(1)
With myDocument.Shapes(3).Nodes
.InsertIndex:=4, SegmentType:=msoSegmentCurve, _
EditingType:=msoEditingSmooth, X1:=210, Y1:=100
End With