menu

WPF

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

    Show / Hide Table of Contents

    Class UMLSequenceParticipant

    Represents a participant in the sequence diagram, such as an actor or object.

    Inheritance
    System.Object
    UMLSequenceParticipant
    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 UMLSequenceParticipant

    Constructors

    UMLSequenceParticipant()

    Declaration
    public UMLSequenceParticipant()

    Properties

    ActivationBoxes

    Gets or sets the collection of activation boxes of the participant.   

    Declaration
    public IEnumerable<UMLSequenceActivationBox> ActivationBoxes { get; set; }
    Property Value
    Type
    System.Collections.Generic.IEnumerable<UMLSequenceActivationBox>
    Examples
       
    
    <!-- Initialize the SfDiagram -->
    <syncfusion:SfDiagram x:Name="diagram">
       <!-- Add the sequence diagram -->
       <syncfusion:SfDiagram.Model>
           <syncfusion:UMLSequenceDiagramModel>
               <!-- Add the participants -->
               <syncfusion:UMLSequenceDiagramModel.Participants>
                   <syncfusion:ParticipantCollection>
                       <syncfusion:UMLSequenceParticipant ID = "Participant1" Content="Mike">
                           <syncfusion:UMLSequenceParticipant.ActivationBoxes>
                               <syncfusion:ActivationBoxCollection>
                                   <syncfusion:UMLSequenceActivationBox ID = "Activation1" StartMessageID="Message1" EndMessageID="Message2"/>
                               </syncfusion:ActivationBoxCollection>
                           </syncfusion:UMLSequenceParticipant.ActivationBoxes>
                       </syncfusion:UMLSequenceParticipant>
                       <syncfusion:UMLSequenceParticipant ID = "Participant2" Content="John"/>
                   </syncfusion:ParticipantCollection>
               </syncfusion:UMLSequenceDiagramModel.Participants>
               <!-- Add the messages -->
               <syncfusion:UMLSequenceDiagramModel.Messages>
                   <syncfusion:MessageCollection>
                       <syncfusion:UMLSequenceMessage ID = "Message1" FromParticipantID="Participant1" ToParticipantID="Participant2" Content="Hello John" Type="Synchronous"/>
                       <syncfusion:UMLSequenceMessage ID = "Message2" FromParticipantID="Participant2" ToParticipantID="Participant1" Content="Hi Mike" Type="Synchronous"/>
                   </syncfusion:MessageCollection>
               </syncfusion:UMLSequenceDiagramModel.Messages>
           </syncfusion:UMLSequenceDiagramModel>
       </syncfusion:SfDiagram.Model>
    </syncfusion:SfDiagram> 
      

    Content

    Gets or sets the name or description of the participant. 

    Declaration
    public string Content { get; set; }
    Property Value
    Type
    System.String
    Examples
      
    
    <!-- Initialize the SfDiagram -->
    <syncfusion:SfDiagram x:Name="diagram">
       <!-- Add the sequence diagram -->
       <syncfusion:SfDiagram.Model>
           <syncfusion:UMLSequenceDiagramModel>
               <!-- Add the participants -->
               <syncfusion:UMLSequenceDiagramModel.Participants>
                   <syncfusion:ParticipantCollection>
                       <syncfusion:UMLSequenceParticipant ID = "Participant1" Content="Mike" />
                       <syncfusion:UMLSequenceParticipant ID = "Participant2" Content="John" />
                   </syncfusion:ParticipantCollection>
               </syncfusion:UMLSequenceDiagramModel.Participants>
           </syncfusion:UMLSequenceDiagramModel>
       </syncfusion:SfDiagram.Model>
    </syncfusion:SfDiagram>
     

    ID

    Gets or sets the unique identifier for the participant.  

    Declaration
    public object ID { get; set; }
    Property Value
    Type
    System.Object
    Examples
      
    
    <!-- Initialize the SfDiagram -->
    <syncfusion:SfDiagram x:Name="diagram">
       <!-- Add the sequence diagram -->
       <syncfusion:SfDiagram.Model>
           <syncfusion:UMLSequenceDiagramModel>
               <!-- Add the participants -->
               <syncfusion:UMLSequenceDiagramModel.Participants>
                   <syncfusion:ParticipantCollection>
                       <syncfusion:UMLSequenceParticipant ID = "Participant1" Content="Mike" />
                       <syncfusion:UMLSequenceParticipant ID = "Participant2" Content="John" />
                   </syncfusion:ParticipantCollection>
               </syncfusion:UMLSequenceDiagramModel.Participants>
           </syncfusion:UMLSequenceDiagramModel>
       </syncfusion:SfDiagram.Model>
    </syncfusion:SfDiagram>
     

    IsActor

    Gets or sets the boolean value indicating whether the participant is an actor or object in the UML sequence diagram.   

    Declaration
    public bool IsActor { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false.  

    Examples
      
    
    <!-- Initialize the SfDiagram -->
    <syncfusion:SfDiagram x:Name="diagram">
       <!-- Add the sequence diagram -->
       <syncfusion:SfDiagram.Model>
           <syncfusion:UMLSequenceDiagramModel>
               <!-- Add the participants -->
               <syncfusion:UMLSequenceDiagramModel.Participants>
                   <syncfusion:ParticipantCollection>
                       <syncfusion:UMLSequenceParticipant ID = "Participant1" Content="Mike" IsActor="true"/>
                       <syncfusion:UMLSequenceParticipant ID = "Participant2" Content="John" />
                   </syncfusion:ParticipantCollection>
               </syncfusion:UMLSequenceDiagramModel.Participants>
           </syncfusion:UMLSequenceDiagramModel>
       </syncfusion:SfDiagram.Model>
    </syncfusion:SfDiagram>
     

    ShowDestroyAtEnd

    Gets or sets whether to display the destruction (cross) marker at the end of the participant lifeline.  

    Declaration
    public bool ShowDestroyAtEnd { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false. 

    Examples
      
    
    <!-- Initialize the SfDiagram -->
    <syncfusion:SfDiagram x:Name="diagram">
       <!-- Add the sequence diagram -->
       <syncfusion:SfDiagram.Model>
           <syncfusion:UMLSequenceDiagramModel>
               <!-- Add the participants -->
               <syncfusion:UMLSequenceDiagramModel.Participants>
                   <syncfusion:ParticipantCollection>
                       <syncfusion:UMLSequenceParticipant ID = "Participant1" Content="Mike" ShowDestroyAtEnd="true" />
                       <syncfusion:UMLSequenceParticipant ID = "Participant2" Content="John" />
                   </syncfusion:ParticipantCollection>
               </syncfusion:UMLSequenceDiagramModel.Participants>
           </syncfusion:UMLSequenceDiagramModel>
       </syncfusion:SfDiagram.Model>
    </syncfusion:SfDiagram>
      
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved