alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class SegmentThumbSettings

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

    Inheritance
    object
    DiagramObject
    SegmentThumbSettings
    Implements
    IDiagramObject
    ICloneable
    Inherited Members
    DiagramObject.Clone()
    DiagramObject.GetParent()
    DiagramObject.OnPropertyChanged(string, object, object, IDiagramObject)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    ICloneable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved