LineSegment Class
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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
‘선언
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 | |
---|---|---|
LineSegment(PointD, PointD) | Constructor that takes the two end points | |
LineSegment(LinkShape, Int32, Int32) | Constructor that takes the parent LinkShape and indices for the two end points. | |
LineSegment(PointD, PointD, Int32, Int32, Boolean, Boolean, RectangleD) | Constructor that takes the two end points and its segment index. |
Top
Properties
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. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Gets a value indicating whether two LineSegment objects are equal. (Overrides Object.Equals(Object).) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetAccessibilityObject | Gets the AccessibleObject assigned to the line segment. | |
GetAccessibleDescription | Returns the accessible description. | |
GetAccessibleHelp | Gets a description of what the object does or how the object is used. | |
GetAccessibleHelpTopicFileName | Gets the path to the Help file associated with this accessible object. | |
GetAccessibleHelpTopicId | Gets an identifier for a Help topic identifier associated with this accessible object. | |
GetAccessibleName | Returns the accessible name. | |
GetAccessibleRole | Retrieves the accessible role of this LineSegment. | |
GetAccessibleState | Retrieves the accessible state of this LineSegment. | |
GetFocusable | Returns a value indicating whether this segment is focusable. | |
GetHashCode | Gets a hash code for this LineSegment. (Overrides Object.GetHashCode().) | |
GetSelectable | Returns a value indicating whether this segment is selectable. | |
GetType | Gets the Type of the current instance. (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 | Creates a shallow copy of the current Object. (Inherited from Object.) | |
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.