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
    Remarks

    The SegmentThumbSettings class allows configuration of thumb settings within diagram connectors. It defines properties related to the shape and appearance of segment thumbs visualized on connector segments.

    Examples

    A sample demonstrating the customization of segment thumb settings:

    <SfDiagramComponent ConnectorSegmentThumb="connectorSegmentThumb" Connectors="connectors" />
    @code {
        SegmentThumbSettings connectorSegmentThumb = new SegmentThumbSettings()
        {
            Shape = SegmentThumbShapes.Square
        };
    
        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 },
                Constraints |= ConnectorConstraints.DragSegmentThumb | ConnectorConstraints.InheritSegmentThumbShape;
            };
            connectors.Add(connector);
        }
    }

    Constructors

    SegmentThumbSettings()

    Initializes a new instance of the SegmentThumbSettings class.

    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 Description
    SegmentThumbShapes

    A SegmentThumbShapes defining the shape of the segment thumb. The default shape is Circle.

    Remarks

    This property determines the geometric shape of the segment thumb used in connector segments.

    Examples
    <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