menu

Blazor

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

    Show / Hide Table of Contents

    Class SegmentThumbSettings

    Represents the settings for a segment thumb, including its shape, for connector segments.

    Inheritance
    System.Object
    DiagramObject
    SegmentThumbSettings
    Implements
    IDiagramObject
    System.ICloneable
    Inherited Members
    DiagramObject.Clone()
    DiagramObject.GetParent()
    DiagramObject.OnPropertyChanged(String, Object, Object, IDiagramObject)
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class SegmentThumbSettings : DiagramObject, IDiagramObject, ICloneable
    Examples
     
    
    <SfDiagramComponent ConnectorSegmentThumb="@connectorSegmentThumb" Connectors="@connectors"/> 
    @code { 
        SegmentThumbSettings connectorSegmentThumb = new SegmentThumbSettings()  
        { 
            Shape = SegmentThumbShapes.Square 
        }; 
        // Defines the diagram's connectors collection 
        public DiagramObjectCollection<Connector> connectors = new DiagramObjectCollection<Connector>(); 
        protected override void OnInitialized() 
        { 
            Connector connector = new Connector() 
            { 
                ID = "connector1", 
                Type = ConnectorSegmentType.Orthogonal, 
                SourcePoint = new DiagramPoint() { X = 100, Y = 100 }, 
                TargetPoint = new DiagramPoint() { X = 200, Y = 200 }, 
                // Set the ConnectorConstraints... 
                Constraints |= ConnectorConstraints.DragSegmentThumb | ConnectorConstraints.InheritSegmentThumbShape; 
            }; 
            connectors.Add(connector); 
        } 
    } 

    Constructors

    SegmentThumbSettings()

    Initializes a new instance of the SegmentThumbSettings.

    Declaration
    public SegmentThumbSettings()

    Properties

    Shape

    Gets or sets the shape of the segment thumb for connector segments.

    Declaration
    public SegmentThumbShapes Shape { get; set; }
    Property Value
    Type
    SegmentThumbShapes
    Examples

    The default shape is Circlecircle

       
    
    <SfDiagramComponent ConnectorSegmentThumb ="@connectorSegmentThumb" /> 
    @code { 
       SegmentThumbSettings connectorSegmentThumb = new SegmentThumbSettings() { 
            Shape = SegmentThumbShapes.Square 
       }; 
    } 

    Implements

    IDiagramObject
    System.ICloneable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved