alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class UmlInterface

    Represents a UML interface classifier in the diagram.

    Inheritance
    object
    DiagramObject
    UmlClass
    UmlInterface
    Implements
    IDiagramObject
    ICloneable
    Inherited Members
    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()
    UmlClass.AttributeHeaderSettings
    UmlClass.Attributes
    UmlClass.MethodHeaderSettings
    UmlClass.Methods
    UmlClass.Name
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.Diagram.dll
    Syntax
    public class UmlInterface : UmlClass, IDiagramObject, ICloneable
    Remarks

    This class extends UmlClass and reuses its structure for attributes and operations, while applying interface-specific semantics and rendering conventions (such as italicized name or «interface» notation)

    Examples
    nodes.Add(new Node()
    {
        ID = "interfaceNode",
        OffsetX = 400,
        OffsetY = 200,
        Width = 200,
        Height = 200,
        Style = new ShapeStyle() { Fill = "lightyellow" },
        Shape = new UmlClassifierShape()
        {
            Classifier = ClassifierShape.Interface,
            HeaderStyle = new TextStyle() { Fill = "yellow" },
            InterfaceShape = new UmlInterface()
            {
                Name = "IMovable",
                Methods = new DiagramObjectCollection<UmlClassMethod>()
                {
                    new UmlClassMethod()
                    {
                        Name = "Move",
                        Type = "void",
                        Scope = UmlScope.Public
                    },
                    new UmlClassMethod()
                    {
                        Name = "Stop",
                        Type = "void",
                        Scope = UmlScope.Public
                    }
                }
            }
        }
    });

    Constructors

    UmlInterface()

    Creates a new instance of the UmlClass.

    Declaration
    public UmlInterface()

    UmlInterface(UmlInterface)

    Initializes a new instance of the UmlInterface class by copying an existing instance.

    Declaration
    public UmlInterface(UmlInterface src)
    Parameters
    Type Name Description
    UmlInterface src

    The source UmlInterface to copy.

    Methods

    Clone()

    Creates a new object that is a copy of the current UmlInterface.

    Declaration
    public override object Clone()
    Returns
    Type Description
    object

    A new UmlInterface instance that is a deep copy of the current object.

    Overrides
    UmlClass.Clone()
    Remarks

    This method performs a deep copy, creating an independent instance with identical interface properties, including separator settings and styling.

    Implements

    IDiagramObject
    ICloneable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved