LineSegment Class
This class represents a straight piece of line between two end points.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
| Name | Description | |
|---|---|---|
![]() | LineSegment(LinkShape^, Int32, Int32) | Constructor that takes the parent LinkShape and indices for the two end points. |
![]() | LineSegment(PointD, PointD) | Constructor that takes the two end points |
![]() | LineSegment(PointD, PointD, Int32, Int32, Boolean, Boolean, RectangleD) | Constructor that takes the two end points and its segment index. |
| Name | Description | |
|---|---|---|
![]() | AbsoluteBounds | Gets the absolute bounding rectangle represented by this line segment. |
![]() | CenterPoint | Get the center point for the line segment. |
![]() | EndIndex | Get the index of the end point in the LinkShape's edge points. |
![]() | EndPoint | Gets the end point of the line segment. |
![]() | EndPointF | Gets the end point of the line segment. |
![]() | IsEndSegment | Get whether this is the end segment in the LinkShape. |
![]() | IsStartSegment | Get whether this is the start segment in the LinkShape. |
![]() | Length | Gets the length of the line segment. |
![]() | StartIndex | Get the index of the start point in the LinkShape's edge points. |
![]() | StartPoint | Gets the starting point of the line segment. |
![]() | StartPointF | Gets the starting point of the line segment. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Gets a value indicating whether two LineSegment objects are equal.(Overrides Object::Equals(Object^).) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetAccessibilityObject(ShapeElement^, DiagramClientView^) | Gets the AccessibleObject assigned to the line segment. |
![]() | GetAccessibleDescription(LinkShape^) | Returns the accessible description. |
![]() | GetAccessibleHelp(LinkShape^) | Gets a description of what the object does or how the object is used. |
![]() | GetAccessibleHelpTopicFileName(LinkShape^) | Gets the path to the Help file associated with this accessible object. |
![]() | GetAccessibleHelpTopicId(LinkShape^) | Gets an identifier for a Help topic identifier associated with this accessible object. |
![]() | GetAccessibleName(LinkShape^, DiagramClientView^) | Returns the accessible name. |
![]() | GetAccessibleRole(LinkShape^) | Retrieves the accessible role of this LineSegment. |
![]() | GetAccessibleState(LinkShape^, DiagramClientView^) | Retrieves the accessible state of this LineSegment. |
![]() | GetFocusable(ShapeElement^) | Returns a value indicating whether this segment is focusable. |
![]() | GetHashCode() | Gets a hash code for this LineSegment.(Overrides Object::GetHashCode().) |
![]() | GetSelectable(ShapeElement^) | Returns a value indicating whether this segment is selectable. |
![]() | GetType() | (Inherited from Object.) |
![]() | IsHorizontal() | Detects whether the segment is horizontal. |
![]() | IsStartAboveEnd() | Detects whether the starting point of the segment is above the end point. |
![]() | IsStartLeftOfEnd() | Detects whether the starting point of the segment is left of the end point. |
![]() | IsVertical() | Detects whether the segment is vertical |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


