Blazor

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DiagramMethodArguments - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DiagramMethodArguments

    Represents the behavior of the uml class method.

    Inheritance
    System.Object
    SfDiagramBase
    DiagramMethodArguments
    Inherited Members
    SfDiagramBase.UpdateCollection(IList, Boolean)
    SfDiagramBase.RandomString(Int32)
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class DiagramMethodArguments : SfDiagramBase
    Examples
    <SfDiagram Height="600px" Nodes="@NodeCollection">
    </SfDiagram>
    @code {
        //Defines diagram's Node collection
        public ObservableCollection<DiagramNode> NodeCollection { get; set;
        protected override void OnInitialized()
        {
          NodeCollection = new ObservableCollection<DiagramNode>();
          DiagramNode Node = new DiagramNode()
          {
             Id = "Patient",
             OffsetX = 200,
             OffsetY = 200,
             Shape = new DiagramShape()
             {
              Type = Syncfusion.Blazor.Diagrams.Shapes.UmlClassifier,
              Classifier = ClassifierShape.Interface,
              //Define interface object
              InterfaceShape = new DiagramUmlInterface()
              {
                 Name = "Patient",
                 //Define interface attributes
                 Attributes = new ObservableCollection<DiagramUmlClassAttribute>()
                 {
                    new DiagramUmlClassAttribute() { Name = "owner", Type = "String[*]" }
                  },
                  //Define interface methods
                  Methods = new ObservableCollection<DiagramUmlClassMethod>()
                  {
                    new DiagramUmlClassMethod()
                    {
                      Name = "deposit",
                      Parameters = new ObservableCollection<DiagramMethodArguments>()
                      {
                        new DiagramMethodArguments(){Name = "amount", Type = "Dollars" }
                      }
                    }
                  }
                }
              }
            };
            //Add node
            NodeCollection.Add(Node);
         }
       }

    Constructors

    DiagramMethodArguments()

    Represents the behavior of the uml class method.

    Declaration
    public DiagramMethodArguments()

    Properties

    Name

    Specifies the name of the method argument.

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    System.String

    Style

    Specifies the shape style of the node.

    Declaration
    public UMLParameterShapeStyle Style { get; set; }
    Property Value
    Type Description
    UMLParameterShapeStyle

    Type

    This type property is used to define the type of the DiagramMethodArguments.

    Declaration
    public string Type { get; set; }
    Property Value
    Type Description
    System.String
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved