Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This class represents a straight piece of line between two end points.
Inheritance Hierarchy
System.Object
  Microsoft.VisualStudio.Modeling.Diagrams.LineSegment
Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
Public Class LineSegment
public class LineSegment
public ref class LineSegment
type LineSegment =  class end
public class LineSegment
The LineSegment type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .gif) | LineSegment(PointD, PointD) | Constructor that takes the two end points | 
| .gif) | LineSegment(LinkShape, Int32, Int32) | Constructor that takes the parent LinkShape and indices for the two end points. | 
| .gif) | LineSegment(PointD, PointD, Int32, Int32, Boolean, Boolean, RectangleD) | Constructor that takes the two end points and its segment index. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | AbsoluteBounds | Gets the absolute bounding rectangle represented by this line segment. | 
| .gif) | CenterPoint | Get the center point for the line segment. | 
| .gif) | EndIndex | Get the index of the end point in the LinkShape's edge points. | 
| .gif) | EndPoint | Gets the end point of the line segment. | 
| .gif) | EndPointF | Gets the end point of the line segment. | 
| .gif) | IsEndSegment | Get whether this is the end segment in the LinkShape. | 
| .gif) | IsStartSegment | Get whether this is the start segment in the LinkShape. | 
| .gif) | Length | Gets the length of the line segment. | 
| .gif) | StartIndex | Get the index of the start point in the LinkShape's edge points. | 
| .gif) | StartPoint | Gets the starting point of the line segment. | 
| .gif) | StartPointF | Gets the starting point of the line segment. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | Equals | Gets a value indicating whether two LineSegment objects are equal. (Overrides Object.Equals(Object).) | 
| .gif) | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | 
| .gif) | GetAccessibilityObject | Gets the AccessibleObject assigned to the line segment. | 
| .gif) | GetAccessibleDescription | Returns the accessible description. | 
| .gif) | GetAccessibleHelp | Gets a description of what the object does or how the object is used. | 
| .gif) | GetAccessibleHelpTopicFileName | Gets the path to the Help file associated with this accessible object. | 
| .gif) | GetAccessibleHelpTopicId | Gets an identifier for a Help topic identifier associated with this accessible object. | 
| .gif) | GetAccessibleName | Returns the accessible name. | 
| .gif) | GetAccessibleRole | Retrieves the accessible role of this LineSegment. | 
| .gif) | GetAccessibleState | Retrieves the accessible state of this LineSegment. | 
| .gif) | GetFocusable | Returns a value indicating whether this segment is focusable. | 
| .gif) | GetHashCode | Gets a hash code for this LineSegment. (Overrides Object.GetHashCode().) | 
| .gif) | GetSelectable | Returns a value indicating whether this segment is selectable. | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | IsHorizontal | Detects whether the segment is horizontal. | 
| .gif) | IsStartAboveEnd | Detects whether the starting point of the segment is above the end point. | 
| .gif) | IsStartLeftOfEnd | Detects whether the starting point of the segment is left of the end point. | 
| .gif) | IsVertical | Detects whether the segment is vertical | 
| .gif) | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | 
| .gif) | ToString | Returns a string that represents the current object. (Inherited from Object.) | 
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.