Blazor

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DiagramUmlInterface

    Show / Hide Table of Contents

    Class DiagramUmlInterface

    Sets or gets the behavior of the UmlInterface.

    Inheritance
    System.Object
    SfDiagramBase
    DiagramUmlInterface
    Inherited Members
    SfDiagramBase.UpdateCollection(IList, Boolean)
    SfDiagramBase.RandomString(Int32)
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class DiagramUmlInterface : SfDiagramBase
    Remarks

    An Interface is a kind of classifier that represents a declaration of a set of coherent public features and obligations. To create an interface, define the classifier property as Interface.

    Examples
    <SfDiagram Height="600px" Nodes="@NodeCollection">
    </SfDiagram>
    @code{
       //...
       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

    DiagramUmlInterface()

    Sets or gets the behavior of the UmlInterface.

    Declaration
    public DiagramUmlInterface()

    Properties

    Attributes

    Specifies the variable, where user can define when creating a class.

    Declaration
    public ObservableCollection<DiagramUmlClassAttribute> Attributes { get; set; }
    Property Value
    Type Description
    System.Collections.ObjectModel.ObservableCollection<DiagramUmlClassAttribute>
    Remarks

    The attribute’s Name, Type and Scope properties allow you to define the name, data type, and visibility of the attribute.

    IsSeparator

    Specifies the Separator of the attributes.

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

    Methods

    Specifies the implementation of operation in a class.

    Declaration
    public ObservableCollection<DiagramUmlClassMethod> Methods { get; set; }
    Property Value
    Type Description
    System.Collections.ObjectModel.ObservableCollection<DiagramUmlClassMethod>
    Remarks

    The method’s Name, Parameters, Type, and Scope properties allow you to define the Name, Parameter, Return type, and Visibility of the methods.

    Name

    Specifies the name of the attributes.

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

    Style

    Sets the Shape style of the node.

    Declaration
    public DiagramTextStyle Style { get; set; }
    Property Value
    Type Description
    DiagramTextStyle
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved