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.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
Public method LineSegment(PointD, PointD) Constructor that takes the two end points
Public method LineSegment(LinkShape, Int32, Int32) Constructor that takes the parent LinkShape and indices for the two end points.
Public method LineSegment(PointD, PointD, Int32, Int32, Boolean, Boolean, RectangleD) Constructor that takes the two end points and its segment index.

Top

Properties

  Name Description
Public property AbsoluteBounds Gets the absolute bounding rectangle represented by this line segment.
Public property CenterPoint Get the center point for the line segment.
Public property EndIndex Get the index of the end point in the LinkShape's edge points.
Public property EndPoint Gets the end point of the line segment.
Public property EndPointF Gets the end point of the line segment.
Public property IsEndSegment Get whether this is the end segment in the LinkShape.
Public property IsStartSegment Get whether this is the start segment in the LinkShape.
Public property Length Gets the length of the line segment.
Public property StartIndex Get the index of the start point in the LinkShape's edge points.
Public property StartPoint Gets the starting point of the line segment.
Public property StartPointF Gets the starting point of the line segment.

Top

Methods

  Name Description
Public method Equals Gets a value indicating whether two LineSegment objects are equal. (Overrides Object.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetAccessibilityObject Gets the AccessibleObject assigned to the line segment.
Public method GetAccessibleDescription Returns the accessible description.
Public method GetAccessibleHelp Gets a description of what the object does or how the object is used.
Public method GetAccessibleHelpTopicFileName Gets the path to the Help file associated with this accessible object.
Public method GetAccessibleHelpTopicId Gets an identifier for a Help topic identifier associated with this accessible object.
Public method GetAccessibleName Returns the accessible name.
Public method GetAccessibleRole Retrieves the accessible role of this LineSegment.
Public method GetAccessibleState Retrieves the accessible state of this LineSegment.
Public method GetFocusable Returns a value indicating whether this segment is focusable.
Public method GetHashCode Gets a hash code for this LineSegment. (Overrides Object.GetHashCode().)
Public method GetSelectable Returns a value indicating whether this segment is selectable.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsHorizontal Detects whether the segment is horizontal.
Public method IsStartAboveEnd Detects whether the starting point of the segment is above the end point.
Public method IsStartLeftOfEnd Detects whether the starting point of the segment is left of the end point.
Public method IsVertical Detects whether the segment is vertical
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method 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.

See Also

Reference

Microsoft.VisualStudio.Modeling.Diagrams Namespace