Blazor

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

    Show / Hide Table of Contents

    Class UmlScope

    Defines the scope of the UML shape.

    Inheritance
    System.Object
    UmlScope
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class UmlScope : Enum
    Remarks
    The following code snippet is an example to set the UMLScope to Private,
    Examples
    <SfDiagram Height="600px" Nodes="@NodeCollection">
    </SfDiagram>
    @code{
       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.Class,
                   //Define class object
                   ClassShape = new DiagramUmlClass()
                   {
                       Name = "Patient",
                       Attributes = new ObservableCollection<DiagramUmlClassAttribute>()
                       {
                           new DiagramUmlClassAttribute() { Name = "accepted", Type = "Date" }
                       },
                       //Define class methods
                       Methods = new ObservableCollection<DiagramUmlClassMethod>()
                       {
                           new DiagramUmlClassMethod()
                           {
                               Name = "getHistory", Type = "getHistory",Scope=UmlScope.Private
                           }
                       }
                   }
               }
           };
           NodeCollection.Add(node);
       }
    }

    Fields

    Package

    Sets the visibility of the attribute to Package

    Declaration
    public const UmlScope Package
    Field Value
    Type Description
    UmlScope

    Private

    Sets the scope of the attribute to Private

    Declaration
    public const UmlScope Private
    Field Value
    Type Description
    UmlScope

    Protected

    Sets the scope of the attribute to Protected

    Declaration
    public const UmlScope Protected
    Field Value
    Type Description
    UmlScope

    Public

    Sets the scope of the attribute to Public

    Declaration
    public const UmlScope Public
    Field Value
    Type Description
    UmlScope

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved