Sdílet prostřednictvím


LineSegment Class

Definition

This class represents that piece of a LinkShape by its two end points.

public ref class LineSegment
public class LineSegment
type LineSegment = class
Public Class LineSegment
Inheritance
LineSegment

Constructors

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.

LineSegment(PointD, PointD)

Constructor that takes the two end points

Properties

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.

Methods

Equals(Object)

Gets a value indicating whether two LineSegment objects are equal.

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.

GetSelectable(ShapeElement)

Returns a value indicating whether this segment is selectable.

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

Applies to