menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class StraightSegment - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class StraightSegment

    Represent a straightsegment is a part of a line that is bounded by two distinct end points, and contains every point on the line between its endpoints.

    Inheritance
    System.Object
    StraightSegment
    Implements
    ILineSegment
    IConnectorSegment
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.UI.Xaml.Diagram
    Assembly: Syncfusion.SfDiagram.WPF.dll
    Syntax
    public class StraightSegment : ILineSegment, IConnectorSegment, INotifyPropertyChanged

    Constructors

    StraightSegment()

    Declaration
    public StraightSegment()

    Properties

    BezierSmoothness

    Gets or sets a BezierSmoothness of the straightsegment.

    Declaration
    public BezierSmoothness BezierSmoothness { get; set; }
    Property Value
    Type
    BezierSmoothness

    Constraints

    Gets or sets a SegmentConstraints to add or remove behaviors for straightsegment.

    Declaration
    public SegmentConstraints Constraints { get; set; }
    Property Value
    Type
    SegmentConstraints

    Point

    Gets or sets a points of the straightsegment.

    Declaration
    public Point? Point { get; set; }
    Property Value
    Type
    System.Nullable<System.Windows.Point>

    Methods

    OnPropertyChanged(String)

    Invoked whenever the effective value of any dependency property on this FrameworkElement has been updated. The specific dependency property that changed is reported in the arguments parameter. Overrides OnPropertyChanged(name).

    Declaration
    protected virtual void OnPropertyChanged(string name)
    Parameters
    Type Name Description
    System.String name

    Events

    PropertyChanged

    Occurs when a property value changes.

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type
    System.ComponentModel.PropertyChangedEventHandler

    Implements

    ILineSegment
    IConnectorSegment
    System.ComponentModel.INotifyPropertyChanged
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved