ShapeNodes.SetSegmentType Method
Sets the segment type of the segment that follows the specified node.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Sub SetSegmentType ( _
Index As Integer, _
SegmentType As MsoSegmentType _
)
'Usage
Dim instance As ShapeNodes
Dim Index As Integer
Dim SegmentType As MsoSegmentType
instance.SetSegmentType(Index, SegmentType)
void SetSegmentType(
int Index,
MsoSegmentType SegmentType
)
Parameters
Index
Type: System.Int32Required Integer. The node whose segment type is to be set.
SegmentType
Type: Microsoft.Office.Core.MsoSegmentTypeRequired MsoSegmentType. Specifies if the segment is straight or curved. Can be one of these MsoSegmentType constants:
MsoSegmentType
msoSegmentCurve
msoSegmentLine
Remarks
If the node is a control point for a curved segment, this method sets the segment type for that curve. Note that this may affect the total number of nodes by inserting or deleting adjacent nodes.