menu

Blazor

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

    Show / Hide Table of Contents

    Class RelativeMode

    Specifies the relative mode.

    Inheritance
    System.Object
    RelativeMode
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class RelativeMode : Enum
    Examples
    <SfDiagramComponent  />
     @code
     {
        protected override void OnInitialized()
        {
         DiagramCanvas canvas = new DiagramCanvas();
           canvas.RelativeMode = RelativeMode.Object;
          canvas.Children = new DiagramObjectCollection<CommonElement>() { child1};
          basicElements.Add(canvas);
        }
    }

    Fields

    Object

    Object - Diagram elements will be aligned with respect to its immediate parent

    Declaration
    public const RelativeMode Object
    Field Value
    Type
    RelativeMode

    Point

    DiagramPoint - Diagram elements will be aligned with respect to a point

    Declaration
    public const RelativeMode Point
    Field Value
    Type
    RelativeMode
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved